Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.

Re^3: Upgraded SQLite: "database changed" error

by jbert (Priest)
on Jun 05, 2007 at 11:35 UTC ( [id://619352]=note: print w/replies, xml ) Need Help??

in reply to Re^2: Upgraded SQLite: "database changed" error
in thread Upgraded SQLite: "database changed" error

If your app is in control (and knows when the ANALYZE is going to happen) then perhaps the best approach would be to try and control the use of prepared statement handles?

If you defer loading your Class::DBI modules until after the bulk load has finished (or are you using Class::DBI for the bulk load?) then it seems that might work around the problem.

One way to defer the load of some modules until run-time is to wrap the 'use' declaration in a string-eval, e.g. eval "use My::Class::DBI::Module;". Another is to use:

require 'My/Class/DBI/Module'; My::Class::DBI::Module::import();
both of these approaches pull in the module at run-time and so can be used to move the Class::DBI loading until after your ANALYZE, if you perform them in a function rather than at top-level.

There's probably a better way, though.

Log In?

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (3)
As of 2024-04-19 21:49 GMT
Find Nodes?
    Voting Booth?

    No recent polls found