Skip to content

Foundation for range queries - reverse range queries#161

Open
hoijnet wants to merge 18 commits intoterminusdb:mainfrom
terminusdb-org:foundation-for-range-queries
Open

Foundation for range queries - reverse range queries#161
hoijnet wants to merge 18 commits intoterminusdb:mainfrom
terminusdb-org:foundation-for-range-queries

Conversation

@hoijnet
Copy link

@hoijnet hoijnet commented Feb 23, 2026

This is the same as the previous PR, but for getting the range in reverse.

It enables identifying the domain, limit(1) on forward and reverse, is the domain. Also, for temporal queries, going from the newest to oldest is often a great way to process a range.

… accumulation

Previously, register_rollup only invalidated the single rolled-up layer from cache.
This left ancestor layers cached with Arc references, causing memory accumulation
and O(n) performance degradation during high commit rates with rollups.

Now traverses the full layer stack and invalidates all ancestors, ensuring
old parent chains become eligible for cleanup.
…leanup

Bugfix/fix to ensure rollup history cleanup
Add support to read detailed store size information
Update num-derive (due to build warning)
Cache rollup metadata (the .rollup.hex file contents) in LruArchiveBackend
behind the rollup_metadata_experimental Cargo feature flag. Without this
flag, behavior is unchanged.

When enabled, get_rollup results are cached in a HashMap so repeated
lookups (e.g. after layer object cache invalidation) avoid disk I/O.
set_rollup updates the cache alongside the underlying storage.

Includes 6 unit tests verifying cache hits, negative caching, cache
invalidation on set_rollup, shared cache across clones, and the
register_rollup interaction with layer object cache invalidation.
Experimental rollup metadata caching in LruArchiveBackend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant