You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I query nodes, I am able to filter by fields within the metadata field. I want to create an index on the metadata field to speed up retrieval.
I want to add an _initialize function in the MongoDBKVStore to create an index on the metadata field, similar to how it is done in the PostgresKVStore, but in the _initialize function, the task is to create the index.
Reason
Indexes support efficient execution of queries in MongoDB. Without indexes, MongoDB must scan every document in a collection to return query results. If an appropriate index exists for a query, MongoDB uses the index to limit the number of documents it must scan.
Value of Feature
No response
The text was updated successfully, but these errors were encountered:
Feature Description
I am using MongoDB as the doc_store, and the structure stored within it is as follows:
When I query nodes, I am able to filter by fields within the metadata field. I want to create an index on the metadata field to speed up retrieval.
I want to add an _initialize function in the
MongoDBKVStore
to create an index on the metadata field, similar to how it is done in thePostgresKVStore
, but in the _initialize function, the task is to create the index.Reason
Indexes support efficient execution of queries in MongoDB. Without indexes, MongoDB must scan every document in a collection to return query results. If an appropriate index exists for a query, MongoDB uses the index to limit the number of documents it must scan.
Value of Feature
No response
The text was updated successfully, but these errors were encountered: