About 147,000 results
Open links in new tab
  1. java - What are the pros and cons of performing calculations in sql …

    Sep 22, 2011 · At time java code might perform better than a sql code both well written or it might be vice-versa. But still if confused you can try to determine first - If you can achieve something straightforward via database sql then better go for it as db will perform much better and do computations there and then with the result fetch.

  2. Difference between javax.sql and java.sql? - Stack Overflow

    Aug 13, 2013 · Provides the API for server side data source access and processing from the JavaTM programming language. This package supplements the java.sql package and, as of the version 1.4 release, is included in the Java Platform, Standard Edition (Java SETM). It remains an essential part of the Java Platform, Enterprise Edition (Java EETM).

  3. Performance Comparison of Stored Procedure written in Pl/SQL …

    Nov 29, 2010 · I believe writing Stored Procedures in Java would give the ability to run JUnit tests. But again, Would running a java based stored procedure compared to other add an extra overhead to the server? Lets for clarity, keep the application a generic applciation which has balanced business logic on either side (database, java code).

  4. java - Difference between Statement and PreparedStatement

    Jul 17, 2010 · In java, allows DB-specific values to be set for SQL DATALINK, SQL ROWID, SQL XML, and NULL via setURL, setRowId, setSQLXML ans setNull methods In java, inherits all methods from Statement. It inherits the addBatch method, and additionally allows a set of parameter values to be added to match the set of batched SQL commands via addBatch method.

  5. Difference between java.sql and mysql.jdbc - Stack Overflow

    Apr 5, 2011 · This interface contains methods that are considered the "vendor extension" to the JDBC API for MySQL's implementation of java.sql.Connection. So, that class at least builds on top of JDBC to add more features. But it's still JDBC at heart - you're using this class when you use pure JDBC, you just don't see it.

  6. Are Java stored procedures slower than PL/SQL in Oracle?

    Jan 19, 2012 · As for the performance once the context switching has taken place, your benchmarking will give you the best answer but FWIW, as PL/SQL is so tightly integrated within the Oracle database it should perform better than the stored Java code if you are fetching data or interacting with the DB, if you are purely manipulating already fetched data, it ...

  7. Why use JPA instead of writing the SQL query using JDBC?

    Sep 17, 2020 · MyBatis, which is a very lightweight SQL query mapper framework. QueryDSL, which allows you to build SQL, JPA, Lucene, and MongoDB queries dynamically. jOOQ, which provides a Java metamodel for the underlying tables, stored procedures, and functions and allows you to build an SQL query dynamically using a very intuitive DSL and in a type-safe ...

  8. java - Statement.execute(sql) vs executeUpdate(sql) and …

    I understand this is a very old post to respond to, but I recently encountered a situation where my code was throwing the exception java.sql.SQLRecoverableException: ORA-17002. I found the issue while executing a CallableStatement, as the Oracle procedure returns a REF CURSOR, whereas SQL Server returns a simple ResultSet in my case.

  9. Java Stored Procedure Vs PL/SQL Stored Procedure

    Jan 19, 2012 · I agree with Frank that there will inevitably be two context switches for each call to the Java stored procedure (PL/SQL -> Java and back again). If the called procedure is pure PL/SQL (i.e. no SQL access) then the PL/SQL option would be faster (try it over 10000 iterations rather than 600).

  10. database sort vs. programmatic java sort - Stack Overflow

    For out of memory sorts, it may well be that databases shine here, though I did not test that. In the case of in memory sorts all of java/c/c++ outperformed mysql in my informal benchmark, if one could call it that. I wish I had had more time to more thoroughly compare the database layer vs application layer, but alas other duties called.

Refresh