Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
dblog.module
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
21 Oct 2008 at 10:14 UTC
Updated:
15 Jul 2011 at 03:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedAn index on uid has other uses as well, such as a filter by uid.
Comment #2
dries commentedI fixed the tab-issue and committed this to CVS HEAD. It will need to be re-rolled for Drupal 6 (i.e. update function) so for now I'm marking this 'fixed'. Thanks killes -- glad to see you're submitting patches again!
Comment #3
killes@www.drop.org commentedOh my, I submit a patch and it has a tab. I really should do this more often to practise. ;)
Goba, do you want this in D6? If not, change back status.
Comment #4
killes@www.drop.org commentedI later remembered why there wasn't an index on uid (and timestamp): We deliberately omitted it as we thought that the inserts would be slow if the index would also need to be updated.
However, we already added an index for the type column in http://drupal.org/node/99128
Also, the missing indices seem to be a problem on drupal.org, see http://drupal.org/node/165061
Thus I propose we keep it as it is and also add an index on the timestamp column. If you log enough that the index updates are a problem for you, you should be looking for alternate means of logging.
Comment #6
mikeryanNote the duplicate issue #289510: user_delete() performance: index dblog uid column.
Comment #7
mikeryanRerolled patch from #289510: user_delete() performance: index dblog uid column attached.
Comment #9
marcingy commentedThis exists in head.