Oh, assuming the actual disk speed is the same; well let's assume the database is on the same machine and writes to the same disk, I would guess that
appending to a file is much quicker than inserting a record in the database.
All bets are off once you need to check against existing records (basically starting when you need to see if an email has already been registered). For simple cases, it's still relatively trivial to beat mysql, but you're going to have to build a lot more infrastructure yourself, or use some simpler, faster (probably non-relational) database system, like BerkelyDB.
update: you are already using mod_perl or some other persistent processing system, right? otherwise there's really not much point in even thinking about this.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.