Attila Molnár wrote 03.09.2025 14:29:
> Why does Firebird not use T1_I1?
Because you requested order by two fields while index cover only one.
> The SORT could perform better when the result
> is already partly ordered and not completly random.
On contrary: for quick sort algorithm it is known that partially sorted input
is the worst case, according to Knuth.
> It is this possible for the engine to use T11_I1 in this case?
Very theoretically engine can split partially sorted input stream to
partitions and sort them independently but I wouldn't expect anybody to be able
to implement that.
> Should I create an issue in Github fot this?
A Pull Request would be better. Otherwise it will be an another ticket that
is never closed.
--
WBR, SD.