-
-
Notifications
You must be signed in to change notification settings - Fork 220
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
More cursor-related details in the plan output #7441
Conversation
…s, show cursor names/options, report line numbers
src/jrd/recsrc/Cursor.h
Outdated
|
||
// SubQuery class (simplified forward-only cursor) | ||
|
||
class SubQuery : public Select |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like SubQuery
and Cursor
may be declared as final
classes.
src/jrd/recsrc/Cursor.cpp
Outdated
@@ -130,7 +179,7 @@ void Cursor::close(thread_db* tdbb) const | |||
|
|||
bool Cursor::fetchNext(thread_db* tdbb) const | |||
{ | |||
if (m_scrollable) | |||
if (m_rse->flags & RseNode::FLAG_SCROLLABLE) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An inline isScrollable()
method would make code more clear.
Is this going to beta 1? I already started to add same information to the profiler, with means another table for cursor data (it was under a TODO, but now that data should be available) and would like to avoid add migrations after beta 1. |
It does not interfere. |
This patch is not critical for Beta (which is late enough), so I planned to merge it later. |
This comment became not true as now the name of
|
I print cursor names only for |
We can't do it with I'm implementing it for #7442. |
I committed it (74a18d9). It's much more related to this branch, so we can cherry-pick it here without conflicts if you want. |
QA note. |
Examples: