bulk insert from Java into Oracle

前端 未结 4 1231
悲&欢浪女
悲&欢浪女 2020-12-06 10:40

I need to insert many small rows rapidly into Oracle. (5 fields).

With MySQL, I break the inserts into groups of 100, then use one insert statement for every group o

4条回答
  •  悲哀的现实
    2020-12-06 11:15

    Nowadays MySQL is Oracle so perhaps a simpler solution might be to stay on MySQL...

    If not then you should make sure that the transaction is started before you start your group of inserts, once the group is finished then commit the transaction and start a new transaction for the next group of inserts.

    Also check for unnecessary index definitions that may be slowing the insert time.

    Updated...
    Bulk inserting refers to the last step of ETL (Extract Transform Load), so have you considered using a java based ETL tool such as pentaho kettle or talend-studio.

    Pentaho describes their Oracle Bulk loading facilities here.

    A quick google also shows some preliminary evidence that Talend also has some support for Oracle bulk loading.

提交回复
热议问题