1 Jan 2010 14:37
Re: Mozilla's method
Hello Olaf! Thanks again for the message. By "corrupted" (the meaning of this word seems to differ depending on the user's perspective) you mean that the db is really destroyed and cannot be opened anymore? Currently I am working on an application that tracks something like a GPS signal, and if a signal is not saved to the db it's not a big problem. But db corruption would be. Another question would be: When I use transactions, and I said ".BeginTrans" and insert new records and then, before saying ".CommitTrans", I query the records, they seem to be already saved. Can you tell me why this is so? Does a select command automatically trigger a ".CommitTrans"? Wishing you a happy new year! On Fri, Jan 1, 2010 at 9:11 AM, Olaf Schmidt <sss@...> wrote: > > "Bert Nelsen" <bert.nelsen@...> schrieb > im Newsbeitrag > news:a5ffd530912311004p26a7cc5k1f1bf6f671befdd5@... > > > Your .Sychronous = False property does everything > > as fast as I want, and I am not afraid of losing some > > user data (it's not a critical application) but > > I am very much afraid of having a corrupted db. > > Can anybody please confirm > > that there is no chance of getting my db corrupted? > > Ah, I see now, where the "confusion" came from. > The wrappers Synchronous-Property has nothing to do(Continue reading)
And what's so amazing with the SQLite-engine -
is, that all that comes in such a small package.
Regarding "aggregated writes" and transactions again...
What SQLites async-writer thread does, is to
implement something like a "delayed write" at
the DB-engine-level (instead to rely on such a
feature to be implemented at the filesystem-level).
Delayed writes can ensure better performance, since
the new gathered (to be written) data can be grouped
(sometimes also reordered) into larger chunks,
to let the "real disk actions" happen within a more
optimal (more efficient) "operation-window", so to say.
In case of your (smaller) VB-based application you can
achieve something like that also with an "always opened"
transaction, gathering the new to be written data (records)
using SQLites internal transaction-cache-mechanisms -
RSS Feed