GeekInterview.com
Series: Subject: Topic:
Question: 103 of 236

one of the performance tuning techiques is join with database kept to a minimum. why?

Asked by: prabhupurna | Member Since Jul-2006 | Asked on: Sep 16th, 2006

View all questions by prabhupurna   View all answers by prabhupurna

Showing Answers 1 - 2 of 2 Answers
K Vijay Kumar

Answered On : Oct 28th, 2006

Performing join at database will improve the performance a lot.

take a scenario of joining between the two tables.

Usally we take two database components and place a join component to perform a join between them.This approach takes 2 hits to the data base to retrive the data and perform a join.

Instead of doing in this way we can write a query to perform a join  at the database level by specifing the query while selecting the table. This approach takes only one hit to the data base. 

  
Login to rate this answer.
Subhra Dhar

Answered On : Mar 26th, 2009

View all answers by Subhra Dhar

Join with Database (Join with DB) should not be used if number of records to bejoined with a table is very high as it degradesperformance. Better result can be achieved by retrieving the data from db table and using join component.

There should definitely be an index on the column for the where clause used in the join with db component.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.