Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: DBI::SQLite slowness (DBD::SQLite bulk insert woes)

by Anonymous Monk
on Sep 20, 2013 at 02:45 UTC ( #1054935=note: print w/ replies, xml ) Need Help??


in reply to Re: DBI::SQLite slowness (DBD::SQLite bulk insert woes)
in thread DBI::SQLite slowness

See also SQLite Optimization FAQ (old but informative) and SQLite Slow insert (use transactions)


Comment on Re^2: DBI::SQLite slowness (DBD::SQLite bulk insert woes)
Replies are listed 'Best First'.
Re^3: DBI::SQLite slowness (DBD::SQLite bulk insert woes)
by marinersk (Curate) on Sep 20, 2013 at 20:31 UTC
    I can attest to efficiency improvements due to at least one of the notes in SQLite Optimization FAQ. Used it at a customer site once, too long ago to remember the numbers but I recall the difference was dramatic. Sample of the commands needed:
    C:\Steve>sqlite test.db C:\Steve>call sqlite-STEVEM2 test.db C:\Steve>"C:\App\SQLite\sqlite3.exe" test.db SQLite version 3.3.5 Enter ".help" for instructions sqlite> pragma default_cache_size; 2000 sqlite> pragma default_cache_size=200000; sqlite> pragma default_cache_size; 200000 sqlite> .exit C:\Steve>sqlite test.db C:\Steve>call sqlite-STEVEM2 test.db C:\Steve>"C:\App\SQLite\sqlite3.exe" test.db SQLite version 3.3.5 Enter ".help" for instructions sqlite> pragma default_cache_size; 200000 sqlite> .quit C:\Steve>

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (21)
As of 2015-07-30 20:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls