Home > Archive > MS SQL Server ODBC > June 2005 > RDO resultset performance problem









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RDO resultset performance problem
Marko Erzen

2005-06-10, 3:23 am

Hi to all,

I have a big performance problem with looping threw rdoresultset.

I made some very complex sql queries. They link like 5 tables and uses a
couple subqueries. The number of returned rows is something like 1000. Query
execution takes about 1 second, which is completly acceptable. But before I
can display result to the user, I need to perform some calculations over
returned rows. To loop threw resultset (movenext) takes 2 seconds, which is
VERY slow! The procedure is very optimized, so each value in resultset in
fetched only once. How can I access all data in the resultset in a much more
efficient way? I do not need to update any row, all I need to is to get
values from resultset.

Query is optimized for fast data access. I can not perform arithmetic
operations directly in query. The amount of data returned by the server is
something like 15kb, which is very small. I am using RDO and cursor library
is rdUseOdbc. For resultset I tryed to use different parameters, ie
readonly, forwardonly,... but performance does not change. And the server I
uses is SQL serer 2000.


Any idea would be really appreciated!!

Marko Erzen


Uwa Agbonile [MSFT]

2005-06-10, 11:23 am

Please note that RDO is deprecated so you might want to look into using
equivalent technologies in .NET or if you must do Native code, ADO.

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Regards,
Uwa Agbonile[MSFT]

"Marko Erzen" <mare@email.si> wrote in message
news:uNXiOSZbFHA.2440@TK2MSFTNGP10.phx.gbl...
> Hi to all,
>
> I have a big performance problem with looping threw rdoresultset.
>
> I made some very complex sql queries. They link like 5 tables and uses a
> couple subqueries. The number of returned rows is something like 1000.

Query

> execution takes about 1 second, which is completly acceptable. But before

I
> can display result to the user, I need to perform some calculations over
> returned rows. To loop threw resultset (movenext) takes 2 seconds, which

is
> VERY slow! The procedure is very optimized, so each value in resultset in
> fetched only once. How can I access all data in the resultset in a much

more
> efficient way? I do not need to update any row, all I need to is to get
> values from resultset.
>
> Query is optimized for fast data access. I can not perform arithmetic
> operations directly in query. The amount of data returned by the server is
> something like 15kb, which is very small. I am using RDO and cursor

library
> is rdUseOdbc. For resultset I tryed to use different parameters, ie
> readonly, forwardonly,... but performance does not change. And the server

I
> uses is SQL serer 2000.
>
>
> Any idea would be really appreciated!!
>
> Marko Erzen
>
>



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2009 droptable.com