On Fri, Jan 16, 2009 at 11:52:01AM +0100, Mohamed Zayed scratched on the wall:
> Hi,
> 
> I wender if you ever have experienced this kind of problem. In fact, I used
> to create a database which
> contains about 1.5 Millions records.
> 
> The problem is, when I do this on :
> Linux 2.6.9-34.ELsmp #1 SMP Sun Mar 19 13:54:02 CST 2006 i686 i686 i386
> GNU/Linux
> 
> it takes less than 10 minutes
> 
> However when, I do it on :
> Linux 2.6.18-53.el5 #1 SMP Mon Nov 12 02:14:55 EST 2007 x86_64 x86_64 x86_64
> GNU/Linux
> 
> it takes about 2 hours ?!!!!

  It sounds like the first case is using transactions and/or has
  "PRAGMA synchronous" turned off, while the second one is inserting
  records one at a time.  The low CPU indicates a lot of thumb
  twiddling while waiting for physical I/O.

  I suppose the other possibility is that the first machine lies to
  SQLite about when the writes actually hit spinning disk, while the
  second version does not.

   -j

-- 
Jay A. Kreibich < J A Y  @  K R E I B I.C H >

"Our opponent is an alien starship packed with atomic bombs.  We have
 a protractor."   "I'll go home and see if I can scrounge up a ruler
 and a piece of string."  --from Anathem by Neal Stephenson
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to