To reduce expensive JOIN, this patch moves comment statistics to node table. Teh code and update patch are nearly complete. I need some help with the following items to finish the patch.
1. review node_search(). i think more needs to be done there. there is some funky $join2 mojo there. maybe Steven can help?
2. possibly enhance the update function to use the update.php long running update system. I looked at the revisions update but still am not sure how to do this. perhaps neil, steven, or gerhard could look at this.
3. benchmark on a large node site to assure that actually makes a difference.
-moshe
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | patch_89 | 22.74 KB | moshe weitzman |
| #2 | patch_79 | 23.77 KB | moshe weitzman |
| #1 | patch_67 | 24.4 KB | moshe weitzman |
| patch_65 | 22.98 KB | moshe weitzman |
Comments
Comment #1
moshe weitzman commentedwith some input from Steven, i've knocked off 1 and 2 so just benchmarks against a many node site are needed now.
Comment #2
moshe weitzman commentedkeep up with HEAD
Comment #3
dries commentedI'll try to benchmark this later this week.
Comment #4
moshe weitzman commentedsync to HEAD for system.install change
Comment #5
dries commentedThe comment counts (x comments in below node teaser) do not appear to display on the main page, after running the upgrade.
My main page is 1% faster with this patch.
Comment #6
dries commentedI'll try some more tests with additional blocks (eg. recent comments block) on the front page.
Comment #7
moshe weitzman commented@dries - if possible, test forum pages with the drupal.org database. this patch only matters on sites with many nodes ... i will look into the missing comment counts.
Comment #8
moshe weitzman commentedunassigning this. mayeb someone else can benchmark and find a way that this delivers better boost.
Comment #9
gerhard killesreiter commentedif somebody provides an updated patch, I'll run the test that I ran on my users_access patch.
Comment #10
Zen commentedIsn't this regressive with respect to modularity?
Comment #11
moshe weitzman commented@Zen - yes it is. the benchmarks will show if the speed improvement merits the loss of isolation/modularity.
Comment #12
moshe weitzman commenteddavid strauss has been working on this recently. can't find the link right now.
Comment #13
ajk commentedhttp://drupal.org/node/148849