ultramysql icon indicating copy to clipboard operation
ultramysql copied to clipboard

Still got "Socket receive buffer full" exception

Open yihuang opened this issue 11 years ago • 3 comments

I have a table which has a blob field, and when i want to query all data from it, i got "Socket receive buffer full". And when i increase the MYSQL_PACKET_SIZE from (1024 * 1024 * 16) to (1024 * 1024 * 32), it's disappeared.

alldata = list(executeSQL('select * from table_with_big_blob_field', ()).rows)

yihuang avatar Jun 24 '13 13:06 yihuang

That is expected. The umysql driver doesn't use streaming but instead retreives the entire result set in memory.

//JT

On 24 jun 2013, at 15:03, "yihuang" <[email protected]mailto:[email protected]> wrote:

I have a table which has a blob field, and when i want to query all data from it, i got "Socket receive buffer full". And when i increase the MYSQL_PACKET_SIZE from (1024 * 1024 * 16) to (1024 * 1024 * 32), it's disappeared.

alldata = list(executeSQL('select * from table_with_big_blob_field', ()).rows)`

— Reply to this email directly or view it on GitHubhttps://github.com/esnme/ultramysql/issues/34.

jskorpan avatar Jun 24 '13 14:06 jskorpan

This figure has related to query size too big problem? If so, can this figure be able to set when build the connection? In some environment, large query is needed and query size is controlled by server-side.

V-E-O avatar Jun 27 '13 12:06 V-E-O

This issue still exists, can you please provide a solution that allows users to run queries on sets larger than your buffer size without manually setting limits in SQL

jkbbwr avatar Jul 10 '13 08:07 jkbbwr