This patch adds an index to comment_cck_revisions and removes a SELECT * to make queries quicker (5ms to 1ms in my case).
Any comments?
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | comment_cck_311546.patch | 1 KB | drewish |
| #3 | comment_cck.patch | 1.34 KB | Chris Bray |
| comment_cck.patch | 1.44 KB | Chris Bray |
Comments
Comment #1
Anonymous (not verified) commentedHow did you even get 5.x-1.x-dev to work for you? See: http://drupal.org/node/311272
I'd gladly test out the patch if it would make the mod work ;)
Comment #2
Anonymous (not verified) commentedI just tried to apply the patch and I got this:
Comment #3
Chris Bray commentedHmmm, I fear I may have made the patch against a previous 5.x-1.x-dev build, rather than the current one.
I just re-rolled it and this now applies cleanly against the latest 5.x-1.x-dev.
Comment #4
Anonymous (not verified) commentedThanks!
Patch applied successfully.
From what I can tell, it seems like a good idea.
However, it still doesn't fix the functionality of the mod. Does it work for you?
txcrew
Comment #5
Chris Bray commentedUnfortunately I don't have a test site setup at the moment and I can't upgrade the production site to the latest 5.x-1.x-dev but I'll see if I can setup a test site later and have a look for you.
Comment #6
Anonymous (not verified) commentedNo problem at all. Please no hurry.
If it'd be easier, could you just post the patched package of 5.x-1.x-dev you are using?
Comment #7
Anonymous (not verified) commentedWith many cck_comments on a single node, there will be many revisions made, does this patch also take the performance hit from having many revisions into account?
I'm assuming yes?
txcrew
Comment #8
mitchell commented@Chris Bay: Could you please update your patch to 6.x? I'm very interested in testing and applying this patch.
@txcrew: This won't solve the problem of too many revisions, but #314424: Option to disable revisions would.
Comment #9
drewish commentedIn comment_cck_update_6000() {comment_cck_revisions}.cid was made a primary key so it's got an index now. I don't know that removing the * will make nearly the difference adding the index would but here's a patch to get this moving.