Skip to content
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

Indexed MIN/MAX aggregates produce three index reads instead of the expected one indexed read [CORE1389] #1807

Closed
firebird-automations opened this issue Jul 31, 2007 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @dyemanov

One could expect that SELECT MIN(COL) FROM TAB is completely equivalent to SELECT FIRST 1 COL FROM TAB ORDER BY 1 ASC and that both should perform a single record read (provided that an ASC index on COL exists and that COL is non-nullable). However, the former query requires three indexed reads while the latter one behaves as expected and require just one indexed read.

Commits: cc0b9f9

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.1 Beta 2 [ 10190 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 12721 ] => Firebird [ 15066 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: No test => Done with caveats

Test Details: Ticked issues can be verified only by using TRACE log parsing.
Gathering of MON$ data seems bad way: some values are added to the number
of indexed reads so they are GREATER than expected (i.e. more than 1).

See inside .fbt file for more details (including source SQL of previous test prototype for this ticket and its result).

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: Done with caveats => Done successfully

Test Details: Ticked issues can be verified only by using TRACE log parsing.
Gathering of MON$ data seems bad way: some values are added to the number
of indexed reads so they are GREATER than expected (i.e. more than 1).

See inside .fbt file for more details (including source SQL of previous test prototype for this ticket and its result).

=>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment