Skip to content

Commit 909317b

Browse files
authored
Add additional cursor stats properties (#217)
1 parent eba6517 commit 909317b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

arango/cursor.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,14 @@ def _update(self, data: Json) -> Json:
130130
stats["execution_time"] = stats.pop("executionTime")
131131
if "httpRequests" in stats:
132132
stats["http_requests"] = stats.pop("httpRequests")
133+
if "cursorsCreated" in stats:
134+
stats["cursorsCreated"] = stats.pop("cursorsCreated")
135+
if "cursorsRearmed" in stats:
136+
stats["cursorsRearmed"] = stats.pop("cursorsRearmed")
137+
if "cacheHits" in stats:
138+
stats["cacheHits"] = stats.pop("cacheHits")
139+
if "cacheMisses" in stats:
140+
stats["cacheMisses"] = stats.pop("cacheMisses")
133141
self._stats = stats
134142
result["statistics"] = stats
135143

0 commit comments

Comments
 (0)