Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
XP is just a number
 
PerlMonks  

Re: SQLite vs CDB_File vs BerkeleyDB

by dws (Chancellor)
on Mar 19, 2002 at 12:21 UTC ( [id://152785]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to SQLite vs CDB_File vs BerkeleyDB

Excellent!

One question. Why   $dbh->do('PRAGMA default_synchronous = off'); in the default (commit after each insert) case? Is this not something that could be hidden beneath the options on the connect?

Replies are listed 'Best First'.
Re: Re: SQLite vs CDB_File vs BerkeleyDB
by Matts (Deacon) on Mar 19, 2002 at 14:45 UTC
    Otherwise SQLite does a fflush on every row, making it much slower ;-)

    The option is only relevant if you're worried about data integrity during a filesystem crash.

      Otherwise SQLite does a fflush on every row, making it much slower ;-)

      Uh... That sounds like you're defeating AutoCommit => 1, which would make this a misleading benchmark.

        Not at all. None of the others were doing fflush per row, so why should SQLite suffer?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://152785]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.