Go Back   Pligg CMS Forum > Other > Retired Threads

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 04-07-2007, 07:40 PM
Casual Pligger
 
Join Date: Mar 2007
Posts: 80
Thanks: 5
Thanked 2 Times in 2 Posts
These were the SQL optimization revisions that I was going to use to upgrade my beta 9.0. Since I've made so many changes to my beta 9.0, I've got to add these improvements incrementally. I don't think I'll ever be able to just upgrade to the next version unfortunately :-( This list might help anyone just wanting to do the SQL optimizations only for an older version.

/config.php rev 850 - SQL Optimization
/config.php rev 865 - SQL Optimization (Large Site)
/install/install3.php rev 865 - SQL Optimization (Large Site)
/install/installtables.php rev 850 - SQL Optimization
/install/installtables.php rev 865 - SQL Optimization (Large Site)
/install/installtables.php rev 867 - SQL Optimization (Large Site)
/install/installtables.php rev 890 - SQL Optimization
/install/upgrade.php rev 850 - SQL Optimization
/install/upgrade.php rev 872 - SQL Optimization
/install/upgrade.php rev 865 - SQL Optimization (Large Site)
/install/upgrade.php rev 867 - SQL Optimization (Large Site)
/libs/comment.php rev 850 - SQL Optimization
/libs/dbtree.php rev 856 - SQL Optimization
/libs/dbtree.php rev 868 - SQL Bug Fix
/libs/html1.php rev 865 - SQL Optimization (Large Site)
/libs/html1.php rev 875 - SQL Optimization
/libs/link.php rev 844 - SQL Optimization
/libs/link.php rev 850 - SQL Optimization
/libs/link.php rev 859 - SQL Optimization
/libs/link.php rev 865 - SQL Optimization (Large Site)
/libs/pageview.php rev 890 - SQL Optimization
/libs/search.php rev 875 - SQL Optimization
/libs/smartyvariables.php rev 844 - SQL Optimization
/libs/smartyvariables.php rev 860 - User Cache
/libs/smartyvariables.php rev 865 - SQL Optimization (Large Site)
/libs/user.php rev 860 - User Cache
/libs/utils.php rev 866 - SQL Optimization (Large Site)
/libs/votes.php rev 859 - SQL Optimization
/rss/import_feeds.php rev 865 - SQL Optimization (Large Site)
/submit.php rev 865 - SQL Optimization (Large Site)
/user_add_remove_links.php rev 869 - SQL Optimization
Reply With Quote
  #12 (permalink)  
Old 04-07-2007, 07:46 PM
Casual Pligger
 
Join Date: Mar 2007
Posts: 80
Thanks: 5
Thanked 2 Times in 2 Posts
Cache changes that I will implement are the following to get up to speed. I hope this list helps anyone just wanting to improve cache from Beta 9.0.

/admin_categories.php rev 533 - Cache / Optimization
/admin_categories.php rev 535 - Cache / Optimization
/config.php rev 533 - Cache / Optimization
/config.php rev 879 - Cache Code Upgrade
/libs/dbtree.php rev 887 - Cache Code Upgrade
/libs/html1.php rev 533 - Cache / Optimization
/libs/html1.php rev 880 - Cache Code Upgrade
/libs/html1.php rev 881 - Cache Code Upgrade
/libs/link.php rev 883 - Cache Code Upgrade
/libs/login.php rev 882 - Cache Code Upgrade
/libs/smartyvariables.php rev 533 - Cache / Optimization
/libs/smartyvariables.php rev 879 - Cache Code Upgrade
/libs/smartyvariables.php rev 880 - Cache Code Upgrade
/libs/user.php rev 893 - Cache Code Upgrade
/libs/user.php rev 914 - Cache Code Upgrade
/plugins/function.include_clipcache.php rev 533 - Cache / Optimization
/readme.txt rev 545 - Chmod Requirements
/rss/import_feeds.php rev 879 - Cache Code Upgrade
/templates/cratima/sidebar.tpl rev 533 - Cache / Optimization
/templates/cratima/sidebar_modules/wrapper2.tpl rev 533 - Cache / Optimization
/templates/cratima/user_center.tpl rev 545 - Cache / Optimization
Reply With Quote
  #13 (permalink)  
Old 04-08-2007, 12:22 AM
kbeeveer46's Avatar
Pligg Developer/Admin
Pligg Version: 0
Pligg Template: none
 
Join Date: Jun 2006
Location: Muncie, Indiana
Posts: 3,547
Thanks: 254
Thanked 649 Times in 513 Posts
Quote:
Originally Posted by Simon View Post
On the SVN changes, all I can suggest is looking for entries with "cache" in them. But no guarentee that will get all of them (there were a number of them as i recall, mostly made by Ashdigg).

On a related note, I was talking with savant yesterday, and he was just testing a datastore with pligg. Using a datastore should massively reduce query numbers for actions such as getting story data for the main page, as it will use 1 call to get all the data, rather than 1 + n stories calls. The downside is the 1 query will be a lot slower than the 9 quick calls (the saving on the front page with 8 stories was only 56ms) - however when the database gets busy, only having to call the database once will obviously be a big performance boost. I don't think this change will appear particularly soon, but it will be a good one!

One area we noticed a lot of queries were being generated on were comments. For example take a look at these 2 links:

http://news.oioplus.com/marketing/oi...ls-up-running/ - O comments, 14 queries
http://news.oioplus.com/politics/oio...ing-pligg-cms/ - 3 comments, 46 queries

Just wanted to give a heads up on that one, as with a lot of comments will rack up the queries very quickly. Looks like that will need optimisation, or caching, or both.
I think Ash was wanting to work on the story page next and do some of the same things he did for the index and upcoming pages.
__________________
I accept donations for my time helping users like you on the forum and IRC.
Reply With Quote
  #14 (permalink)  
Old 04-08-2007, 02:16 AM
savant's Avatar
Constant Pligger
 
Join Date: Apr 2006
Location: UK
Posts: 1,218
Thanks: 64
Thanked 207 Times in 148 Posts
I'm stopped work on the linkmanager.datastore so we don't end up doing the same thing.
__________________
Anatomy of the Pligg template Help needed
Reply With Quote
  #15 (permalink)  
Old 04-30-2007, 08:03 AM
Constant Pligger
 
Join Date: Mar 2006
Posts: 575
Thanks: 14
Thanked 126 Times in 61 Posts
Just upgraded to the latest 9.5 code - now reading only 17 queries (13 when logged in) on the front page, with 8 stories present. I am using a totally static sidebar, but still a great drop from the 50 queries or so I was seeing with the SVN code from a few weeks back, and of course a MASSIVE drop from 9.1.

NB: figures taken from pligg's internal query counting system
__________________

Reply With Quote
  #16 (permalink)  
Old 04-22-2008, 04:25 AM
New Pligger
Pligg Version: 9.9b
 
Join Date: Apr 2008
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
17 queries? That's awesome!
I just joined (haven't installed the app yet)
Was that query count for an out-of-the-box version or a custom-tweaked installation?
Reply With Quote
Reply

Thread Tools
Display Modes
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Search Engine Friendly URLs by vBSEO 3.2.0