V Posted June 25, 2010 Share Posted June 25, 2010 I'm in a dilemma. I'm making a voting system and I'm not sure whether it's better to store voters IP addresses in the database or a text file. I don't know if it's good to put too much data into a table or if it takes longer to retrieve data form a text file.. What are your thoughts? Quote Link to comment https://forums.phpfreaks.com/topic/205867-where-to-store-data-db-table-or-text-file/ Share on other sites More sharing options...
premiso Posted June 25, 2010 Share Posted June 25, 2010 Database will be faster than a textfile, as that is what they were designed for...to store data. Flatfiles will be loads slower as they are not designed to be used as a database. Quote Link to comment https://forums.phpfreaks.com/topic/205867-where-to-store-data-db-table-or-text-file/#findComment-1077260 Share on other sites More sharing options...
Mchl Posted June 25, 2010 Share Posted June 25, 2010 In general for higher traffic you should use a database. Remember that two or more people can not write to one file simultaneously. Quote Link to comment https://forums.phpfreaks.com/topic/205867-where-to-store-data-db-table-or-text-file/#findComment-1077262 Share on other sites More sharing options...
V Posted June 25, 2010 Author Share Posted June 25, 2010 Thanks for the info! I'm definitely convinced to use the db Quote Link to comment https://forums.phpfreaks.com/topic/205867-where-to-store-data-db-table-or-text-file/#findComment-1077267 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.