I have a query like
DELETE from tablename where colname = value;
which takes awfully long time to execute. What could be the reason? I have an index on colname.
There could be several explanations as to why your query takes a long time:
SELECT NULL FROM tablename WHERE colname=:value FOR UPDATE NOWAIT
ON DELETE TRIGGER
UNINDEXED REFERENCE CONSTRAINTS
1.4m articles
1.4m replys
5 comments
57.0k users