-
Notifications
You must be signed in to change notification settings - Fork 344
Implement COM_STMT_SEND_LONG_DATA #1579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Relates to #943. |
Related to this comment: #943 (comment)
How do you retrieve these BLOB columns from the MySQL server? |
To retrieve the blob I use MySqlDataReader.GetStream inside a loop with a substring request. I will make the suggested changes, thank you for your promptness. |
Signed-off-by: Bradley Grainger <[email protected]>
Signed-off-by: Bradley Grainger <[email protected]>
Signed-off-by: Bradley Grainger <[email protected]>
Signed-off-by: Bradley Grainger <[email protected]>
This will let us test if the blob is stored and retrieved exactly as-is. Signed-off-by: Bradley Grainger <[email protected]>
It just writes "IntegrationTests.ChunkStream" to the column. Signed-off-by: Bradley Grainger <[email protected]>
Signed-off-by: Bradley Grainger <[email protected]>
Signed-off-by: Bradley Grainger <[email protected]>
Signed-off-by: Bradley Grainger <[email protected]>
Signed-off-by: Bradley Grainger <[email protected]>
Signed-off-by: Bradley Grainger <[email protected]>
Signed-off-by: Bradley Grainger <[email protected]>
Signed-off-by: Bradley Grainger <[email protected]>
Signed-off-by: Bradley Grainger <[email protected]>
Signed-off-by: Bradley Grainger <[email protected]>
Wow it's impressive, thanks for all. |
Hi,
I work for a company that has very old software running on 32-bit systems, which stores documents in a MySQL database as BLOBs. In this context, which we are trying to evolve but it takes time, we are facing the memory limit available for an x86 process when storing large documents.
To address this issue with the latest unupdated software, we have tried your implementation of the COM_STMT_SEND_LONG_DATA command for using streams and avoiding memory overload. After several months of testing, we can confirm that it works as intended; memory is no longer impacted by the size of the documents.
Would it be possible to integrate this into your project?