Description
ADVISE will recommend a composite index with all the fields in the OR clause with a leading key. Then after you created the recommended index, and run ADVISE again, it will recommend another permutation of the same composite index.
ADVISE SELECT * FROM crm a
WHERE a.type='activity'
AND ( a.dept = 'iA88'
OR a.region > '59416'
OR a.priority = 'High'
OR ( a.act_date BETWEEN '2018-01-01' AND '2018-08-31')
OR a.event.location = 'Moscone Center'
OR a.account.id = 'acc100')
{
"adviseResult": {
"current_indexes": [
],
"recommended_indexes": {
"indexes": [
]
}
}
}