Open apmuthu opened 7 years ago
@mlespiau @skrchnavy thoughts on this? I assume these indexes are okay to remove - but would 'index removal' actually assist with database optimisation at-all?
The number of indexes on a table is the most dominant factor for insert performance. The more indexes a table has, the slower the execution becomes. Legitimate uses of redundant indexes are for leveraging storage engine specific features.
@apmuthu it woudl be great if you and @amaisonneuve could discuss this and reach a conclusion. See https://groups.google.com/g/opencats-dev/c/zTgYCiXjMj0 `Russ, yes you are correct the existing indexing in OpenCATS is tragic at best.
The Query is a monster and needs a re-write, which I have yet to do but want to do.
We have some key problem areas which are causing multiple temp tables to be generated which don't have indexing.
I've made some small changes in the SQL, I can PR the other ones.
I've created new indexex on top of the existing ones for now:
Index (List): candidate_id, site_id, is_admin_hidden, date_modified Index (PRIMARY): candidate_id Index (Prime) candidate_id, site_id `
Expected behavior and actual behavior.
Database Index optimisation - remove redundant indexes:
Steps to reproduce the problem.
What version of opencats are you running? WAMP or LAMP?
attach appropriate error logs. Please attach [apache/mysql] error/access logs as needed.