TXT File or Database?
Posted
by Ruth Rettigo
on Stack Overflow
See other posts from Stack Overflow
or by Ruth Rettigo
Published on 2010-05-23T22:10:56Z
Indexed on
2010/05/23
22:20 UTC
Read the original article
Hit count: 581
Hey folks!
What should I use in this case (Apache + PHP)? Database or just a TXT file? My priority #1 is speed.
Operations
- Adding new items
- Reading items
- Max. 1 000 records
Thank you.
Database (MySQL)
+----------+-----+
| Name | Age |
+----------+-----+
| Joshua | 32 |
| Thomas | 21 |
| James | 34 |
| Daniel | 12 |
+----------+-----+
TXT file
Joshua 32
Thomas 21
James 34
Daniel 12
© Stack Overflow or respective owner