Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun Jun 24, 2018 4:02 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: What is Fast Sqlite or Postgresql
PostPosted: Thu Mar 28, 2013 11:49 am 
Offline
User avatar

Joined: Wed Sep 20, 2006 5:12 pm
Posts: 680
Location: Puerto Rico
I like to now what is fast to insert record in RS Data Base (sqlite)
or Postgresql

:?:

_________________
Thanks for any contribution and God blesses all (I start Using RS in 10/12/2010)
Mac Mini with Lion v10.7.5 and Real Studio 2012r1 Pro And Windows 7 RS2012r1 Personal and Linux RS2012r1 Personal Register user
my Hobbies R/C Turbines Jets Models


Top
 Profile  
Reply with quote  
 Post subject: Re: What is Fast Sqlite or Postgresql
PostPosted: Thu Mar 28, 2013 2:18 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
Many factors revolve around that question. Depends on if you're inserting into an indexed field or not, how many records are in the database, via SQL, via DatabaseRecord insert, transactions or no transactions, is the server on same machine over the network or over the internet?

My experience has been that SQLite can be very fast. In brief testing it was about 10% faster inserting into a million row database that was indexed. But PostgreSQL was much faster in other db operations. But I'm guessing that 10% faster was more my network (SQLite was local machine and PostgreSQL on a different machine) than anything to do with the db.

All transactions are faster inside of transactions. In my testing it can speed things up by 50%.

If you want REALLY fast then do an in-memory SQLite database and then write it out to disk when you're all done.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group