php - MySQL and Serialized Data, it's fine? -
currently have site 600 active members. need keep "history" each one, each week.
so every week store 11 rows each user, table has more 30,000 rows.
i thinking on serialize php array these 11 records , save them in 1 single row, speed search , save space.
do not know if practice or not, saw example wordpress use method.
it's fine store serialized data in database, lose ability use sql logic individual records or fields of serialized data.
basically becomes "black box" or in other words irreducible blob of data sql has no ability work with, except return whole blob application. i.e. read reads whole blob, , update have replace whole blob.
not is bad thing -- depends how use data. if it's normal app read or write whole blob every time accesses it, , never need reference individual fields of in sql expressions, might serialize data.
Comments
Post a Comment