MongoStore
Este conteúdo não está disponível em sua língua ainda.
Defined in: src/persistence/journals/MongoStore.ts:31
The MongoDB half of the store lifecycle: LazyStore handles lazy connection,
one-shot preparation and ownership-aware teardown, and this layer supplies
index creation as the preparation step.
Index creation is not cosmetic here the way CREATE INDEX often is. The
journal’s unique compound index on (persistenceId, sequenceNr) is the
optimistic-concurrency backstop — without it a racing writer silently
overwrites, exactly the failure the relational backends get for free from a
primary key. autoCreateIndexes: false therefore means “I have created them
myself”, not “I don’t need them”, and the docs say so.
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Methods
Section titled “Methods”close()
Section titled “close()”close():
Promise<void>
Defined in: src/persistence/LazyStore.ts:66
Returns
Section titled “Returns”Promise<void>
