According to my math your final database size should be on the order of 100Meg?
 
That means at 200 minutes and 1,000,000 records:
83 inserts per second
8333 bytes per second
 
Both of these values are terrible.  
 
#1 What kind of network connection do you have?  100BaseT?
#2 What kind of server are you writing to?
#3 How fast does this run if you write to your local machine?
 
 
 
Michael D. Black
Senior Scientist
Northrop Grumman Mission Systems
 

________________________________

From: sqlite-users-boun...@sqlite.org on behalf of Werner Smit
Sent: Wed 7/14/2010 10:06 AM
To: General Discussion of SQLite Database
Subject: EXTERNAL:Re: [sqlite] Sqlite Insert Speed Optimization



>>On 14 Jul 2010, at 11:55am, Werner Smit wrote:

>> ps. When I started with sqlite it took 500 minutes to save the 1
million
>> records.
>> I've got it down to just less than 200 minutes with current settings.
>> Clarion does it in between 100 and 200 minutes.

>Do you have any indexes defined ?  It can be considerably faster to
DROP the indexes before importing all that >data, then remake them
afterwards.  Of course you may already be doing this.
>
>Simon.


Nope, no index only a primary key..
CREATE TABLE Due
  (Pin          Integer
  ,IDNumber     Char(13)
  ,Name         VarChar(35)
  ,PayPeriod    Integer
  ,PaypointCode VarChar(6)
  ,RegionCode   VarChar(6)
  ,ProxyPin     Integer
  ,PRIMARY KEY (Pin)
  );

The table I'm using for test purpose look like above.



DISCLAIMER:
Everything in this email and its attachments relating to the official business 
of Face Technologies is proprietary to Face Technologies. It is confidential, 
legally privileged and protected by law. The person addressed in the email is 
the sole authorised recipient. Any unauthorized dissemination or copying of 
this e-mail (or any attachment to this e-mail) or the wrongful disclosure of 
the information herein contained is prohibited.

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to