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
2.1m questions
2.1m answers
60 comments
57.0k users