However, you may NOT see any speed improvement, because if you have enough ram , the OS's memory management system will probably already keep the sqlite db file in memory, if it is used on a frequent basis.
While this is true for many databases and other applications, it is not really true for SQLite. SQLite does an fsync() after every transaction, thus flushing out the cache, then closes and reopens the file. You therefore lose a lot of the OS's caching benefits, because changes will be written out immediately and reread. See my other post further down on how to get around that (another option IIRC is to run SQLite in non-synchronous mode, but that's only useful if you don't care much about your data :-).
In reply to Re^2: SQLite database (or any) file in main memory!
by tirwhan
in thread SQLite database (or any) file in main memory!
by Ace128
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |