Satya Prakash
Satya Prakash

Reputation: 3502

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 ? 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.

Upvotes: 2

Views: 1884

Answers (1)

Anirudh Ramanathan
Anirudh Ramanathan

Reputation: 46728

There is no limit in mysql itself. 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.

The largest possible packet that can be transmitted to or from a MySQL 5.5 server or client is 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. With some clients, you may also get a Lost connection to MySQL server during query error if the communication packet is too large.

Reference

When it comes to the number of concurrent read/writes, that depends solely upon the disk in use and the CPU. The faster the mysql server can process queries sent, and faster the read/write speeds, the larger the number of concurrent read-writes.

Upvotes: 1

Related Questions