Talk:Pager Nagger

From WebOS Internals
Revision as of 04:21, 3 September 2009 by Destinal (talk | contribs) (clarification re mistaken warning -- sorry)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The big warning on this page seems a bit unfounded, especially the claims that sqlite is designed for one process at a time and that reads (SELECT) create locks.

sqlite FAQ

Can multiple applications or multiple instances of the same application access a single database file at the same time?

Multiple processes can have the same database open at the same time. Multiple processes can be doing a SELECT at the same time. But only one process can be making changes to the database at any moment in time, however. JackieRipper 01:26, 3 September 2009 (UTC)JackieRipper

You're right, my assumptions regarding locking all came from experience with older versions of sqlite (not sqlite3) and from jettero's initial report of findings. My mistake, and sorry for inadvertently maligning the script. I still think direct access to databases with sqlite3 is best avoided and a simple mojo app could do this better. --destinal.

Re: warning (moved from main page)

I'm not entirely convinced the crash related to the nagger. My nagger is/was a daemon written in C that did pretty much the exact same thing as the shellscript (but also checked the email address of the 6245 SMS). I have attached a crashlog to this page. --jettero