Skip to content

Firebird performance issue - unnecessary index reads #7494

Closed
@EPluribusUnum

Description

@EPluribusUnum

Hi *!

SELECT FIRST 1 1 FROM fk_tetel WHERE szla = '361'
--PLAN (FK_TETEL INDEX (FK_TETEL_FKISZ_ID_SZLA_FK))

returns no row
No "Enchanced Info" (IBExpert) because no read at all.
This is the expected behaviour

SELECT FIRST 1 1 FROM fk_tetel WHERE szla = '3611'
--PLAN (FK_TETEL INDEX (FK_TETEL_FKISZ_ID_SZLA_FK))--same plan

also returns no row, BUT "Enchanced Info" reports 6227 index red on FK_TETEL
Where does the index reads come from and why? It should be 0 Index reads also in this case.
(Firebird 3.0.10, x64, Windows)

I uploaded the database to FTP and will the login details in DM on request.

Thank you!