in reply to SQLite database (or any) file in main memory!
That is called a ramdisk, just google for how to create one. On linux, you create it, and mount it to some mountpoint, then you can copy into it. 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. If you don't have enough ram, you shouldn't be using a ramdisk anyways.:-)
I asked a similar question when I first started, about putting perl and it's libs in a ramdisk, to improve speed. But I found that it was like above. It takes time for the OS to load it the first time, then after that, it keeps a copy in memory automatically, unless it is forced out by some other memory hog.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SQLite database (or any) file in main memory!
by tirwhan (Abbot) on Oct 06, 2005 at 14:25 UTC | |
|
Re^2: SQLite database (or any) file in main memory!
by Ace128 (Hermit) on Oct 06, 2005 at 13:53 UTC | |
by BrowserUk (Patriarch) on Oct 06, 2005 at 17:21 UTC |