Re: JDBC vs Hibernate




"Luke Webber" <luke@xxxxxxxxxxxxx> wrote in message
news:43212a1c$1_3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Sandy wrote:
> > "Luke Webber" <luke@xxxxxxxxxxxxx> wrote in message
> > news:4320df5f$1_3@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> >>It really depends on a number of factors. Do you really want database
> >>indepence, or are you happy to stick with one DBMS? How complex is the
> >>SQL going to get? Do you need automatic dirty checking and optimistic
> >>locking?
> >
> > My application is fairly simple, its using one database only that will
never
> > change.
> > I just need to put the data in tables, thats all, no further SQL
queries.
> > and there are no objects which are mapping to two different tables (so i
> > don't need complex SQL logics)
> >
> > I feel JDBC is better (performance and development time wise) than
hibernate
> > in my case.
> >
> > Is there any other thing that i should consider before making the
> > decision.......
>
> I think you've answered your own question. JDBC is fine for your needs.
> No point in adding extra layers and increasing complexity.
>
> Luke

How about using OPENXML vs JDBC (performance wise)
I read somewhere that OPENXML is faster, (I have the XML file in memory
already, my application is generating an XML file)

Is it a better option than writing data Row by Row in tables.

So I can use it likle this
String exec =
"DECLARE @_hDoc int "+
"EXEC sp_xml_preparedocument @_hDoc OUTPUT, "+
"N'<ROOT> "+
" <DataSource Device=\"D1\" Community=\"PUBLIC\" > "+
" </DataSource> "+
"</ROOT>'" +
"INSERT DataSource SELECT * FROM OPENXML(@_hDoc,
N'/ROOT/DataSource') WITH DataSource "+
"EXEC sp_xml_removedocument @_hDoc";

Statement s = connection.createStatement();


.



Relevant Pages

  • Re: jdbc with matlab
    ... downloaded sql express from microsoft and set it up. ... set up jdbc to use with sql express and matlab. ... trying to connect to the database and have proved ...
    (comp.soft-sys.matlab)
  • Re: SAP direct JDBC access
    ... > data with JDBC. ... > SQL Server. ... you can use a data source to hide the actual database ... driver used. ...
    (comp.lang.java.programmer)
  • Re: dbdebunk Quote of Week comment
    ... > a lot of really bad SQL programmers. ... But SQL does not have a pointer data type or the ... > being told to design a database. ... But why is little Cindy Lou Who employee ...
    (comp.databases.theory)
  • Re: DBMS and lisp, etc.
    ... Naively implemented with SQL, again for 10 ... (1 query for the initial orders, 1 query for each order for its ... soon as you upgrade to the SQL database. ... (eq (order-customer orderA) ...
    (comp.lang.lisp)
  • Re: dbdebunk Quote of Week comment
    ... > a lot of really bad SQL programmers. ... a surrogate key should support the primary key. ... But SQL does not have a pointer data type or the ... > being told to design a database. ...
    (comp.databases.theory)