当前位置:网站首页>Splitting method of MySQL large tables
Splitting method of MySQL large tables
2022-06-11 17:08:00 【jacklin_ 001】
One . Horizontal resolution
create table The name of the new table select * from Split table order by id limit int1,int2 int1 In fact, the location ,int2 How many
Be careful : In this way, after splitting, the primary key will be invalid. You can manually make the primary key effective, and then you can execute it
alter table The name of the new table modify Primary key field int primary key auto_increment
Two . Vertical resolution
create table The name of the new table select Fields to keep from Split table
After splitting, the original table should be saved
The main thing is to put the frequently checked data in a table , Do not process data that are not checked frequently
边栏推荐
- JPA failed to save multiple entities circularly
- The micro service failed to connect to the cloud sentinel console and the link blank problem occurred after the connection was successful (resolved)
- Solve the problem that jupyter cannot connect to the kernel based on pycharm and Anaconda -- solution 1
- 美团获得小样本学习榜单FewCLUE第一!Prompt Learning+自训练实战
- Tornado environment construction and basic framework construction -- familiar Hello World
- “is-a”,“has-a”,“like-a”
- 【pytest学习】pytest 用例执行失败后其他不再执行
- unittest 如何知道每个测试用例的执行时间
- Katalon Studio Enterprise
- Song of the sea in 5g Era
猜你喜欢

Haas, which integrates relevant technologies of Alibaba cloud, Dharma Institute and pingtouge, has officially announced the book

Why does chip design also need "Craftsmanship"?

Jinte Net Foundation will participate in the global strategy conference of dimension chain through online live broadcast

LeetCode——42. Connected to rainwater (double pointer)
![[pytest learning] after the pytest case fails to execute, the others will not be executed](/img/c7/52ae88cde65bdd12ae8b86df5c477f.png)
[pytest learning] after the pytest case fails to execute, the others will not be executed

Science popularization genius on the left, madman on the right

Solve the problem that jupyter cannot connect to the kernel based on pycharm and Anaconda -- solution 1

Intranet penetration based on UDP port guessing

C language: use H and C. summary of problems encountered in documents

JINTE NET基金会将通过线上直播参与维度链全球战略发布会
随机推荐
数据库备份(Mysql)
[opencvsharp] spot detection barcode decoding image operation image rotation / flip / Zoom perspective transformation image display control demo notes
leetcode--数组
Difference between select into from and insert into select
Pycharm使用小技巧 - 如何设置背景图片
Real time myth -- real-time RTOS multitask performance analysis
LeetCode——42. Connected to rainwater (double pointer)
Axi protocol Basics
Haas, which integrates relevant technologies of Alibaba cloud, Dharma Institute and pingtouge, has officially announced the book
Using MATLAB and dcraw to process digital camera raw files
Center detection of circular marking points for opencv camera calibration
Kernel density estimation (2D, 3D)
Meituan won the first place in fewclue in the small sample learning list! Prompt learning+ self training practice
^32 execution context stack interview questions
启牛推荐开通的股票账户安全吗?靠谱吗
消息队列-推/拉模式学习 & ActiveMQ及JMS学习
Rdkit tutorial
2022 national question bank and mock examination for safety officer-b certificate
select into from 和 insert into select 区别
Le compte de titres de l'école de commerce kainiu est - il sécurisé? Frais d'ouverture de compte