Re: Didn't ADO used to default to client-side cursors?
From: David Gugick (davidg-nospam_at_imceda.com)
Date: 12/03/04
- Next message: jxstern: "Re: Didn't ADO used to default to client-side cursors?"
- Previous message: jxstern: "Re: Didn't ADO used to default to client-side cursors?"
- In reply to: jxstern: "Re: Didn't ADO used to default to client-side cursors?"
- Next in thread: jxstern: "Re: Didn't ADO used to default to client-side cursors?"
- Reply: jxstern: "Re: Didn't ADO used to default to client-side cursors?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 2 Dec 2004 20:03:08 -0500
jxstern wrote:
> On Thu, 2 Dec 2004 15:26:17 -0500, "David Gugick"
> <davidg-nospam@imceda.com> wrote:
>> Have you noticed whether the
>> application performs a little slower using the client-side cursor?
>
> A bit faster, actually.
>
> The Execute takes a bit longer, but the client-side cursor is quite a
> bit faster than the server-side, which only makes sense since it
> doesn't have to reach across the network.
>
> J.
Well, it does have to reach across the network and fetch the same result
set on the server in order to create a local ADO result set. I would
think that it shouldn't be faster from execute to load completing unless
something like your packet size with the server cursor is so small that
ADO had more round trips to complete. I don't think ADO uses a
asynchronous load for the client cursor.
Server Side Cursor
Execute
Fetch and load into grid
Client Side Cursor
Execute
Auto-Fetch and create local ADO result set (ADO behind the scenes)
Fetch and load into grid
I'm not saying you need to time everything, but I would think that from
the execution time to the user having a grid full of data would be
faster with a server-side cursor. But as you saw, because the grid load
is a slow process, the result set on the server remains a little longer
and that increases the duration of the query. You could try increasing
the packet size for the query to move more data across the network with
each trip.
-- David Gugick Imceda Software www.imceda.com
- Next message: jxstern: "Re: Didn't ADO used to default to client-side cursors?"
- Previous message: jxstern: "Re: Didn't ADO used to default to client-side cursors?"
- In reply to: jxstern: "Re: Didn't ADO used to default to client-side cursors?"
- Next in thread: jxstern: "Re: Didn't ADO used to default to client-side cursors?"
- Reply: jxstern: "Re: Didn't ADO used to default to client-side cursors?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|