whisller/sfDoctrineGuardVotePlugin

Performance methods getVotesCountPositive and getVotesCountNegative

Opened this issue · 0 comments

Now when user is executing methods getVotesCountPositive or getVotesCountNegative method for first time is making SQL query and save result to the cache.

Maybe better idea is make two columns in object e.g. votes_count_positive and votes_count_nevative and increment value of this columns after vote is added.