DELETE FROM `ispn_entry_FedoraRepository` WHERE version< 1467297632684 AND version> 0
This DELETE query currently takes something over a minute to complete and acquires a lock that prevents other INSERT (e.g.) queries from running. We have had to increase our innodb_lock_wait_timeout in order to prevent these subsequent INSERT's from timing out but that is not a satisfactory solution.
Does anyone know where this DELETE query is coming from? The 'version' column is not indexed on the ispn_entry_FedoraRepository table so I assume the DELETE query has to do a full table scan each time it runs. We have considered indexing the 'version' column but are not sure what other effects that might have.
Any help or advice would be greatly appreciated! Thanks.
--Jim Coble
Duke University Libraries
MariaDB [ispn]> select * from ispn_entry_FedoraRepository where version = 1;
Empty set (1 min 13.98 sec)
-D
--
You received this message because you are subscribed to the Google Groups "Fedora Tech" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fedora-tech...@googlegroups.com.
To post to this group, send email to fedor...@googlegroups.com.
Visit this group at https://groups.google.com/group/fedora-tech.
For more options, visit https://groups.google.com/d/optout.