dp3.core.link_manager ¶
Core module managing links between entities.
LinkManager ¶
Manages the shared Link cache and updates links after entity deletion.
Source code in dp3/core/link_manager.py
_setup_cache_indexes ¶
Sets up indexes for the cache collection.
In the collection, these fields are covered by an index:
- The
to
andfrom
fields are used when loading linked entities, as well as when removing links of deleted entities - The
using_attr
field is used to filter which link attributes are used - The
ttl
field serves as a MongoDB expiring collection index