![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there, Is it possible to store a binary content of around 200 MBytes into MySQL ? Theorically, there is the BLOB data type (and variation such as LARGEBLOB), but in pratice I don't see how it works. You are limited by the 'max_allowed_packet' and even more by the memory of the client in the first place. There is no way to stream that ? I'm using Hibernate framework upon MySQL, but I can't find anything useful there neither. Is that so that just nobody use BLOB to store more than 16 MB ? |
|
that filesystem is better for doing that kind of stuff, but it requires more pain for developpement, deployement and maintenance since the data are not store in a unique place (the DB), and the dump file are not exhaustive anymore. Any advice or pointer ? |
#3
| |||
| |||
|
|
Hugo wrote: Hi there, Is it possible to store a binary content of around 200 MBytes into MySQL ? Theorically, there is the BLOB data type (and variation such as LARGEBLOB), but in pratice I don't see how it works. You are limited by the 'max_allowed_packet' and even more by the memory of the client in the first place. There is no way to stream that ? I'm using Hibernate framework upon MySQL, but I can't find anything useful there neither. Is that so that just nobody use BLOB to store more than 16 MB ? I've gone up to 64Mytes blob data.. I had to mess with some of the system tunables. Probably PHP and apache ones, but not IIRC mysql ones. I know that filesystem is better for doing that kind of stuff, but it requires more pain for *developpement, deployement and maintenance since the data are not store in a unique place (the DB), and the dump file are not exhaustive anymore. Any advice or pointer ? Not sure what the problem is. LOAD FILE will load a BLOB any size you want really..and I am dead against loading binary data by an update or insert statement..there are potential gotchas there..I chose not to face..:-) |
#4
| |||
| |||
|
|
On 1 Oct, 15:49, The Natural Philosopher <t... (AT) invalid (DOT) invalid> wrote: Hugo wrote: Hi there, Is it possible to store a binary content of around 200 MBytes into MySQL ? Theorically, there is the BLOB data type (and variation such as LARGEBLOB), but in pratice I don't see how it works. You are limited by the 'max_allowed_packet' and even more by the memory of the client in the first place. There is no way to stream that ? I'm using Hibernate framework upon MySQL, but I can't find anything useful there neither. Is that so that just nobody use BLOB to store more than 16 MB ? I've gone up to 64Mytes blob data.. I had to mess with some of the system tunables. Probably PHP and apache ones, but not IIRC mysql ones. I know that filesystem is better for doing that kind of stuff, but it requires more pain for developpement, deployement and maintenance since the data are not store in a unique place (the DB), and the dump file are not exhaustive anymore. Any advice or pointer ? Not sure what the problem is. LOAD FILE will load a BLOB any size you want really..and I am dead against loading binary data by an update or insert statement..there are potential gotchas there..I chose not to face..:-) There is no LOAD FILE in MySQL. There is LOAD DATA INFILE... And there is the LOAD_FILE() function but that is used in an INSERT or UPDATE statement, which you said you are against??? So what do you actually mean? |
#5
| ||||
| ||||
|
|
Is it possible to store a binary content of around 200 MBytes into MySQL ? |
|
You are limited by the 'max_allowed_packet' and even more by the memory of the client in the first place. |
|
There is no way to stream that ? |
|
Is that so that just nobody use BLOB to store more than 16 MB ? I know that filesystem is better for doing that kind of stuff, but it requires more pain for developpement, deployement and maintenance since the data are not store in a unique place (the DB) |
#6
| |||
| |||
|
|
Hugo <hugo (AT) nospam (DOT) invalid> wrote: Is it possible to store a binary content of around 200 MBytes into MySQL ? It is. But it does not make much sense. The MySQL API is very ... basic when it comes to blob handling. You can only read or write blobs as a whole. And in any case both server and client need a buffer that holds an entire row. |
![]() |
| Thread Tools | |
| Display Modes | |
| |