Closed (fixed)
Project:
Bibliography Module
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2007 at 23:53 UTC
Updated:
24 Dec 2008 at 02:03 UTC
Hi Ron,
My main biblio page was taking a _very_ long time (average: 26s!) to load the results (2722 items, 25 per page). After altering the index structure of the biblio table, I got a loading time between 1 and 2 secondes, which I believe is ok. Here's my suggestion:
ALTER TABLE `biblio` DROP PRIMARY KEY;
ALTER TABLE `biblio` ADD PRIMARY KEY (`nid`);
ALTER TABLE `biblio` ADD INDEX (`vid`);
jv
Comments
Comment #1
rjerome commentedActually I don't think that will work if you use revisions since it is vid that is unique rather then nid. A better approach might be this...
ALTER TABLE `biblio` DROP PRIMARY KEY;
ALTER TABLE `biblio` ADD PRIMARY KEY (`vid`);
ALTER TABLE `biblio` ADD KEY nid (`nid`);
By the way... 2722 entries!!!! Quite impressive! Could you email me the URL, I'd like to see.
Comment #2
jeromev commentedOkay.
I'll let you know when the biblio is online on the production server. Hopefully next week :)
thanks
jv
Comment #3
rjerome commented