-
-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebird performance issue - unnecessary index reads #7494
Comments
This extra reads happens for many different values, not just the reported example value. |
Send it to me, please |
@hvlad , details sent. |
Reproduced, thanks. The problem happens when:
The issue is not a regression, it should be present in previous Firebird versions. |
Thanks. Hoping for a fast fix 🙏 . I don't think we will put extra (duplicate) indicies to tables beacause of this. (The multi segment index in this case is came from a foreign key, can't drop it) |
FYI: I have a fix for this case but it doesn't handle descending indices so far. Working on it. |
…eads. Also, fixed unregistered bug when scan of multi-segmented descending index with partial match and greater-than condition could miss some records.
@hvlad , the latest snapshot (03.31) does not contain this fix? I'll run my tests and also yours, and still makes extra reads, and sometimes neve return recors when it should be. |
I've created pull request #7521 and awaiting for comments from other devs. |
Impovement #7494 : Firebird performance issue - non necessary index r…
The pull request is merged, please check next snapshot build. |
@hvlad , checked, it OK. Thank you! |
Re-opened for forward porting |
…ssary index reads. Also, fixed unregistered bug when scan of multi-segmented descending index with partial match and greater-than condition could miss some records.
…ssary index reads. Also, fixed unregistered bug when scan of multi-segmented descending index with partial match and greater-than condition could miss some records.
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!
The text was updated successfully, but these errors were encountered: