![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| A tip to speed up Pligg
I noticed that in the database there is no index on the link_status column in the pligg_links table. Almost every page load on the entire site includes 2 queries of this column, so adding an index on this column should provide a noticable improvement. I'm just launching my site now so I can't say how much, but it will definitely help. Once you have 1000+ stories in your Pligg site, having no index on this column has to be a killer.
|
| The Following 13 Users Say Thank You to swiper For This Useful Post: | ||
| |||
|
This makes total sense. While I've done my share of php, I hadn't quite gotten into MySQL performance tweaks yet, but this seems consistent with everthing I've read. When some more knowledgable dudes confirm it, I'll write a blog on PliggPower.com. Thanks! Brandon
__________________ 10 Things You MUST Know About Pligg Marketing Text Links Center - Pligg For Dogs - Pligg For Musicians Brandon |
| |||
|
"Almost every page load on the entire site includes 2 queries of this column, so adding an index on this column should provide a noticable improvement." Wow! so how does one go about solving this :-/ |
| The Following User Says Thank You to AshDigg For This Useful Post: | ||
| |||
|
It's a give and take scenario. It speeds up select queries, but if you're doing an update or insert, not only are you updating the data, but the database has to update the indexes as well. For all intents and purposes, this is generally a good idea. You figure for every record update for a semi busy pligg site, you're going to do 100-500 reads, so the overhead trade off on record updates is worth it, IMO. I'm going to implement this myself shortly. EDIT: I personally didn't see a major improvement, but it was noted. If somebody has time to do speed tests, I'd be interested. Last edited by Atma; 11-01-2007 at 09:09 AM.. |
| ||||
| Quote:
|
| |||
|
nothingman - To add the index just issue the following in mysql (via your servers admin panel, SSH, etc): alter table pligg_links add index(link_status); |
| The Following 3 Users Say Thank You to swiper For This Useful Post: | ||
| |||
|
Okay, so what's the verdict? Should everyone add an index or is this a case by case basis? Brandon
__________________ 10 Things You MUST Know About Pligg Marketing Text Links Center - Pligg For Dogs - Pligg For Musicians Brandon |
| ||||
|
Please wait for a few days - Ash would be providing a significant update on the indexes and database optimizations - he has mentioned this at the top of this thread.
|
![]() |
« Previous Thread
|
Next Thread »
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pligg integration with SMF Forum | autoinc | Modification Tutorials | 64 | 05-19-2008 02:22 AM |





- he has mentioned this at the top of this thread.
Linear Mode

