Skip to main content

Module indexes

Module indexes 

Source
Expand description

Secondary LMDB indexes for O(log n) lookups.

Four index sub-databases:

  • idx_content_hash: {galaxy}:{hash} → UUID (O(1) dedup)
  • idx_tags: {galaxy}:{tag} → UUID (DUP_SORT, tag-based queries)
  • idx_importance: {galaxy}:{f32_be} → UUID (DUP_SORT, range queries)
  • idx_temporal: {galaxy}:{i64_be} → UUID (DUP_SORT, time-range queries)

Keys are raw bytes: galaxy_db_name + 0x00 + value_bytes. The null separator ensures galaxy-scoped sorting.

Structs§

IndexDbs
Cached handles to the four index sub-databases.

Constants§

IDX_CONTENT_HASH
Index sub-database names.
IDX_IMPORTANCE
IDX_TAGS
IDX_TEMPORAL
INDEX_DBS
All index DBs with their flags — used at environment creation.