admin/settings/search is slow with many nodes

Wesley Tanaka - September 23, 2008 - 18:21
Project:Drupal
Version:6.4
Component:search.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I've been looking into using Drupal with millions of nodes. One problem is that the admin/settings/search page is very slow. This tends to cause CPU quota errors on shared hosting.

The query causing the problem is this one:

SELECT COUNT(*) FROM node n LEFT JOIN search_dataset d ON d.type = 'node' AND d.sid = n.nid WHERE n.status = 1 AND (d.sid IS NULL OR d.reindex <> 0)

which has roughly the same problems as the query in node_update_index(), and could be fixed with a similar approach.

#1

robertDouglass - September 25, 2008 - 19:02

Sub.

#2

slantview - September 25, 2008 - 20:54

Have you tried converting your tables to INNODB ? Just wondering if there would be any performance gain doing that.

#3

Wesley Tanaka - September 26, 2008 - 04:50

I haven't tried INNODB

#4

caole261188 - September 29, 2008 - 01:40

subscribe

 
 

Drupal is a registered trademark of Dries Buytaert.