getVaultMemoriesByIdsOp()
getVaultMemoriesByIdsOp(
ctx:VaultMemoryOperationsContext,ids:string[],options?:object):Promise<StoredVaultMemory[]>
Defined in: src/lib/db/memoryVault/operations.ts:1044
Bulk-decrypt a KNOWN set of memories by ID — the “decrypt last” half of
on-demand recall (#5017) for lanes whose size is NOT bounded to the top-N
(e.g. the keyword lane over un-embedded rows). Uses unsafeFetchRaw + a
single id oneOf query so it does NOT pin a WatermelonDB Model per row into
the never-evicted RecordCache — unlike calling getVaultMemoryOp N
times, which .find()s each row and is only appropriate for the bounded
top-N winners (web Pile-2 tab-memory).
Reuses baseVaultConditions, so deleted / superseded / cross-user rows are
excluded exactly as they are from recall — a caller can pass any id list and
only its own live rows come back.
Parameters
| Parameter | Type | Description |
|---|---|---|
|
|
‐ | |
|
|
|
‐ |
|
|
|
See getVaultEmbeddingsByIdsOp — must match what admitted these ids. |
|
|
|
‐ |
Returns
Promise<StoredVaultMemory[]>
Deprecated
App code: use MemoryStore.list({ memoryIds }) (createLocalMemoryStore).