Idea detail
sync_pass_idea_catalog
reqlan rq/indexer/cache-reuse.rq:152
Summary
One sync or batch index pass loads the idea catalog once ( `list_all_ideas` / `load_idea_catalog` ).
It passes that catalog by mutable reference while indexing; it does not clone the full Vec per `.rq` file
and does not reload SQLite ideas per code file.
After each `.rq` persist, drop that file ' s prior catalog rows and push the new idea names
( rename-safe; wildcards in later files see ideas already indexed in this pass ).
Code-document refresh after an idea-name change reuses the same in-memory catalog.
Extension soft sync opens a native catalog session ( `beginIndexPass` / `endIndexPass` ) around the
per-file loop so `indexFile` does not reload ideas each time; `indexFiles` / `index_paths` keep one
catalog for an explicit path list without a second walk.
Single-file watcher enqueue may still call `list_all_ideas` once ( one file, not a full pass ).
index_cache_reuse
avoid_full_list_all_ideas
soft_sync
index_code_files
Navigation
Attributes
| Key | Value |
|---|---|
| implementation | sync.rs, workspace_index.rs, workspace_index.rs, workspace-index-sync.ts, native-workspace-index.ts |
| status | done |
| tests | sync.rs:soft_sync_skips_unchanged_mtime, sync.rs:sync_pass_catalog_sees_earlier_file_ideas_for_wildcards, sync.rs:sync_pass_catalog_drops_renamed_idea_names, sync.rs:index_paths_shares_one_catalog_across_files |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | avoid_full_list_all_ideas | reqlan rq/indexer/cache-reuse.rq | sync_pass_idea_catalog |
| references | soft_sync | reqlan rq/indexer/sequencing.rq | sync_pass_idea_catalog |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…