php - Serialize an array to store it versus create a specific table in mysql -
i want know solution more efficient (or know better solution of course). if have website user can leave comment each post, better solution?
serialize array comments post in column of database (i don't know if possible 2 users leaving comment @ same time can lead data loss)
or maybe better following:
creating specific table called comments, have unique id each post , other unique id each username
i read people don't use serialize function, don't know if idea or not use
table. comments table relation posts , no alternatives it. create, update, delete actions specific comment , search @ becomes painful using serialization single field.
Comments
Post a Comment