"Rich Rattanni" <[EMAIL PROTECTED]> wrote:
> On 3/19/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Siebe Warners <[EMAIL PROTECTED]> wrote:
> > >
> > > When i perform a sequence of commands like:
> > > BEGIN;
> > > UPDATE t SET col="val1" WHERE key="key1";
> > > .....
> > > UPDATE t SET col="valx" WHERE key="keyx";
> > > COMMIT;
> > >
> > > Using strace i observe:
> > > - a temp file is created at the start of the transaction
> >
> > The extra file being opened is a rollback journal for each
> > particular UPDATE statement....
> >
> > You can avoid this extra journal file by using UPDATE OR FAIL
> > instead of UPDATE.
> 
> Would it also be acceptable (assuming you want the protection offered
> by the temporary tables) to do ... "PRAGMA temp_store = MEMORY"  on
> the database?
> 

The temp_store pragma only effects the placement of temporary
tables.  But the rollback journal is not a table.  The
temp_store pragma has no effect on the placement of rollback
journals.  Rollback journals always go to disk.

--
D. Richard Hipp  <[EMAIL PROTECTED]>


-----------------------------------------------------------------------------
To unsubscribe, send email to [EMAIL PROTECTED]
-----------------------------------------------------------------------------

Reply via email to