If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > One too many index?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-30-12, 15:24
svrider svrider is offline
Registered User
 
Join Date: Jul 2002
Posts: 39
Question One too many index?

Hi all,

I have one query that was returning fairly fast. A few indexes were created and now it seems to run forever. So I'm wondering if one of the new indexes is stepping on my toes and is slowing my query.

Is there an easy determine if an index is used while it should not?

We recently bought a licence of Toad for Sybase with the SQL Optimizer for Sybase. Great tool by the way to help generate indexes... maybe we over did it...

By the way, we're on ASE 15.

Thanks for your help.

;-)
Reply With Quote
  #2 (permalink)  
Old 02-20-12, 10:17
gopal.sanodiya gopal.sanodiya is offline
Registered User
 
Join Date: Feb 2012
Posts: 5
Use MDA table monSysProcessSqlText to check query plan.
Reply With Quote
  #3 (permalink)  
Old 02-21-12, 10:06
Catarrunas Catarrunas is offline
Registered User
 
Join Date: Jan 2012
Posts: 27
Hello,

You can just run the query with "set showplan on".

And then analize the query plan to make sure the joins are using the correct index. Much likely the its using one of your new indexes that is not the optimal solution.

You can force the query to use the previous index. ( if you know wich is ).
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On