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

Re: SQLite Slow insert

by Corion (Pope)
on Feb 17, 2013 at 19:21 UTC ( #1019194=note: print w/ replies, xml ) Need Help??


in reply to SQLite Slow insert

As you don't show us how your database is constructed, or how you open the DB connection, it's somewhat hard to guess.

I suggest looking at the Performance section of the DBD::SQLite documentation. Consider whether loading the data in an atomic transaction is OK for you. Also see http://bobby-tables.com/, because your way of constructing the insert statement is liable to fail with embedded single quotes. Use placeholders there.


Comment on Re: SQLite Slow insert
Re^2: SQLite Slow insert
by afoken (Parson) on Feb 17, 2013 at 19:29 UTC
    [...] your way of constructing the insert statement is liable to fail with embedded single quotes. Use placeholders there.

    The select statement has the same problem.

    Alexander

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2014-04-17 01:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (437 votes), past polls