Powered by Zoomin Software. For more details please contactZoomin

DataDirect OpenAccess SDK Help

Turning off default optimization

  • Last Updated: May 12, 2026
  • 1 minute read
    • OpenAccess SDK
    • Version 8.1
    • Documentation

When using the advanced optimization, the IP must prevent the SQL engine from performing the default optimization of finding the best index column. This is required because the default optimization process can result in the transformation of the original query into a form that is not optimal for advanced optimization. For example, a query with an OR condition on two different indexed columns would be split into two separate queries by the default optimizer. Turn off the default optimization by using the following call:

dam_setOption(DAM_CONN_OPTION, dam_hdbc, DAM_CONN_OPTION_INDEX_OPTIMIZATION, DAM_INDEX_IGNORE_ALL)

TitleResults for “How to create a CRG?”Also Available inAlert