Re: Download Speed
From: Stephen Howe (stephenPOINThoweATtns-globalPOINTcom)
Date: 03/16/04
- Previous message: Brock Rogers: "Re: Download Speed"
- In reply to: Brock Rogers: "Re: Download Speed"
- Next in thread: Brock Rogers: "Re: Download Speed"
- Reply: Brock Rogers: "Re: Download Speed"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 16 Mar 2004 19:56:51 -0000
> A quick addenda to that last message of mine. After going back and
testing again, I can make the call to pRec->Open("SP_NAME", .......) or I
can call pRec->Open(pCommand, .......) where pCommand is a command object
and with everything set to server side will pull down a minimal amount of
data. If I do a pRec = pCommand->Execute(....) it pulls down all the data
at once regardless of settings. Thank you again Steve for getting me
pointed in the right direction and this issue remedied.
I understand what your doing but I am perplexed as top why it is necessary
and results.
1. The fastest cursor (because it is so limited in terms of what it offers)
out, under SQL Server, is server-sided,readonly,forwardonly. There is some
evidence that a Recordset's CacheSize (which defaults to 1) makes a
difference for server-sided cursors. There are less trips to the database.
2. If you do
pRec = pCommand->Execute(....)
then you have no control on the RecordSet, you should (in theory) get the
defaults.
And that means, if the Connection CursorLocation is Server-sided, you should
get back Forward only, Readonly, Server Sided RecordSet, CacheSize = 1. And
if the
Connection CursorLocation is Client-sided, you should get back Static,
Readonly, Client Sided RecordSet
I would be tempted to print out the pRec values for CursorLocation,
CursorType, LockType, CacheSize to see what is going on. This is what
baffles me.
3. If you do
pRec->Open(pCommand, .......)
you have much more control on the RecordSet that gets returned. You can
setup all the parameters of the Recordset before the Open() method.
Stephen Howe
- Previous message: Brock Rogers: "Re: Download Speed"
- In reply to: Brock Rogers: "Re: Download Speed"
- Next in thread: Brock Rogers: "Re: Download Speed"
- Reply: Brock Rogers: "Re: Download Speed"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|