Do you know where your variables are? | |
PerlMonks |
Re^2: SQLite and Storable: is "Text" okay?by ikegami (Patriarch) |
on Oct 06, 2010 at 15:53 UTC ( [id://863825]=note: print w/replies, xml ) | Need Help?? |
I don't see SQLite performing any encoding conversion, so that's surely false. It stores whatever bytes it received, whether it's encoded using UTF-8 or not. The difference will surface when someone tries to perform text operations (e.g. sorting) on the field. BLOB is definitely more appropriate here, seeing as the data is binary, but it's my understanding that the type of a column doesn't matter in SQLite if all you do with the column is store and fetch. If it does do encoding conversions, you need to stay away from TEXT for Storable data. You'll potentially waste space and time.
Storable returns binary data. BLOB should be picked because it describes the data best.
In Section
Seekers of Perl Wisdom
|
|