Shopping cart solutions
Narola® InfotechMail for E-commerce Solutionsecommerce Application development

Services

Products


News Events

Best practices to improve performance in JDBC

Best practices to improve performance in JDBC

  1. Get database connection from connection pool rather than getting it directly
  2. Use batch transactions.
  3. Choose right isolation level as per your requirement. TRANSACTION_READ_UNCOMMITED gives best performance for concurrent transaction based applications. TRANSACTION_NONE gives best performance for non-concurrent transaction based applications.
  4. Your database server may not support all isolation levels, be aware of your database server features.
  5. Use PreparedStatement when you execute the same statement more than once.
  6. Use CallableStatement when you want result from multiple and complex statements for a single request.
  7. Use batch update facility available in Statements.
  8. Use batch retrieval facility available in Statements or ResultSet.
  9. Set up proper direction for processing rows.
  10. Use proper getXXX() methods.
  11. Close ResultSet, Statement and Connection whenever you finish your work with them.
  12. Write precise SQL queries.
  13. Cache read-only and read-mostly tables data.

Shopping cart solutionsCall us or write us to place an inquiry.
Home | About us | Technologies | Services | Products | Blog | Contact | Directory | Article | Knowledge Exchange | Sitemap
© 2005-09 http://www.narolainfotech.com | All Rights Reserved.
Narola Infotech RSS Narola Infotech Resource Sitemap Valid CSS! Valid XHTML 1.0 Transitional