in reply to Which is quicker - writing to a file or inserting into a db?
There seems to be an assumption that the over-head of the db + the disk io of the db is going to be greater than the disk io alone. This is most likely true.
However, it's entirely possible to cache db writes so that you can essentially subtract the disk io from the db. RAM is orders of magnitude faster than disk. And if you have extensive caching on the db, it really can out-perform straight disk io.
I'm just sayin . . .
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Which is quicker - writing to a file or inserting into a db?
by Joost (Canon) on Dec 14, 2007 at 02:20 UTC | |
|
Re^2: Which is quicker - writing to a file or inserting into a db?
by mreece (Friar) on Dec 14, 2007 at 02:12 UTC |