HI GUYS – OPTIMIZATION

pts.
Tags:
Development
Lifecycle development
I HAVE A SQL QUERY WITH 6 TO 7 TABLES IN IT WITH ALL THE RELAVANT JOINS.. WHEN I RUN THIS QUERY IN SQL + , IT TAKES AROUND 3 MIN. TO SHOW ME 3 ROWS AND WHEN THIS QUERY IS RUNNED IN FRONT END , IT SHOWS "OPERATION TIME OUT" CAN U PL.TELL ME HOW TO OPTIMIZE THIS QUERY AND IS SEQUENCE OF COLUMNS IN WHERE CLAUSE EFFECT THE OPTIMIZATION PARAMETERS..

Answer Wiki

Thanks. We'll let you know when a new response is added.

Since you mentioned that you have a front end [program] to run this query, consider splitting your query into multiple queries using your front end to pass the results to the subsequent queries. It has been my experience that the smaller queries run faster.

I’ve made the assumption that you already have appropriate indexes on each of your tables as well.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following