Re: [sqlite] transaction recovery question

2008-06-04 Thread Bob Ebert
Also note that it's often possible to open a corrupted database and operate on it with no error, nothing goes bad until you touch a corrupted row/table/index. We've found that doing a "PRAGMA integrity_check" is effective for discovering any/all corruption in a database early and avoiding random e

Re: [sqlite] Sqlite 3.5.9 journal_mode vs ext3 journaling

2008-05-29 Thread Bob Ebert
8, at 6:50 PM, Bob Ebert wrote: > I wonder if anyone is in a position to compare and contrast the > journal_mode and synchronous settings with the various ext3 journal > modes? > > Up until now we've been using ext3 with data=ordered, and sqlite3 with > synchronous=normal,

[sqlite] Sqlite 3.5.9 journal_mode vs ext3 journaling

2008-05-22 Thread Bob Ebert
I wonder if anyone is in a position to compare and contrast the journal_mode and synchronous settings with the various ext3 journal modes? Up until now we've been using ext3 with data=ordered, and sqlite3 with synchronous=normal, journal_mode=delete. We're on an embedded system with a very high f

Re: [sqlite] Proposed SQLite C/C++ interface behavior change.

2008-05-13 Thread Bob Ebert
It seems like a programmer error if a statement remains unfinalized when the DB is closed. It would be great if something about the API would help programmers detect and fix errors like this. Having sqlite3_close return an error helped a little, because it made you aware there was a problem, but

Re: [sqlite] Is this Sorting order right?

2008-05-12 Thread Bob Ebert
Here's an example skeleton for a custom collation. (Using UTF8 encoding, change the declarations as necessary.) // declarations typedef int SQLiteCompare_t (void *, int, const void *, int, const void *); int MyCompare(void *userData, int str1Len, const UTF8 *str1, int str

Re: [sqlite] blocks of read/write

2008-05-09 Thread Bob Ebert
Look at the page_size pragma. I believe SQLite always reads/writes in page_size chunks. You might also want to adjust cache_size. http://sqlite.org/pragma.html --Bob -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf O

Re: [sqlite] PRAGMA journal_mode not implemented?

2008-05-06 Thread Bob Ebert
f Richard Klein Sent: Tuesday, May 06, 2008 3:25 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] PRAGMA journal_mode not implemented? Bob Ebert wrote: > Is journal_mode a future optimization? The atomic commit > documentation > (http://sqlite.org/atomiccommit.htm

[sqlite] PRAGMA journal_mode not implemented?

2008-05-06 Thread Bob Ebert
Is journal_mode a future optimization? The atomic commit documentation (http://sqlite.org/atomiccommit.html) as well as the pragma docs (http://www.sqlite.org/pragma.html) make tantalizing references to this potentially useful optimization, but I've searched the 3.5.1 and 3.5.8 sources and I can't