alter table file_revisions drop primary key, add primary key (vid, fid);
see:
http://lists.drupal.org/pipermail/development/2007-January/021581.html
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | swap_file_revision_index.patch.txt | 840 bytes | gerhard killesreiter |
alter table file_revisions drop primary key, add primary key (vid, fid);
see:
http://lists.drupal.org/pipermail/development/2007-January/021581.html
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | swap_file_revision_index.patch.txt | 840 bytes | gerhard killesreiter |
Comments
Comment #1
gerhard killesreiter commentedhere is a patch. pgsql part is missing, no idea if it would be neccessary.
Comment #2
RobRoy commentedAnd all these new/modified keys should be included in system_install() as well and (maybe) for pgsql.
Comment #3
Crell commentedUsing ab with a hitcount of 100 on a fresh HEAD, 10 nodes on the front page, 3 with attachments, and MySQL query cache off. I didn't see any appreciable difference with this patch. Both before and after, multiple ab runs hovered between 304 and 310 mean ms per request.
Also, you're missing an underscore in the table name. :-)
Comment #4
Crell commentedNo progress and didn't accomplish anything anyway.