php - Database implementation of simple "like it" functionality -
php - Database implementation of simple "like it" functionality -
i want implement functionality working "like it" in fb.
i want users able simple click button under object like. positive vote.
the thing want remember, objects have maintain in database. let's say, there's 1 type of object maintain simple.
the simplest way create table implement many many relation (users objects).
my questions are:
is reasonable solution in terms of performance? table quite big , used often. ;)
any improve way this?
1) yes, is. remember maintain indexes on both foreign keys (better yet, have both keys composite primary key)
2) not know of.
php mysql sql
Comments
Post a Comment