Re: client side cursor vs server side cursor regarding memory used
- From: "Stephen Howe" <sjhoweATdialDOTpipexDOTcom>
- Date: Tue, 19 Apr 2005 01:29:05 +0100
>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.
It is true. When you do RecordSet Open(), it won't normally complete until
the last record is read (unless you use asynchronous Open()). You can watch,
using Task Manager the amount of memory being consumed going up on a steady
ramp. Given the size of the request, eventually Windows will start paging
out to disk.
> I will try server side cursor with my text source and see if that
> alleviates
> the memory problem.
> Thanks!
Open() now returns once CacheSize records (or less) are read. You might want
to set the CacheSize to something like 64, 256 etc rather than the default 1
before doing the Open(). It gives better performance. There is no optimal
number. My hunch (unchecked) is that the optimal size is something like
Network Packet Size / Record Size. With 256 records, the cache is filled
with 256 records and it won't request more from the Server until 256
MoveNext()'s have been done.
Stephen Howe
.
- 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
- Re: client side cursor vs server side cursor regarding memory used
- From: Jiho Han
- client side cursor vs server side cursor regarding memory used
- Prev by Date: Re: client side cursor vs server side cursor regarding memory used
- Next by Date: what's the equivalent of response.flush in asp.net datagrid
- 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
|
|