Rebuild Index is not meeting expectation
We're facing an issue with indexes. Below are details please let me know how to handle this scenario.
1. We have tables built with UNIQUE KEY and PRIMARY KEY indexes.
2. Very first time we created tables and loaded data and the results are expected with the given SQL using index hints.
3. After batch cycle the access path is changing and results are not expected meaning not in expected order and also performance become very poor.
4. Tried all the possible REBUILD options and COLLECT STATS, but the access path is not getting back as initial.
5. When we drop table and recreate with indexes and reload then again the access path is as expected, but drop table/recreate/reload task we cannot do every day due to time consuming factor we need to avoid and need any alternative solution on this issue.