Thread View: borland.public.cppbuilder.database.ado
3 messages
3 total messages
Started by Michael Crapo
Fri, 19 Jan 2001 17:50
ADO will get slower and slower the farther into a recordset I go. WHY????
Author: Michael Crapo
Date: Fri, 19 Jan 2001 17:50
Date: Fri, 19 Jan 2001 17:50
14 lines
1351 bytes
1351 bytes
Hello. I have test this with Access and SQL Server. I connect to the database using the TADOConnection. Then run a query using TADOQuery that is selecting one row from a table. The recordcount is about 100,000. I then loop through the Records using the TADOQuery::Next() function. The further into the recordset I go, the slower the fields are returned. I am using defaults for borlands defaults for ADO. Does anyone know what is wrong, and how to get around this. It gets as bad as 1 second to return 1 record..... TIA for you help Mike
Re: ADO will get slower and slower the farther into a recordset I go. WHY????
Author: Yuancai (Charlie) Ye
Date: Wed, 24 Jan 2001 19:56
Date: Wed, 24 Jan 2001 19:56
24 lines
1945 bytes
1945 bytes
Hi, Michael:
Did you try using OLEDB raw interfaces to speed up navigating records.
Here is the excellent site you may be interested in,
http://www.geocities.com/oledbpro/. The site has many OLEDB examples using
both Visual C++ and Borland C++ Builder.
Yuancai (Charlie) Ye
"Michael Crapo" <mcrapo@tng-ida.com> wrote in message
news:3a687d67.14273083@newsgroups.borland.com...
> Hello.
>
> I have test this with Access and SQL Server. I connect to the
> database using the TADOConnection. Then run a query using TADOQuery
> that is selecting one row from a table.
>
> The recordcount is about 100,000. I then loop through the Records
> using the TADOQuery::Next() function. The further into the recordset
> I go, the slower the fields are returned. I am using defaults for
> borlands defaults for ADO. Does anyone know what is wrong, and how to
> get around this. It gets as bad as 1 second to return 1 record.....
>
> TIA for you help
> Mike
Re: ADO will get slower and slower the farther into a recordset I go. WHY????
Author: Michael Crapo
Date: Fri, 26 Jan 2001 15:43
Date: Fri, 26 Jan 2001 15:43
39 lines
2272 bytes
2272 bytes
Yuancai Thanks for the advice and the site. I found that the curser was set to client. When I set the curser to Server side it speed things up a lot. In fact one process that validated and moved over half a million records that took 11 hours dropped down to 35min with that one modification. Mike On Wed, 24 Jan 2001 14:56:18 -0500, "Yuancai \(Charlie\) Ye" <yekerui@yahoo.com> wrote: >Hi, Michael: > Did you try using OLEDB raw interfaces to speed up navigating records. >Here is the excellent site you may be interested in, >http://www.geocities.com/oledbpro/. The site has many OLEDB examples using >both Visual C++ and Borland C++ Builder. > >Yuancai (Charlie) Ye > >"Michael Crapo" <mcrapo@tng-ida.com> wrote in message >news:3a687d67.14273083@newsgroups.borland.com... >> Hello. >> >> I have test this with Access and SQL Server. I connect to the >> database using the TADOConnection. Then run a query using TADOQuery >> that is selecting one row from a table. >> >> The recordcount is about 100,000. I then loop through the Records >> using the TADOQuery::Next() function. The further into the recordset >> I go, the slower the fields are returned. I am using defaults for >> borlands defaults for ADO. Does anyone know what is wrong, and how to >> get around this. It gets as bad as 1 second to return 1 record..... >> >> TIA for you help >> Mike > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads