Best way to collect and store data daily?

Posted by mktb on Stack Overflow See other posts from Stack Overflow or by mktb
Published on 2009-02-16T18:07:10Z Indexed on 2010/06/14 1:02 UTC
Read the original article Hit count: 227

Filed under:
|

I have a bunch of statistics: # of users, # of families, ratio user/family, etc. I'd like to store these daily so I can view this data historically.

However, I'm looking for the most effective way to store this data.

Should I run a cron job that writes to the database DATE: today USERS: 123 FAMILIES: 456 RATIO: 7.89 or whatever? (or should I write multiple rows like DATE: today DATATYPE: users VALUE: 123?)

Or is there another option I can use that is more efficient or more effective?

Thanks!

© Stack Overflow or respective owner

Related posts about data

Related posts about storage