Recollect.SchemaIndex (recollect v0.5.1)

Copy Markdown View Source

ETS table for schema acceleration data.

Rebuilt during consolidation pass. Read by schema_fit computation on every entry creation. No GenServer owner — public table, written by consolidation, read by everyone.

Summary

Functions

Get the total entry count. Returns 0 if index is empty.

Initialize the ETS table.

Rebuild the index from all active entries in the DB.

Get the tag frequency map. Returns %{} if index is empty.

Functions

entry_count()

Get the total entry count. Returns 0 if index is empty.

init()

Initialize the ETS table.

rebuild()

Rebuild the index from all active entries in the DB.

tag_frequency()

Get the tag frequency map. Returns %{} if index is empty.