I'm getting hundreds of these in my slow query log, and I'm not sure why.
# Query_time: 0 Lock_time: 0 Rows_sent: 0 Rows_examined: 0
DELETE FROM semaphore WHERE value = '16810499904bf043683336e8.58613630';
Each one has a different value, and the table is indexed on the expire element the way it should be. These do not appear if I disable logging of queries that could not use an index, but there's hundreds of them if I enable it.
Any ideas?
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | 800432-D6-20.patch | 845 bytes | pwolanin |
| #14 | semaphore_value_index-800432-d6-14.patch | 844 bytes | albert volkman |
| #3 | semaphore-missing-index.patch | 620 bytes | marcingy |
Comments
Comment #1
damien tournoud commentedOh. We don't have an index on
{semaphore}.value... that's a weird oversight.Requalifying as a bug and bumping to D7.
Comment #2
dawehnerDrupal7
Drupal6
I think we would have to add expire to d7 and value to d6, right?
Comment #3
marcingy commentedAdding expire index to d7.
Comment #5
marcingy commentedHmmm
Comment #6
marcingy commented#3: semaphore-missing-index.patch queued for re-testing.
Comment #8
dawehner#3: semaphore-missing-index.patch queued for re-testing.
Comment #9
damien tournoud commentedBumping to major, and I am happy with #3.
Comment #10
dries commentedCommitted to CVS HEAD. Moving this to the HEAD to HEAD project.
Comment #11
rfayThis needs to go to Drupal 6.
Please create new issues for head2head.
I created #863662: Add index on {semaphore}.expire
Comment #12
damien tournoud commentedYes, please stop moving core issues to HEAD2HEAD and create new issues instead. That makes things impossible to follow.
Comment #13
gábor hojtsyI'm not so sure that this actually needs to be a head2head issue, since we do generally support updates from whatever previous Drupal version, so the update function will need to be ported to D7 as well and committed here.
Comment #14
albert volkman commentedD6 backport.
Comment #15
mgiffordPatch in #14 applies nicely to D6. I just stumbled upon this when looking through my slow query logs.
This is probably RTBC.
Comment #16
mgifford14: semaphore_value_index-800432-d6-14.patch queued for re-testing.
Comment #18
mgiffordI think we can safely mark this as won't fix given this stage of D6's life cycle.
Comment #19
pwolanin commentedWe are seeing this with Drupal 6 - no harm in at least having a working patch
Comment #20
pwolanin commentedHere's a re-roll. Something changed in the code comment at the end of the file that was causing the patch to not apply.