Exforsys

Online Training

Performance of Query

This is a discussion on Performance of Query within the MySQL forums, part of the Database category; What are the SQL tuning hints one can apply if the SQL query runs too long time? I have good ...


Go Back   Exforsys > Database > MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-05-2007, 05:30 PM
Senior Member
 
Join Date: Apr 2006
Posts: 139
Ralph is on a distinguished road
Performance of Query

What are the SQL tuning hints one can apply if the SQL query runs too long time? I have good indexing done on the table. I want to further improve the performance of the query which is planned to run for long hours. Kindly provide me some ways for achieving the best performance of my query.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-08-2007, 03:40 PM
Senior Member
 
Join Date: Apr 2006
Posts: 145
Rahulbatra is on a distinguished road
One important guideline I could give you is Check whether you have placed index on all fields which you use for joining. If not first do that since this will help you to fetch and store values in an efficient way.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-08-2007, 04:44 PM
Senior Member
 
Join Date: Apr 2006
Posts: 122
rachelle is on a distinguished road
In the select statement always place whatever columns which you need in your output for other queries. Avoid selecting unnecessary attributes in select columns. This methodology would help in increasing your performance in a sufficient manner.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new questions
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads

Thread Thread Starter Forum Replies Last Post
How to find second max sal of employee with the co chandraismoon Oracle Tutorials 7 05-16-2008 03:08 AM
Request for interview question for Testing (QA) wildkid98 Testing Tutorials 17 04-23-2008 04:24 AM
LoadRunner FAQ kalareddy Testing Tutorials 2 10-02-2007 03:19 AM
Performance Engineering Opening @ Sun Microsystems Bangalore techguru Experienced Job Seekers - India 0 05-24-2005 08:24 AM
Sybase FAQ: 1/19 - index David Owen Tech FAQ 2 04-20-2004 09:45 AM


All times are GMT -4. The time now is 12:27 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.