mysql - How to semplify this database schema and query? -
this database schema:
post: -id -title -body -date user: -id -name -password category: -id -title post_category: -id -id_post -id_category post_user: -id -id_user -id_post post_like: -id -id_user -id_post comment: -id -id_user -id_post -body
"like" in project works "facebook likes".
in homepage need latest 50 post informations categories, users, likes, comments.
is there way avoid complex query join these 7 tables ?
Comments
Post a Comment