Re: [sqlite] How to decrease IO usage

2013-01-11 Thread Bebel
Hi Simon,

I include all the operation made by my action (so open/close are included).

I create one base per user, so I prefer not to merge database to make one
bigger.

Thanks for your help.



--
View this message in context: 
http://sqlite.1065341.n5.nabble.com/How-to-decrease-IO-usage-tp66474p66502.html
Sent from the SQLite mailing list archive at Nabble.com.
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] How to decrease IO usage

2013-01-11 Thread Bebel
Hi Igor,

Well it's a interesting solution, and I already explored this possibility.
Now, it will be too expansive and complicated for us to migrate data from
sqlite to nosql solution.

We choose sqlite about 5 years ago, when nosql was not an industrial
solution. Sqlite was the best choice.

Now we "must" use sqlite, and we need to the best with it !





--
View this message in context: 
http://sqlite.1065341.n5.nabble.com/How-to-decrease-IO-usage-tp66474p66497.html
Sent from the SQLite mailing list archive at Nabble.com.
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


Re: [sqlite] How to decrease IO usage

2013-01-11 Thread Bebel
Hi Michael,

Thanks for your feed back, but as far as I understand the pragma cache size,
it's only increase the cache size during the session.
But the cache is deleted when the database is close.

In my case, I only make short transaction on the database, like open, read
and immediately close. I can't maintain the session active.

But, one of my possible solution is to put database in memory, with vmstat
for example. It will produce something similar, because all the data will be
in memory.

However, I'm looking for sqlite solutions. I can get around of my latence
problem with system solution, but if I can optimize my solr usage, it will
be better. I feel that my usage is not as optimal as it could be.



--
View this message in context: 
http://sqlite.1065341.n5.nabble.com/How-to-decrease-IO-usage-tp66474p66494.html
Sent from the SQLite mailing list archive at Nabble.com.
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users


[sqlite] How to decrease IO usage

2013-01-10 Thread Bebel
Hi there,

Let me explain you my problem.

I'm working with a lot of sqlite base (many million), but they are very
small, 2000 entries for the bigger. In this base, I create 6 tables, but I
mostly work on just one of them.

My structure are very simple, I stored varchar and blob.

My amount of insert is not important regarding to my amount of select
action.

Now my problem is that my limitation for increase my latency is on the
amount of IO ops perform by the databases. In fact, sqlite make a lot of
random IO on my disks (many hundred) and this increase my disk latency.

I made a test on a empty database, on which I insert a value and then read
it. This two sqlite operations made more than 40 IO operation.

Then, do you know a way to optimize my usage ?

NB : Data integrity is very important on my environment.

Thanks for help, and happy new year !



--
View this message in context: 
http://sqlite.1065341.n5.nabble.com/How-to-decrease-IO-usage-tp66474.html
Sent from the SQLite mailing list archive at Nabble.com.
___
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users