Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^3: SQLite in memory database to scalar

by afoken (Prior)
on Mar 21, 2014 at 14:16 UTC ( #1079266=note: print w/ replies, xml ) Need Help??

in reply to Re^2: SQLite in memory database to scalar
in thread SQLite in memory database to scalar

Once the database is created and populated in memory, I want to compress it, and then print it to stdout (it's a response to an http/rest request).

I don't think SQLite is a pretty good transport format, partly because it is binary, and partly because the file format may change (so your client needs to know different SQLite formats). Why don't you use a format that is directly readable, like JSON, XML or YAML? All of those formats won't change, can simply be stored in a perl scalar, and all of them can be compressed very well.


Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Comment on Re^3: SQLite in memory database to scalar

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1079266]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2015-11-29 14:59 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (751 votes), past polls