Performance: "pl/sql" vs. "OS b-tree files"
Date: Mon, 29 Mar 2004 11:50:30 GMT
[Quoted] [Quoted] we're developing an application in which performance is a very important
issue (what a new!:)
Database is Oracle 9.2, application language is Java 1.4.2., OS is Solaris 8 [Quoted] (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
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.
[Quoted] It is supposed that the Java methods querying in-memory data would beat the [Quoted] 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. Received on Mon Mar 29 2004 - 13:50:30 CEST