-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
bugSomething isn't workingSomething isn't working
Description
This query:
const toInactivate = await this.dbManager.getSessionsByQuery({
isWhip: { $ne: true } as any,
isExpired: false,
isActive: true,
lastSeenAt: { $gte: expiredCutoff, $lt: inactiveCutoff } as any
});
can be optimized for CouchDb databases by adding index. Following warning is received from CouchDb:
% curl -X POST https://XXXXX:XXXXX@eyevinnlab-intercom.apache-couchdb.auto.prod.osaas.io/intercom/_find \
-H "Content-Type: application/json" \
-d '{"selector": {"isExpired": false, "isActive": true}, "limit": 10}'
{
...,
"warning": "No matching index found, create an index to optimize query time."
}
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working