One possible reason is that the column index has an index, but may be null . In this case, rows with the identifier null will not be in the index . Therefore, min () cannot use an index in a column with a null value.
... so you just need alter table audit_log modify id not null;
Or you can create a new composite index with a nonzero column after the identifier. This should work, because then each line will have a record.
source share