Open leginonbot opened 8 months ago
Original Redmine Comment Author Name: Anonymous (Anonymous) Original Date: 2014-04-28T21:03:07Z
getCTFStats in particledata.inc also generates a fairly slow query.
It turns out we were having problems with a particularly large ap* database that still had some legacy indexes. I manually added new indexes and the query completes 'fast enough' now.
OTH, I experimented with some alternate versions of the query that were much, much faster by avoiding all the sub-selections, etc. I wasn't sure they were a 100% drop-in replacement so I didn't change the code, but in general I think these queries could be a lot more efficient which would be good, since they cause MyISAM tables to get locked from updates/writes.
Original Redmine Comment Author Name: Neil Voss (@vosslab) Original Date: 2014-07-16T19:55:03Z
I played around with this, but this is something Denis wrote that has been patched.
Author Name: Anonymous (Anonymous) Original Redmine Issue: 2747, https://emg.nysbc.org/redmine/issues/2747 Original Date: 2014-04-28
There is a query in the CTF results page that is giving me problems. It is extremely slow, and not only that, seems to lock the AcquisitionImageData table which can block data collection.