mirror of
https://github.com/lukaszraczylo/graphql-monitoring-proxy.git
synced 2026-10-29 07:18:06 +00:00
CountQueries and CountQueriesWithPattern ran KEYS. With an empty prefix, KEYS * builds a reply of every key on the server. The stats endpoint calls it on each request. On a shared Dragonfly with about 1M keys, this raised memory on the server. Count with a cursor SCAN instead. The count does not hold the key list in memory. A test checks that no KEYS command is sent.