Reply
Thread Tools
Posts: 48 | Thanked: 51 times | Joined on Jul 2007 @ Austin, TX, USA
#1
I have observed that sqlite-based applications experience a significant delay during the connection's commit() call.

At least, that is the case for my N810 with Diablo, where the rootfs is stored on a class 4 micro-SD card.

As reported here, I was able to turn the multilist application from "frustratingly slow" to "perfectly usable" by adding

Code:
pragma synchronous=0
to the SQL code.

I wonder if this can be used in general for Maemo applications (such as my own SplitTheTab, given that the database is stored in Flash memory.
 
w00t's Avatar
Posts: 1,055 | Thanked: 4,107 times | Joined on Oct 2009 @ Norway
#2
This may appear to be faster, but it won't really be safe. The delay you're witnessing will most likely be down to fsync() (and other) calls, which are slow as they actually force writing of the data to storage.
__________________
i'm a Qt expert and former Jolla sailor (forever sailing, in spirit).
if you like, read more about me.
if you find me entertaining, or useful, thank me. if you don't, then tell me why.
 

The Following User Says Thank You to w00t For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 00:22.