开发者

storing user data in a csv file vs database

开发者 https://www.devze.com 2023-03-24 13:07 出处:网络
I am making a site where user can register and make posts using PHP. Currently I have 2 tables in a db, and lots of csv files. Both of 开发者_如何学Cthem together hold, username, password etc. and cou

I am making a site where user can register and make posts using PHP. Currently I have 2 tables in a db, and lots of csv files. Both of 开发者_如何学Cthem together hold, username, password etc. and counters, posts, date etc respectively.

My Question is If it is a good idea to go with two storage systems. Of course i can store all of it in a database. My main concern is fast read & write capability.

Also note that some data is required frequently, and some is required rarely, if i have to divide the data b/w csv & db, what can be better way?


Use only DB, CSV is not for that.

0

精彩评论

暂无评论...
验证码 换一张
取 消