Skip to main content

MATERIALIZE_PERMIT

Static MATERIALIZE_PERMIT 

Source
pub static MATERIALIZE_PERMIT: Semaphore
Expand description

Serialises document materialisation across the whole process.

Materialising a document is memory-unbounded: export_all hands back the whole document set owned, before any of indexer::build_parts’ budgets apply. One at a time is affordable; several at once puts the node out of memory. The reindex sweep is already sequential — this bounds the scheduler-run IndexDocumentTasks, which run concurrently.

Held across the export → prune → build_parts span only, never across the meta-adapter write that follows.