get_largest_keys
Find memory-heavy keys using analytics snapshots ranked by memory usage. Use results to spot bloated hashes/sets and choose candidates for TTL or eviction.
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 |