 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
danilo z. Guest
|
Posted: Fri May 04, 2007 7:38 pm Post subject: TADOQuery - Multiple inserts - Oracle |
|
|
Hi All,
How i make multiples inserts inside a TADOQuery object in Oracle?
i've tried
INSERT INTO <TABLE> (<FIELDS>) VALUES (<LIST>);
INSERT INTO <TABLE> (<FIELDS>) VALUES (<LIST>);
INSERT INTO <TABLE> (<FIELDS>) VALUES (<LIST>);
INSERT INTO <TABLE> (<FIELDS>) VALUES (<LIST>);
INSERT INTO <TABLE> (<FIELDS>) VALUES (<LIST>);
..
..
..
it didnt worked.... |
|
| Back to top |
|
 |
Vitali Kalinin Guest
|
Posted: Fri May 04, 2007 9:20 pm Post subject: Re: TADOQuery - Multiple inserts - Oracle |
|
|
Surround it with Begin End; |
|
| Back to top |
|
 |
danilo z. Guest
|
Posted: Fri May 04, 2007 10:21 pm Post subject: Re: TADOQuery - Multiple inserts - Oracle |
|
|
"Vitali Kalinin" <vitkalinin (AT) yahoo (DOT) com> wrote:
| Quote: | Surround it with Begin End;
|
Ok, it worked. I am doing a test case with 12.000 records using prepared queries and non-prepared batch queries (100 records each). Look at these results:
SQL Server, batch 12.000 records (100 records on each batch):
30 seconds
Oracle, batch 12.000 records (100 records on each batch):
10 minutes and 36 seconds (!!!!!)
Same database/table |
|
| Back to top |
|
 |
Dmitry Arefiev Guest
|
Posted: Sat May 05, 2007 1:28 am Post subject: Re: TADOQuery - Multiple inserts - Oracle |
|
|
| Quote: | Look at these results:
|
Both DBMS's have API's to send big sets of the data to the
DB in optimal way. But ADO does not allow you to use them.
Your result for Oracle just shows, that you are using far from
optimal API to upload data.
If possible, then consider to switch from ADO (even for MSSQL)
to other data access libraries.
Regards,
Dmitry
--
Dmitry Arefiev - www.da-soft.com
AnyDAC - Oracle, MySQL, MSSQL, MSAccess, IBM DB2, Sybase
ASA, DbExpress, ODBC freeware data access framework
ThinDAC - mtier data access engine |
|
| Back to top |
|
 |
danilo z. Guest
|
Posted: Sat May 05, 2007 1:30 am Post subject: Re: TADOQuery - Multiple inserts - Oracle |
|
|
"Dmitry Arefiev" <darefiev@da-soft.com> wrote:
| Quote: | Look at these results:
Both DBMS's have API's to send big sets of the data to the
DB in optimal way. But ADO does not allow you to use them.
Your result for Oracle just shows, that you are using far from
optimal API to upload data.
If possible, then consider to switch from ADO (even for MSSQL)
to other data access libraries.
Regards,
Dmitry
--
Dmitry Arefiev - www.da-soft.com
AnyDAC - Oracle, MySQL, MSSQL, MSAccess, IBM DB2, Sybase
ASA, DbExpress, ODBC freeware data access framework
ThinDAC - mtier data access engine
|
Thanks for the advice. Do you have any engine suggestions? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|