Re: JDBC or ODBC?
- From: Joe Weinstein <joeNOSPAM@xxxxxxx>
- Date: Tue, 30 Aug 2005 04:57:27 -0700
PJ wrote:
I am in the interesting position of having to choose between using an ODBC or JDBC connection for a high traffic site. We can develop on either environment though I prefer the Java based one. Database connectivity to our SQL 2000 server is our number one priority. Does anybody know which offers the greatest performance and stability or at the very least point me in the right direction?
For stability and support, you want JDBC. Performance should be a wash at least, and unless you have reliability, you usually don't have anything. The JDBC-ODBC bridge is notably buggy and unsupported. JDBC performance will come from pooling and re-using open connections and similarly caching Prepared statements, and managing any transactional work to single user-invokes (Ie: not holding locks until a user application sends a second message). Primarily, performance will come by doing as much of the DBMS-related work in the DBMS where the data is. Write and use big fancy stored procedures. Always do all you can to avoid shipping huge wads of raw data out of the DBMS to be processed. Good luck, Joe Weinstein at BEA Systems
.
- Follow-Ups:
- Re: JDBC or ODBC?
- From: PJ
- Re: JDBC or ODBC?
- References:
- JDBC or ODBC?
- From: PJ
- JDBC or ODBC?
- Prev by Date: JDBC or ODBC?
- Next by Date: Re: JDBC or ODBC?
- Previous by thread: JDBC or ODBC?
- Next by thread: Re: JDBC or ODBC?
- Index(es):
Relevant Pages
|