Re: Bulk Updates in Oracle from XML File

From: Peter Connolly (peter_at_alum.wpi.edu)
Date: 12/24/03


Date: 24 Dec 2003 11:01:37 -0800

Have you looked into using the Statement.addBatch and
Statement.executeBatch methods of the latest versions of jdbc? I
think you would still need to use a typical insert statement with
these, but they may give you the performance benefits you are looking
for.

-Peter

rayoflight_kiran@yahoo.com (Kiran Dalvi) wrote in message news:<b33f94a.0312240102.3940d3e5@posting.google.com>...
> Hi,
>
> I have following problem scenario .....
>
> I have a XML of the format ....
> <Data>
> <Employee>
> <EmpName>Kiran</EmpName>
> <EmpID>100</EmpID>
> </Employee>
> <Employee>
> <EmpName>Faheem</EmpName>
> <EmpID>1000</EmpID>
> </Employee>
> ..
> ..
> .. ..... I have such 30000+ blocks corressponding to 30000+
> Employees.
> </Data>
>
> Now, I have a DB design with following columns .....
> 1) EmpName Varchar2(64)
> 2) EmpID Number(64)
>
>
> Here I want to parse this XML and persist the data from that XML into
> DB "efficiently".
> I don't want to use conventional INSERTs.
>
> How can I go about it ?
>
> Thanks,
> --Kiran



Relevant Pages

  • Apache Digester parse xml with ${var} to get environment var
    ... I want to use digester to parse an xml, then use it as a key to us ...
    (comp.lang.java.programmer)
  • Re: Mysql & XSU & Java
    ... Du hast dann eine "richtige" Datenbank, die JDBC, XML... ... Schritt nach MySQL sollte dann nicht mehr so riesig sein. ...
    (de.comp.lang.java)
  • RE: xml transform ctrl creation
    ... Every control on the page must have a different ID for the page to identify ... This is by design. ... You can try to parse the xml to get the name for ...
    (microsoft.public.dotnet.xml)
  • Re: export to xml
    ... how do I export a VARBINARY field in a xml and import it later into ... I have to do that with jdbc. ... I cant store Bytes in a xml, ...
    (comp.lang.java.databases)
  • export to xml
    ... how do I export a VARBINARY field in a xml and import it later into ... I have to do that with jdbc. ... I cant store Bytes in a xml, ...
    (comp.lang.java.databases)