Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Performance & Tuning >> SQL tuning

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: SQL tuning
 raahul  Posted: Jul 07, 2004 07:52:09 AM

 Total Post: 1
 Joined: Jul, 2004






 I used function based index(FBI) and performance improved 10fold(before query was taking 10sec,after fbi query is taking 576msecs) for search functionality.
In search we have two options:
1.Begins with( searchstring% ) wild card(%) after search string.
2.Contains( %searchstring% ) wild card(%) before and after search string.

The query using first option got improved but not the query running behind the second option(i.e. Contains Option).

My question is, because wild card is present before and after the search string, the FBI is not being used, how to optimize such queries?

 Vigyan
Posted: Jul 07, 2004 09:02:32 AM  

 Total Post: 386
 Joined: May, 2001






 
Hi Rahul,

Have you compared execution plan for both of these conditions?

Just a note: Function based indexes are only used when you use CBO. You will see the difference in the execution plans.

In general search with wild card on both end will be executed differently than wild card at the end.

Thanks,
Vigyan


 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar816
  Mohammed Taj746
  Jayanta Sur479
  positive fanatic418
  Vigyan Kaushik386
  Gitesh Trivedi322
  Gopu Gopi250
  Ramesh Jois245
  neeraj sharma243
  Bishal Khetan207






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software