Skip to content

ProfiledPlan: expose existence for all metrics#1730

Draft
robsdedude wants to merge 1 commit intoneo4j:6.xfrom
robsdedude:summary/expose-profile-metrics-existence
Draft

ProfiledPlan: expose existence for all metrics#1730
robsdedude wants to merge 1 commit intoneo4j:6.xfrom
robsdedude:summary/expose-profile-metrics-existence

Conversation

@robsdedude
Copy link
Member

@robsdedude robsdedude commented Mar 6, 2026

Introducing 3 new methods on ProfiledPlan:

  • boolean hasDbHits(): indicating whether the profile recorded dbHits.
  • boolean hasRecords(): indicating whether the profile recorded records (or rows as they're called on the embedded API).
  • boolean hasTime(): indicating whether the profile recorded time.

According to a chat with the Cypher runtime team, the absence of the value is not equivalent to it being zero. Therefore it makes sense to express this information in the API. The information is encoded in the bolt protocol through absence or existence of the respective fields. The driver logic has been changed to use this information instead of checking for fallback zero values.

Closes: DRIVERS-282

Depends on:

@robsdedude robsdedude force-pushed the summary/expose-profile-metrics-existence branch from aa8ee47 to 89b196d Compare March 11, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant