dbTalk Databases Forums  

indexing issue, need alternate solution to improve the query performance

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss indexing issue, need alternate solution to improve the query performance in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ramprakash
 
Posts: n/a

Default indexing issue, need alternate solution to improve the query performance - 03-20-2006 , 06:14 AM






Hi,

i am facing a scenario like this,

i am having a table having around 1 million rows, and 15 columns.
This is the logging table, mostly insertion only happens.
the query we use from front end uses almost any one or two of the 10
columns in the where condition.
since it a log table and insertions are heavy, i cant create index for
all the columns.
Need some alternate solution.

Regards
Ram


Reply With Quote
  #2  
Old   
Robert Klemme
 
Posts: n/a

Default Re: indexing issue, need alternate solution to improve the queryperformance - 03-20-2006 , 09:16 AM






ramprakash wrote:
Quote:
Hi,

i am facing a scenario like this,

i am having a table having around 1 million rows, and 15 columns.
This is the logging table, mostly insertion only happens.
the query we use from front end uses almost any one or two of the 10
columns in the where condition.
since it a log table and insertions are heavy, i cant create index for
all the columns.
Need some alternate solution.
And we need more information. Please post DDL, versions and some
typical queries.

Cheers

robert


Reply With Quote
  #3  
Old   
ramprakash
 
Posts: n/a

Default Re: indexing issue, need alternate solution to improve the query performance - 03-20-2006 , 10:04 AM



Hi,

Its oracle 9i release 2, running on windows box.
if i need to create index,
i have to index all the columns because, where condition in the select
query contains almost all the columns.

for example take the emp table
one of the query where condition is NAME in another hiredate , mgr ...

Regards
Ram


Reply With Quote
  #4  
Old   
Sybrand Bakker
 
Posts: n/a

Default Re: indexing issue, need alternate solution to improve the query performance - 03-20-2006 , 02:10 PM



On 20 Mar 2006 07:04:05 -0800, "ramprakash" <ramprakash.a (AT) gmail (DOT) com>
wrote:

Quote:
Hi,

Its oracle 9i release 2, running on windows box.
if i need to create index,
i have to index all the columns because, where condition in the select
query contains almost all the columns.

for example take the emp table
one of the query where condition is NAME in another hiredate , mgr ...

Regards
Ram
So you believe full table scans are bad. When in the previous
milennium did you learn Oracle, or read the performance tuning manual?
Or do you like to believe fairy tales?

--
Sybrand Bakker, Senior Oracle DBA


Reply With Quote
  #5  
Old   
Herod
 
Posts: n/a

Default Re: indexing issue, need alternate solution to improve the query performance - 03-20-2006 , 09:53 PM



Take a copy of the table to a test table.

Create indexes until you are happy. Or, probably drop indexes until
you are happy.
More indexes mean slower insert.

No indexes, faster insert.
Try gathering stats on the table... that may or may not improve
performance depends on what is there.

test test test
Then test again.

And finally one last test before you test it just before putting it
into production.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.