Postponed
Project:
Country code
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
25 Oct 2008 at 01:02 UTC
Updated:
10 Dec 2008 at 13:51 UTC
Jump to comment: Most recent file
In two places we were doing a join that, for lack of indexes, was hugely slow.
In one place, the query can be replaced by a call to transation_node_get_translations().
The other - in a Views filter - requires adding two indexes:
CREATE INDEX node_tnid_language ON node(tnid,language);
CREATE INDEX node_language ON node(language);
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | country_code-index.patch | 1.83 KB | nedjo |
Comments
Comment #1
nedjoApplied a patch to refine the first case.
TODO: add the indexes. Presumably we do so with hook_schema_alter(). But will these changes be made on install?
Comment #2
nedjoWorking up a patch.
Comment #3
nedjoPatch attached.
I'd like to consider #329608: Move country language filter to its own module before applying this.
Comment #4
catchMarking this postponed against #329628: commentactivity.module Bug w/ Fix.