Re: SQLite Server

new topic     » goto parent     » topic index » view thread      » older message » newer message

Good news! SQLite v3 handles all of this for you. Just carry on doing your thing and the library will automatically lock/wait/unlock between processes as necessary. It's like magic!

You will probably experience delays if you're trying to write from multiple processes at the same time. Multiple processes reading from the same database should be effectively delay-free.

See also:

Edit: Sorry, I guess this doesn't happen automatically. You'll have to call sqlite3_busy_timeout() as indicated here: Set A Busy Timeout. Then, as long as your writes stay under the timeout, the library will automatically wait for a slot to open and write the database.

-Greg

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu