Restore optimization to remove select distinct index to be loaded

2 jobs for !347 with fix/load-different-index-only in 13 minutes and 31 seconds
latest merge request
Name Stage Failure
failed
trigger-trusted-tests Review
Pipeline has been in state 'running' for 11.7 min, waiting for completion
Pipeline has been in state 'running' for 11.9 min, waiting for completion
Pipeline has been in state 'running' for 12.1 min, waiting for completion
Pipeline has been in state 'running' for 12.2 min, waiting for completion
Pipeline has been in state 'failed' for 1 sec, waiting for completion
Pipeline completed in state failed in 12.4 min
Pipeline status is not 'success', exiting with error status
Cleaning up file based variables
ERROR: Job failed: exit code 1