I am working on theme where I am adding vote functionality to comments and posts. What should I use, meta tables or create a new table?

  • 1
    That depends on your anti-vote fraud mechanism.
    – fuxia
    Commented May 11, 2013 at 11:38
  • Thanks, that helped me a lot. Using a table can prevent fraud voting by filtering IP and users.
    – Core
    Commented May 11, 2013 at 12:44

1 Answer 1


You can use both:

  1. Comment meta for the plain vote count, because that is easy to fetch with a standard query.
  2. A custom table storing additional data to prevent vote fraud and other issues. These tables might be used for rare events (voting) only, but they are not used to list comments in the back-end or in views where voting is not possible anyway.

So plan performance bottle-necks first, profile, then decide what setup works best for you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.