Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Big database queries

by screamingeagle (Curate)
on Aug 30, 2002 at 05:27 UTC ( #194007=note: print w/ replies, xml ) Need Help??

in reply to Big database queries

i'd suggest using a stored procedure. for one, the SQL in the stored procedure is precompiled, thus avoiding the need for the database to parse the query and create an execution plan every single time; secondly, since all the processing is done on the database, you could return back only the filtered results, thus cutting down on network traffic between the database server and the client machine....
i'd also suggest using recordset paging techniques so that u only need to show 20-25 records to the user at a time , and provide "PREVIOUS" and "NEXT" buttons. this way, u dont have to fetch millions of records , just 25 records at a time....that should help.

Comment on Re: Big database queries

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://194007]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2015-11-25 21:15 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (691 votes), past polls