jeetkune
Member
- Affected version
- 2.3.6
XenForo 2.3.6 was installed cleanly without any updates. However, during my MariaDB performance analysis, I encountered an issue. Below is the problem:
I’ve analyzed the database schema using pt-duplicate-key-checker and identified a suboptimal index in the xf_poll_response table that could be optimized for better performance.

I’ve analyzed the database schema using pt-duplicate-key-checker and identified a suboptimal index in the xf_poll_response table that could be optimized for better performance.
Issue Identified
The table has:- A PRIMARY KEY on poll_response_id (auto-increment)
- A secondary index poll_id_response_id on (poll_id, poll_response_id)
- Current index: (poll_id, poll_response_id)
- InnoDB’s internal representation: (poll_id, poll_response_id, poll_response_id) (redundant)
