> On Nov 15, 2023, at 08:46, Melzer Kassensysteme <office(at)melzer-kassen(dot)com> wrote:
>
> SELECT * FROM table WHERE (index1 > 1 OR (index1 = 1 AND index2 > 5)) ORDER BY index1, index2 LIMIT 1
Can you show the output of the query running under EXPLAIN ANALYZE ... ?