Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Why so much slowness in OLEDB Provider vs. ODBC?

Re: Why so much slowness in OLEDB Provider vs. ODBC?

From: Gerrit-Jan Linker <linker_at_oraxcel.com>
Date: 2000/04/07
Message-ID: <8cmr9e$46m$2@news8.svr.pol.co.uk>#1/1

It looks like something is committing the changes straight away in ODBC and not in OLEDB. Otherwise I could not explain it.

HTH

--
Gerrit-Jan Linker

web:     http://www.oraxcel.com
email:  gjlinker_at_oraxcel.com

Oraxcel: Linking Oracle to Excel
OraCodes: Explaining ORA- error codes
OraSQL: Explaining Oracle SQL syntax
OraDebug: PL/SQL debugger
OraWeb: Oracle access from IE

Ken Sproule <kenmn_at_tds.net> wrote in message
news:lepresck7u6r7oj37gc5ifcfpgcoak04pp_at_4ax.com...

> Thanks for helping..
>
> There is a section of code that is baffling regarding performance. The
> same code is used with the only difference being the use of Oracle's
> OLEDB Provider vs. Microsoft's ODBC Provider with their ODBC driver.
> Eeven using Oracle's ODBC driver we have a remarkable faster execution
> time than using OLEDB.
>
> In a C++ program using ADO, here's the pseudo-code:
>
> begin transaction;
> loop
> ado.AddNew;
> stuff column values
> ado.UpDate
> end loop;
> commit;
>
> There are about 15,000 records being inserted into an Oracle table.
> One notable characteristic of the problem is that using OLEDB the rate
> of insertions is fast in the beginning and slows to a crawl over time,
> whereas using ODBC the insertion rate remains apparently constant.
> Time for completion is:
> ODBC - 2 minutes
> OLEDB - 24 minutes.
>
> That's a rather remarkable difference. I am assuming I'm not doing
> something correctly using OLEDB.
>
> Does anyone have an idea what's wrong?
>
>
>
> Best,
>
>
> Ken Sproule
> kenmn_at_tds.net
>
>
> Ken Sproule
> kenmn_at_tds.net
Received on Fri Apr 07 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US