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);

CommentFileSizeAuthor
#2 nodequeue_nodes_idx.diff788 bytesdalin

Comments

ezra-g’s picture

Category: bug » feature

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.

dalin’s picture

Status: Active » Needs review
StatusFileSize
new788 bytes

patch included

ezra-g’s picture

Status: Needs review » Fixed

Awesome. This is committed. Thanks again!

Status: Fixed » Closed (fixed)

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