Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[b]Performance Issue select statement[/b]

Status
Not open for further replies.

kiabathe

Programmer
Jul 1, 2005
3
US
Hi, New to PL/SQL and trying to write a scripts which calculate the elapsetime from different metric. I need to join two tables table1 and table2. Table1 has 240 rows and most of the metrics are coming from that table. Table2 has about 200000 rows, and only one column is used against this table. This query takes 26 seconds for single records, and every time these two tables are joining for each record. I have tried creating seperate table, and view for join. It has not improved the performance.
Please help me out!

select sum(elapsedtime) from Table1, Table2
where
table1_id = table2_count

Thanks
Aziz
 
Do you have indexes on that tables? If not, can you create one on table2_count (a field from Table2, isn't it?). If yes, are they used?

Regards, Dima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top