An in-depth understanding of index merge is one of the important foundations for optimizing using indexes. Having understood the index merge technology, we know how to index the table.1. Why is there an index mergeThere may be multiple conditions
An in-depth understanding of index merge is one of the important foundations for optimizing using indexes. Having understood the index merge technology, we know how to index the table.1. Why is there an index mergeThere may be multiple conditions
Mysql uses group_concat () to merge multiple rows of data into one row, and mysqlgroup_concat
Assume that two tables a, B, and B are associated with table a through the field id, and table a and table B are one-to-many relationships. Assume that
Merge table Note: 1. The structure of each sub-table must be consistent. The structure of the master table and sub-table must be consistent. 2. The index of each sub-table will exist in the merge table, therefore, you cannot perform a unique search
Merge is a very useful function, similar to the insert into on duplicate key in MySQL.
Oracle introduced the merge command in 9i,With this merge, You can execute the inserts and updates operations on a table in an SQL statement at the same time.
Index consolidation Optimization official website translationMySQL5.7 Document Index Merging is intended to reduce several ranges (the range type in the type: range can used when a key column is compared to a constant using any of the =, & Lt;>,, >=,
Merge the multi-row records obtained by querying the name field, which can be implemented through a program, but can also be completed directly at the SQL layer. For more information, see the following two tables a, B, table B is associated with
Mysql-merge table bitsCN.com
Mysql-merge table
[SQL]
Note:
1. the structure of each sub-table must be consistent. The structure of the master table and sub-table must be consistent,
2. the index of each sub-table exists in the merge table.
MySQL table sharding Methods: MySQL
I. Let me explain why Table sharding is required.
When a piece of data reaches several millions, it takes more time for you to query the data at a time. If there is a joint query, I think it may die there. The
Document directory
1. Merge Tables
1. Merge Tables
If you want to, you can think of the merged table as an old partition table with more restrictions, but they also have their own use, and can provide some functions that the Partition Table
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.