NukeXchange Network

          

Nuke Sites Link Directory
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·right blocks appear only to admins
·Special characters
·Header not working....
·No banner - Sunset-Theme (but $banner exists)
·Banners not showing on Sunset
·Installation Issues
·Looking for content warning/age verification system.
·Babebox Module Block Image Script
·Upload-Download
·Download Module error

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: Blizz
Today: 0
Yesterday: 1
Overall: 15008

Visitation:
Guests: 704
Members: 0
Total: 704


You are Anonymous user. You can register for free by clicking here
Sponsor Links
php-Nuke Themes and Templates
php-Nuke Themes and Templates

NukeResources :: View topic - mysql slow querries on coppermine
NukeResources Forum Index

NukeResources Forum Index -> Random Thoughts -> mysql slow querries on coppermine
Post new topic  Reply to topic    View previous topic :: View next topic 
mysql slow querries on coppermine
PostPosted: Sat Jul 26, 2008 2:15 pm Reply with quote
gsicard
Resource Seeker
Resource Seeker
 
Joined: Feb 25, 2003
Posts: 18




hello all,
I am running coppermine 1.22b on a nuke 7.6 patched 3.4. On my host logs it shows that this querry in cpg is slow.

Code:
SELECT COUNT(*) FROM cpg_comments as c INNER JOIN cpg_pictures AS p ON (p.pid = c.pid AND approved='YES') INNER JOIN cpg_albums as a ON (p.aid = a.aid AND visibility IN (0,2,2,24545) AND category >= '0') ORDER BY msg_date DESC


Can anyone tell me how to speed it up on php and mysql 5.X
View user's profile Send private message Visit poster's website
PostPosted: Wed Aug 20, 2008 3:05 pm Reply with quote
Loper
Resource Seeker
Resource Seeker
 
Joined: Feb 21, 2008
Posts: 10




I'm not a huge SQL guru, so this may be off. But it seems as if you're selecting a count(*) and yet doing ORDER BY also. If your return is nothing but a single integer (and that's what you want) you could drop the sort to pick up a good bit of speed.
View user's profile Send private message
mysql slow querries on coppermine
 NukeResources Forum Index -> Random Thoughts
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 4 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic     



Powered by phpBB © 2001-2005 phpBB Group.     Theme created by Vjacheslav Trushkin.
There have been 256 unique hit(s) in the past 24 hours.
Forums ©
Nuke Sites Link Directory


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.25 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::