Re: client side cursor vs server side cursor regarding memory used
- From: "Jiho Han" <jiho.han@xxxxxxxxxxxxxxxx>
- Date: Mon, 18 Apr 2005 13:43:12 -0400
I believe I am using adLockReadOnly but the main issue is probably the fact
that I am using the client side cursor with 60K+ rows if what you are
stating is true.
I will try server side cursor with my text source and see if that alleviates
the memory problem.
Thanks!
"Stephen Howe" <stephenPOINThoweATtns-globalPOINTcom> wrote in message
news:u4zQoZDRFHA.2680@xxxxxxxxxxxxxxxxxxxxxxx
> > For example, I think that since
> > the client side cursor keeps track of the cursor on the client side,
it'd
> > retain all the records retrieved so far whereas the server side cursor
> might
> > not.
>
> Client-sided is expensive in terms of memory for the application.
> It has to build up the entire Recordset in client-sided memory.
> It helps if you economise in terms of LockType.
> For example, if you are only going to read from the Recordset, use
> adLockReadOnly.
> There is only one CursorType : adOpenStatic
>
> Server-sided is cheap in terms of memory for the application as the server
> takes the strain.
> Memory consumed is whatever the CacheSize is + some overhead for
CursorType
> and LockType.
> adLockReadOnly is the cheapest LockType
> adOpenForwardOnly is the cheapest CursorType (but very limited in what
> functionality it give you - no MovePrevious, no RecordCount).
> In general - don't use a more expensive cursor than you need - it will
> consume more resources to setup and maintain.
>
> Stephen Howe
>
>
.
- Follow-Ups:
- Re: client side cursor vs server side cursor regarding memory used
- From: Stephen Howe
- Re: client side cursor vs server side cursor regarding memory used
- References:
- client side cursor vs server side cursor regarding memory used
- From: Jiho Han
- Re: client side cursor vs server side cursor regarding memory used
- From: Stephen Howe
- client side cursor vs server side cursor regarding memory used
- Prev by Date: RE: Syntax error in insert statement?
- Next by Date: Re: client side cursor vs server side cursor regarding memory used
- Previous by thread: Re: client side cursor vs server side cursor regarding memory used
- Next by thread: Re: client side cursor vs server side cursor regarding memory used
- Index(es):
Relevant Pages
|
|