Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Text Handling Limitby TomK32 (Monk) |
on Dec 09, 2001 at 00:53 UTC ( [id://130460]=note: print w/replies, xml ) | Need Help?? |
Short answer: When your server gets slow.
A bit longer: The advantage of flat files is that they might (I never did a benchmark) be faster, depending on size and the server's internal throughput on the one side and the database on the other side. You also said only a few scripts use the database file, try to decrease the number once more. If you really don't want to hack into SQL you can also try to split up your textfile, seldom used stuff like a user-bio can be moved into seperate files (for each user one file, or maybe for all users starting with the same letter -> ~36 files) or much better into a static file which gets updated every hour/day.
There are various ways to get around SQL, personally I prefer SQL (cuz I don't have to pay for the database space) but I also like the text files (like in my diary) because I can update them a lot more comfortably.
In Section
Seekers of Perl Wisdom
|
|