Skip to content

Commit

Permalink
Add additional cursor stats properties (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjoubert authored Sep 21, 2022
1 parent eba6517 commit 909317b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions arango/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ def _update(self, data: Json) -> Json:
stats["execution_time"] = stats.pop("executionTime")
if "httpRequests" in stats:
stats["http_requests"] = stats.pop("httpRequests")
if "cursorsCreated" in stats:
stats["cursorsCreated"] = stats.pop("cursorsCreated")
if "cursorsRearmed" in stats:
stats["cursorsRearmed"] = stats.pop("cursorsRearmed")
if "cacheHits" in stats:
stats["cacheHits"] = stats.pop("cacheHits")
if "cacheMisses" in stats:
stats["cacheMisses"] = stats.pop("cacheMisses")
self._stats = stats
result["statistics"] = stats

Expand Down

0 comments on commit 909317b

Please sign in to comment.