Open timkinnane opened 6 years ago
By refactoring the storage model with data as sub-documents (instead of basic array), the adapter could perform mongo queries on sub-documents instead of getting the whole array back and filtering in-memory with javascript.
data
see https://github.com/Amazebot/bbot/blob/master/src/adapters/mongo.ts#L120
By refactoring the storage model with
data
as sub-documents (instead of basic array), the adapter could perform mongo queries on sub-documents instead of getting the whole array back and filtering in-memory with javascript.see https://github.com/Amazebot/bbot/blob/master/src/adapters/mongo.ts#L120