You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
✨ feat(schema): add GSI3 sparse index for entity config queries (#287)
## Summary
- Add GSI3 to efficiently query entities with custom limit
configurations
- Previously required full table Scan (O(n) cost), now O(k) where k =
entities with custom configs
- GSI3 uses sparse index pattern: only entity-level config records have
GSI3 attributes
- Add `list_entities_with_custom_limits()` API method with pagination
support
- Add CLI command: `entity list --with-custom-limits <resource>`
## Test plan
- [x] Unit tests for schema key builders (GSI3PK, GSI3SK)
- [x] Unit tests for repository `list_entities_with_custom_limits()`
- [x] Unit tests for `RateLimiter` and `SyncRateLimiter` methods
- [x] Unit tests for CLI command with pagination
- [x] ValidationError coverage for CLI command
- [x] Integration test with LocalStack
Closes#235
🤖 Generated with [Claude Code](https://claude.ai/code)
Each level also has `get-*` and `delete-*` subcommands. Use `zae-limiter resource list` to list resources with defaults.
466
+
Each level also has `get-*` and `delete-*` subcommands. Use `zae-limiter resource list` to list resources with defaults. Use `zae-limiter entity list --with-custom-limits <resource>` to list entities with custom limits for a specific resource.
465
467
466
468
Limit configs use composite items (v0.8.0+, ADR-114 for configs). All limits for a config level are stored in a single item:
0 commit comments