Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does having more than one Recordset slow down a page in any way?

Status
Not open for further replies.
Jul 13, 2001
180
US
I have a page that has 5 recordsets, each with a particular SQL query to filter out five different tables of info one page.
Would having more than one recordset slow things down? If so, is there an easier and/or efficient way around it?

Thanks In Advance.
 
Yes have this many queries will slow things down a bit. Not because of the database (they are pretty fast no matter how you slice it) but because of the resources required to manage five connections to the database. The most efficent way to accomplish this (at least I think, any comments appreciated) would be to create a database view (SQLServer), Stored Procedure (Oracle, SQLServer), or a predefined Query (MS Access) that makes all the necessary table joins and returns exactly the recordset you are looking for.

This allows you to make one query and retun exacly what you need minimizing the server overhead in managing the objects and connection. Hope this helps.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top