new index for nodequeue_nodes

dalin - October 19, 2009 - 03:38
Project:Nodequeue
Version:6.x-2.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

There were several queries coming up in my slow query log because MySQL could not utilize any of the existing indexes on this table. Adding the following index helped:

ALTER TABLE {nodequeue_nodes} ADD INDEX {nodequeue_nodes}_qid_nid_idx (qid, nid);

#1

ezra-g - October 19, 2009 - 03:40
Category:bug report» feature request

Great suggestion, thanks. If you could put this into a patch to be part of the default schema and update for current users as an implementation of hook_update_N I would commit it. Otherwise, I'll do this when I'm able to. Would love to get this into the next release.

#2

dalin - October 19, 2009 - 04:24
Status:active» needs review

patch included

AttachmentSize
nodequeue_nodes_idx.diff 788 bytes

#3

ezra-g - October 24, 2009 - 20:23
Status:needs review» fixed

Awesome. This is committed. Thanks again!

#4

System Message - November 7, 2009 - 20:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.