Do you know where your variables are? | |
PerlMonks |
Re: Which is quicker - writing to a file or inserting into a db?by KurtSchwind (Chaplain) |
on Dec 14, 2007 at 00:33 UTC ( [id://656951]=note: print w/replies, xml ) | Need Help?? |
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 . . .
-- I used to drive a Heisenbergmobile, but every time I looked at the speedometer, I got lost.
In Section
Seekers of Perl Wisdom
|
|