Re: AW: [PEAR-DEV] RE: Re: Sqlite wrapper for Log package

From: Date: Sun, 04 Jan 2004 22:38:09 +0000
Subject: Re: AW: [PEAR-DEV] RE: Re: Sqlite wrapper for Log package
References: 1 2 3 4  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24749@lists.php.net to get a copy of this message
On Mon, 05 Jan 2004 00:43:44 +0300 Alexey Borzov <borz_off@cs.msu.su> wrote: > > Indeed, but always better than other DBs > > Excuse me? No :). > No DB will lock the whole table for *insert*. Even MySQL won't. Who said that? You should have read "even with this "problem" I'm pretty sure that sqlite is faster than most of the DBs around". However I have not ran any benchmark done to verify that. > I remember reading that 'a' mode of fopen() was specifically designed > to prevent these kinds of problems. Besides, you don't usually keep > other data in log files, while you do keep it in SQLite "database" > file. Concurrent write to a file is not possible. 'a' is used to get the seek pointer to the end of file and then quickly insert the datas at the end of the file (see the manual for more infos). This operation can be quit fast and hide a bit the lock side effects. pierre

« previous php.pear.dev (#24749) next »