#1  
Old 12-27-2007, 02:32 PM
waytoajay@rediffmail.com's Avatar
waytoajay@rediffmail.com waytoajay@rediffmail.com is offline
Member
 
Join Date: Sep 2006
Location: Chicago,IL
Posts: 242
IGNORE_DERIVED_INDEX

Hi All

When shoudl we use IGNORE_DERIVED_INDEX?
__________________
Thanks
Ajay Kulkarni
Reply With Quote
  #2  
Old 12-27-2007, 09:59 PM
lostromich lostromich is offline
System iNetwork Forum Pro
 
Join Date: Sep 2005
Location: Canada
Posts: 866
Hi Ajay.

If you have SQL which directed to CQE because of DDS-based LF (ex:LF with Select/Omit options) and this SQL perform not well then you could try to set IGNORE_DERIVED_INDEX to *YES and tune the SQL (create indexes based on Query Optimizer advice). The above action could significantly improve performance.

In future think about DB modernization and replace DDS-based PFs,LFs with SQL-based Tables, Indexes and Views and replacing native I/O with SQL I/O. After DB modernization you may no need IGNORE_DERIVED_INDEX at all.
Reply With Quote
  #3  
Old 12-28-2007, 03:33 AM
FriskyRex FriskyRex is offline
Member
 
Join Date: Feb 2006
Location: Belgium (Flanders)
Posts: 575
you can always create indexes just by analyzing your SQL statements as well.

Always put an index on:
  • Local selections
  • Join fields
  • group by fields
Reply With Quote
  #4  
Old 12-28-2007, 10:04 AM
Elvis B.'s Avatar
Elvis B. Elvis B. is offline
Super Member
 
Join Date: Sep 2005
Location: Rochester, MN
Posts: 1,432
It'll be set to *YES by default in next release anyway so my vote is for setting IGNORE_DERIVED_INDEX to *YES in all circumstances.

Check out Centerfield's article "SQE vs CQE - Part II" on page 6 of October 2007 volume for one exception I ran into:

http://www.centerfieldtechnology.com.../SeptOct07.pdf
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 07:23 AM.