Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: DBD::SQLite questions

by ww (Archbishop)
on Nov 27, 2013 at 17:31 UTC ( #1064662=note: print w/replies, xml ) Need Help??

in reply to DBD::SQLite questions

Too many questions with too many unrelated answers for a single thread.

Replies are listed 'Best First'.
Re^2: DBD::SQLite questions
by techman2006 (Beadle) on Nov 27, 2013 at 17:56 UTC

    One thing a SQLite is a flat files based DB so you can compress the files using either gzip or other compression you like.

      Well, SQLite has internal hooks for compress() and uncompress() so I would like to use those. I just don't know how.
      From the documentation, it seems I would need to call
      $dbh->sqlite_create_function( 'compress', 1, sub { # magic incantation +s for compression } ); $dbh->sqlite_create_function( 'uncompress', 1, sub { # magic incantati +ons for uncompression } );

      Then when I call INSERT or SELECT I need to compress() and uncompress() the text strings.
      Maybe I could use IO::Compress::Zip for the magic incantations...?
      That's what I can gather, but I can find no specifics on implementation.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2023-11-30 14:50 GMT
Find Nodes?
    Voting Booth?

    No recent polls found