. net mvc + Dapper instance
brief introduction
This article is a learning instance of. net mvc + Dapper. There is a link to the source code of the instance.
Why write this article
Because I don't like EF's bloated and Linq's awkward, I used my own lightweight orm in previous projects. In thinking about and drawing on other ORM frameworks,
Dapper found ...
Added by SteveFrost on Tue, 26 Nov 2019 22:15:59 +0200
What can you do with SQL optimization?Give you a simple way to be violent
Today, let's take a relatively simple case of SQL optimization to analyze a problem developers often find confusing - slowing down SQL due to view merging
For example: A maintenance person (in this case, maintenance refers to slightly modifying an existing system) Due to business changes, a condition has been added to the original SQL. As a re ...
Added by courtewing on Mon, 25 Nov 2019 04:51:02 +0200
On the leftmost principle of mysql index
Building tables
CREATE TABLE `user` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(10) DEFAULT NULL,
`sex` tinyint(1) DEFAULT NULL,
`age` tinyint(2) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `Index_user` (`name`,`age`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb4;
Test sql
First kind
mysql> ...
Added by Hebbs on Sun, 24 Nov 2019 17:03:36 +0200
Verification of incremental collection of mysql by logstash
Recently, there is a need to synchronize the data in a table in mysql to es. After analysis, use the jdbc plug-in of logstash or get the data in mysql. output to es. There are two collection situations: first, full collection, then incremental collection.
Process verified as follows:
1. Install longstash and mysql
The installation of mysql and ...
Added by Flying Sagittarius on Sun, 24 Nov 2019 16:17:10 +0200
Dockerfile builds mysql image and initializes database data
Reference resources: https://www.jb51.net/article/115422.htm
1) operate in the CentOS7 environment, create the folder mymy, and create a new file Dockerfile, setup.sh, schema.sql, privileges.sql
mkdir mymy
cd mymy
touch Dockerfile
touch setup.sh
touch schema.sql
touch privileges.sql
Dockerfile:
FROM mysql:5.7
ENV MYSQL_ALLOW_EMPTY_P ...
Added by thefreebielife on Wed, 20 Nov 2019 23:00:32 +0200
See through interface abstraction and factory
Preface
I'm going to take you through a new way to understand what interface polymorphism is. Many people, including me, feel helpless when they first learn this thing. They can't understand it. They can't understand it. They just know how to write interfaces, and then they won't be useful. I'll show you how to understand the interface through ...
Added by gmdavis on Wed, 20 Nov 2019 15:09:48 +0200
Mapper series 4: mapper interface extension
Extension refers to adding functions not provided by general Mapper.
Give an example:
An example of using bulk insert as an extension function in the official document of general Mapper is: tk.mybatis.Mapper.additional.insert.insertlistmapper < T > tk.mybatis.mapper.additional.insert.InsertListProvider
Let's ...
Added by eraxian on Tue, 19 Nov 2019 21:15:58 +0200
Query data in MySQL database, filter duplicate data and keep one piece of data -- (implementation method of row Ou number in MySQL)
From: http://www.maomao365.com/?p=10564 Abstract:
The following describes how to keep only one piece of data when MySQL database queries duplicate dataImplementation ideas: There is no row Ou number function in MySQL database, so we need to change direction to implement this function.
--1.View basic data table
mysql> select * from ...
Added by Mirge on Sat, 16 Nov 2019 16:09:02 +0200
New features of Oracle 12c Online Table Move
concept
Nonpartitioned tables can be moved as an online operation without blocking any concurrent DML operations. A table move operation now also supports automatic index maintenance as part of the move.
Non partitioned tables can be moved as online operations without blocking any concurrent DML operations. A table move ope ...
Added by prasadharischandra on Thu, 14 Nov 2019 19:01:31 +0200
Two methods for Oracle to query the highest paid employees in each department: 1. MAX() function 2. RANK() function
this article takes the initial EMP table of SCOTT users as a reference. The code can be used directly.
The statement to query the structure of the EMP table is as follows, code 1:
DESC EMP;
The structure of EMP table is as follows: [result 1]:
SQL> DESC EMP;
//Is the name empty? Type
-------------------------- ...
Added by himnbandit on Thu, 14 Nov 2019 18:51:03 +0200