3

Mysql 5.1: if we want to use very large blobs, apparently we need very large packets, configured identically on both ends. How large can we go before something explodes?

See this.

RolandoMySQLDBA
  • 16,544
  • 3
  • 48
  • 84
bmargulies
  • 2,333
  • 3
  • 17
  • 20

1 Answers1

3

what is a mysql 'packet', anyway

That page you linked to describes exactly what a packet is. It is:

  • A communication packet is a single SQL statement sent to the MySQL server
  • A single row that is sent to the client
  • A binary log event sent from a master replication server to a slave.

So, if your packet size is set to 16Mb, then you won't be able to return a row larger than 16Mb in size. If you have the potential to be storing a 500Mb BLOB then you will need to increase your packet size to > 500Mb to accomodate this.

How large can we go before something explodes?

MySQL cannot return a single row larger than 1Gb, so I guess your maximum blob size is 1Gb - size of other fields in row

Mark Henderson
  • 68,823
  • 31
  • 180
  • 259
  • Actually, that's a link provided by sysadmin1138, the OP added it in after the comment was left. Which, as you pointed out, answers the question. – mfinni Nov 25 '10 at 03:06