简体   繁体   English

Mysql一次插入和选择的最大行数

[英]Mysql Max number of Rows Insert and Select at a time

What is the max number of records can be written and read from Mysql table at a time ? 一次可以从Mysql表写入和读取的最大记录数是多少? or max number or read and write at a time? 或最大数量或一次读写?

I suppose the data for read and write can vary. 我想读写数据可能会有所不同。 If one is reduced then another may go up. 如果减少一个,那么另一个可能会上升。 But still give some info on it on per second basis or per minute basis. 但仍要每秒或每分钟提供一些信息。

I am not looking for an exact answer. 我不是在寻找确切的答案。 I am looking for approx answer. 我在寻找大概的答案。 Also, for hardware, think of average shared hosting provider. 此外,对于硬件,请考虑普通的共享主机提供商。

There is no limit in mysql itself. mysql本身没有限制。 However, a limit is placed upon the maximum size of the packet, sent to the server. 但是,对发送到服务器的数据包的最大大小有限制。 In case of an INSERT or SELECT, a COM_QUERY packet is sent by the underlying implementation. 在INSERT或SELECT的情况下,基础实现发送COM_QUERY数据包。

The largest possible packet that can be transmitted to or from a MySQL 5.5 server or client is 1GB. 可以与MySQL 5.5服务器或客户端之间进行传输的最大数据包为1GB。 When the mysqld server receives a packet bigger than max_allowed_packet bytes, it issues a Packet too large error and closes the connection. 当mysqld服务器接收到一个大于max_allowed_pa​​cket字节的数据包时,它发出一个Packet太大错误并关闭连接。 With some clients, you may also get a Lost connection to MySQL server during query error if the communication packet is too large. 对于某些客户端,如果通信包太大,在查询错误期间,您也可能会丢失与MySQL服务器的连接。

Reference 参考

When it comes to the number of concurrent read/writes, that depends solely upon the disk in use and the CPU. 当涉及到并发读/写次数时,这仅取决于所使用的磁盘和CPU。 The faster the mysql server can process queries sent, and faster the read/write speeds, the larger the number of concurrent read-writes. mysql服务器处理发送的查询的速度越快,读/写速度越快,并发读写的数量就越大。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM