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

Added support to expose query response stat: timeUsedMs #87

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

Jayesh-Asrani
Copy link
Contributor

Added support to expose query response stat: timeUsedMs

Usage : To identify and monitor pinot response stats for performance benchmarking

E.g.

    curs = conn.cursor()
    curs.execute(query)
    timeUsedMs = curs.timeUsedMs

Added support to expose query response stat: timeUsedMs
@@ -311,6 +311,7 @@ def __init__(
self.schema = None
self.rowcount = -1
self._results = None
self.timeUsedMs = -1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.timeUsedMs = -1
# TODO: clean up stats fields in cursor
self.timeUsedMs = -1

@walterddr walterddr merged commit b43b5d1 into python-pinot-dbapi:master Jan 12, 2024
10 checks passed
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.

2 participants