Performance: "pl/sql" vs. "OS b-tree files"
From: José Antonio Cuesta (joseantonio.cuesta_at_ono.es)
Date: 03/29/04
- Next message: Geiregat Jonas: "jdbc: MySQL Connector/J probleme"
- Previous message: tony: "Select statements and data integrity"
- Next in thread: Shuaib Kauchali: "Re: Performance: "pl/sql" vs. "OS b-tree files""
- Reply: Shuaib Kauchali: "Re: Performance: "pl/sql" vs. "OS b-tree files""
- Reply: Manuel J. Goyenechea: "Re: Performance: "pl/sql" vs. "OS b-tree files""
- Reply: Silvio Bierman: "Re: Performance: "pl/sql" vs. "OS b-tree files""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Mar 2004 15:31:57 GMT
Hi,
we're developing an application in which performance is a very important
issue.
Database is Oracle 9.2, application language is Java 1.4.2., OS is Solaris 8
(RAM 8GB, 4x750Mhz CPU).
The process needs to query for every object several times (around 10) the
same configuration tables, which are stored in Oracle. Every process has
millions of objects, so the number of consults made to Oracle would be
rather high.
No INSERT statements would be made, only SELECTs.
The two alternatives are:
* wrap the SQL statements in pl/sql packages to minimize the number of
SELECT statements made to Oracle. The packages would be called using JDBC.
The config tables would be set as CACHED, and perhaps index-organized.
* dump all the configuration tables in a OS file and, using Java classes
based on B-Trees, build a B-Tree file and make all the searches using Java
methods against this B-tree file. This file would be cached in memory by the
OS.
It is supposed that the Java methods querying in-memory data would beat the
pl/sql procedures querying the Oracle tables... Does it worth to dump all
the information from Oracle to a B-Tree file, having in mind that Oracle
uses the same technique to build indexes? Which solution would be more
efficient?
Thank you very much for your comments. Any hint would be welcomed.
- Next message: Geiregat Jonas: "jdbc: MySQL Connector/J probleme"
- Previous message: tony: "Select statements and data integrity"
- Next in thread: Shuaib Kauchali: "Re: Performance: "pl/sql" vs. "OS b-tree files""
- Reply: Shuaib Kauchali: "Re: Performance: "pl/sql" vs. "OS b-tree files""
- Reply: Manuel J. Goyenechea: "Re: Performance: "pl/sql" vs. "OS b-tree files""
- Reply: Silvio Bierman: "Re: Performance: "pl/sql" vs. "OS b-tree files""
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|