Re: [sqlite] PRAGMA journal_mode not implemented?

2008-05-07 Thread D. Richard Hipp
On May 6, 2008, at 11:08 PM, Scott Hess wrote: > > I suppose in DELETE mode, SQLite will delete the journal for you, but > I don't think it would hurt to do it yourself... No, it's deadly to do it yourself. That is my point. Unless you very carefully analyze the lock state of the database

Re: [sqlite] PRAGMA journal_mode not implemented?

2008-05-07 Thread Ralf Junker
>In PERSIST mode, you have two files associated with your database >instead of one. Whenever you move, copy, or rename the database file >you *must* also move, copy or rename the journal file to prevent >database corruption. > >The persistent journal file uses disk space that might

Re: [sqlite] PRAGMA journal_mode not implemented?

2008-05-06 Thread Scott Hess
On Tue, May 6, 2008 at 7:41 PM, D. Richard Hipp <[EMAIL PROTECTED]> wrote: >> Since PERSIST is likely to be faster than DELETE on >> most platforms, is there ever a reason *not* to use >> it? > > In PERSIST mode, you have two files associated with your database > instead of one. Whenever you

Re: [sqlite] PRAGMA journal_mode not implemented?

2008-05-06 Thread D. Richard Hipp
> > > Since PERSIST is likely to be faster than DELETE on > most platforms, is there ever a reason *not* to use > it? > In PERSIST mode, you have two files associated with your database instead of one. Whenever you move, copy, or rename the database file you *must* also move, copy or rename

Re: [sqlite] PRAGMA journal_mode not implemented?

2008-05-06 Thread Bob Ebert
sday, 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.html) as well as the pragma

Re: [sqlite] PRAGMA journal_mode not implemented?

2008-05-06 Thread Richard Klein
Bob Ebert wrote: > 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

[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