[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.2

mySQL queries to be made more efficient (host has shut down account.....)

Asked by scottyh56 in MySQL Server

My host has shut down my shared hosting account because of excessive load on the server. The following queries are blamed - but have been running for 18 months without previous incident. I set out what they sent me - the stats around the queries don't mean much to me.

Is there something I can do to improve matters? There is no indexing on the tables but is that the issue or are these queries inherently inefficient in which case how can they be improved?

Or has the host got something wrong - after all has worked for 18 months and 3 tables have no more than approx 6000 entries (images) 600 (submissions) 200 (photogs)

QUERY 1 - locates a single image and retrieves related info from 3 tables

# Time: 070718 13:33:47
# User@Host: photoconnectimag[photoconnectimag] @ localhost [] # Query_time: 54  Lock_time: 0  Rows_sent: 5934
Rows_examined: 5934
use photoconnectimag;
SELECT photoconnectSubmissions.submitRef,
photoconnectSubmissions.loginName,
photoconnectImages.imageRef, photoconnectImages.loginName, photoconnectImages.submitRef, photoconnectImages.imgfileName, photoconnectImages.imageDesc1, photoconnectImages.imageDesc2, photoconnectImages.modelRelease, photoconnectImages.propRelease, photoconnectImages.maxSize, photoconnectImages.sellLicense, photoconnectImages.sellRF, photoconnectImages.sellFA, photoconnectImages.buyerDecides, photoconnectImages.sellRestrict, photoconnectImages.refAlamy, photoconnectImages.pageType,
photoconnectImages.urlAlamy, PhotoconnectPhotogs.loginName, PhotoconnectPhotogs.agencyName, PhotoconnectPhotogs.payPageURL, PhotoconnectPhotogs.eMail, PhotoconnectPhotogs.websiteURL, PhotoconnectPhotogs.firstName, PhotoconnectPhotogs.lastName FROM photoconnectImages, photoconnectSubmissions, photoconnectusers, PhotoconnectPhotogs WHERE imageRef = 1003567 AND photoconnectImages.submitRef = photoconnectSubmissions.submitRef AND photoconnectImages.loginName = PhotoconnectPhotogs.loginName;

QUERY 2 - searches 2 tables for a keyword

# Time: 070718 13:34:13
# User@Host: photoconnectimag[photoconnectimag] @ localhost [] # Query_time: 121  Lock_time: 0  Rows_sent: 16
Rows_examined: 11822
use photoconnectimag;
SELECT photoconnectImages.submitRef, photoconnectImages.imageRef, photoconnectSubmissions.submitRef,
photoconnectSubmissions.Valid,
photoconnectImages.imgfileName,
photoconnectImages.imageDesc1,
photoconnectImages.imageDesc2,
photoconnectImages.modelRelease, photoconnectImages.sellLicense, photoconnectImages.sellRF, photoconnectImages.sellFA, photoconnectImages.urlAlamy,
photoconnectImages.refAlamy,
photoconnectSubmissions.pageTitle FROM photoconnectImages
LEFT JOIN photoconnectSubmissions ON photoconnectImages.submitRef = photoconnectSubmissions.submitRef WHERE photoconnectSubmissions.Valid = 'yes'  AND ((imageDesc1 LIKE
'%teenager%') OR (imageDesc2 LIKE '%teenager%') OR
(pageTitle LIKE '%teenager%')) AND (Valid = 'yes') ORDER BY photoconnectImages.imageRef DESC LIMIT 32, 16;

Thanks

Scott
[+][-]07/19/07 11:53 AM, ID: 19524953Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/19/07 11:54 AM, ID: 19524970Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/19/07 12:41 PM, ID: 19525401Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/20/07 01:42 AM, ID: 19529494Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: MySQL Server
Sign Up Now!
Solution Provided By: leannonn
Participating Experts: 2
Solution Grade: A
 
[+][-]07/20/07 02:38 AM, ID: 19529694Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/20/07 02:54 AM, ID: 19529744Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/20/07 02:59 AM, ID: 19529764Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/20/07 03:48 AM, ID: 19529935Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/20/07 04:13 AM, ID: 19530028Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/20/07 05:02 AM, ID: 19530189Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/20/07 07:56 AM, ID: 19531588Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07/20/07 08:03 AM, ID: 19531671Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07/20/07 08:05 AM, ID: 19531703Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89