当前位置:网站首页>How much data can a single MySQL table store at most?
How much data can a single MySQL table store at most?
2022-07-29 07:23:00 【. sea month】
Recently, we are working on the database and tables , A problem was found during the operation , Use mycat table , It is found that a single table can only be saved 500 All the data , So there is a question ?
mycat Can only do 500 The data table of 10000 ?
So I simulated it locally , Create a new data table to perform data insertion , It is found that a single table can only be used 500 Ten thousand storage .
Asked Du Niang , Du Niang's explanation is , When the amount of data is large 500 When all , We should consider the sub base and sub table , The saying in the industry is that single table recommended storage 500 Ten thousand data . But it doesn't seem so tall . What we need to do is to optimize data at tens or even hundreds of millions of levels . In this way , We still have to divide many watches . Can't achieve the expected effect .
I can see that there are more than 100 million pieces of data in a single table of brother's database ! Why is this different . Look down carefully . There is a new saying .
In fact we mysql There is no such statement about the upper limit of the data table , because mysql Storage capacity and mysql It doesn't matter much in itself . What does that depend on . I have summarized the following points
1. The limitation of data volume is related to your operating system , As mentioned above , Develop locally , With the help of some development tools , such as Navicat such ,Navicat The single table limit of is 500 ten thousand . If you use an online cloud server . According to the size of your server memory , You will have to limit the amount of data . For example 2GB Of memory , The amount of data is generally 2000 All around
2. According to the primary key of your table , The primary key is set to id int Usually , here int The number of digits can be limited , If your int by 32 position , When your server memory is large enough , At this time, your data volume may be able to store 2^32-1 Data . If the primary key is set to tyint, At this time, only a few hundred pieces of data can be stored
If you have different opinions , Can stay in the comment area
边栏推荐
猜你喜欢

js中break与continue和return关键字

2-统一返回类DTO对象

Excel文件读写(创建与解析)

H3C_ Using setting default static routing priority to realize the active and standby function of export dual lines

WPF interface layout must know basis

亚马逊云助手小程序来啦!

2022-07-28:以下go语言代码输出什么?A:AA;B:AB;C:BA;D:BB。 package main import ( “fmt“ ) func main() { f

CVPR2021| 基于自监督学习的多视图立体匹配 (CVPR2021)

Leetcode 879. profit plan

thinkphp6 实现数据库备份
随机推荐
【Unity实战100例】Unity万能答题系统之单选多选判断题全部通用
gin 服务退出
Homebrew brew update 长时间没反应(或卡在 Updating Homebrew...)
Ansible中的变量及加密
My personal website doesn't allow access to wechat, so I did this
Excel文件读写(创建与解析)
自定义事件
Some learning and understanding of vintage analysis
后缀自动机(SAM)讲解 + Luogu p3804【模板】后缀自动机 (SAM)
Nodejs安装教程
Vite3.0 has been released, can you still roll it (list of new features)
使用VsCode配置MySQL实现连接、查询、等功能
Scala 高阶(九):Scala中的模式匹配
logback简介及引入方法
MySQL uses the client and select methods to view the summary of blob type fields
H3C_利用设置缺省静态路由优先级实现出口双线路的主备功能
CVPR2021| 基于自监督学习的多视图立体匹配 (CVPR2021)
Explanation of suffix automata (SAM) + Luogu p3804 [template] suffix automata (SAM)
Implementation of book borrowing management system based on C language
Meta configuration item of route