Options for storing large text blobs in/with an SQL database?
Posted
by
kdt
on Stack Overflow
See other posts from Stack Overflow
or by kdt
Published on 2011-01-14T00:31:40Z
Indexed on
2011/01/14
0:53 UTC
Read the original article
Hit count: 195
Hi,
I have some large volumes of text (log files) which may be very large (up to gigabytes). They are associated with entities which I'm storing in a database, and I'm trying to figure out whether I should store them within the SQL database, or in external files.
It seems like in-database storage may be limited to 4GB for LONGTEXT fields in MySQL, and presumably other DBs have similar limits. Also, storing in the database presumably precludes any kind of seeking when viewing this data -- I'd have to load the full length of the data to render any part of it, right?
So it seems like I'm leaning towards storing this data out-of-DB: are my misgivings about storing large blobs in the database valid, and if I'm going to store them out of the database then are there any frameworks/libraries to help with that?
(I'm working in python but am interested in technologies in other languages too)
© Stack Overflow or respective owner