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 |
Jump to:
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
Sub.
#2
Have you tried converting your tables to INNODB ? Just wondering if there would be any performance gain doing that.
#3
I haven't tried INNODB
#4
subscribe