get_largest_keys
Discover which keys consume the most memory using key analytics snapshots, ranked by measured usage. Find memory hogs, bloated collections, or eviction candidates.
Instructions
Get the largest keys from key analytics snapshots, ranked by measured memory usage. Coverage note: snapshots track the biggest collections by element count, so a memory-heavy key with few elements may not be tracked. Companion to get_hot_keys, which ranks by access frequency. Use to find memory hogs, bloated hashes/sets, or candidates for TTL/eviction. Requires BetterDB Pro (keyAnalytics).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max keys to return (default 50) | |
| endTime | No | End time (Unix timestamp ms) | |
| startTime | No | Start time (Unix timestamp ms) | |
| instanceId | No | Optional instance ID override |