Add secondary indexes to accelerate cache lookups

This commit is contained in:
Jan Doubravský
2026-06-05 18:17:55 +02:00
parent 286a5f207d
commit 757a8f4eba
8 changed files with 213 additions and 4 deletions
+10
View File
@@ -6,6 +6,16 @@ All notable changes to this project will be documented in this file.
---
## [1.6.0] - 2026-06-05
### Added
- **Secondary indexes** — `CachingEngine(engine, indexes={"VW_X": ["col", ["a", "b"]]})` creates indexes on the in-memory cache to accelerate `WHERE`/`JOIN` lookups. Index columns are auto-loaded so the index exists from the first load, and indexes are recreated after every (re)load and persist in `cache.db`. Combines freely with `delta` and `ttl`.
### Changed
- `pyproject.toml` — bumped version to `1.6.0`
---
## [1.5.0] - 2026-06-05
### Added