[02:01:15] <Tonkers> Hey everyone, I'm trying to do a simple FindOneAndUpdate() from a node.js post request, and the operation is taking several minutes to execute. I only have one user document in my collection. Any ideas?
[14:35:18] <dachi> Hi. Can you help with Mongoose if possible? Inside mySchema.pre('save') this refers to an instance of model, but how can I access model itself. I need to perform findOne there.
[16:55:55] <ironpig> How does totalIndexSize() distribute on a cluster ?
[20:33:37] <not_phyrexia> Greetings all. I've got an C# OData v4 service endpoint returning a MongoDB collection IMongoQueryable. I'm trying to do some filtering based on the contents of a document subarray. An elemMatch equivalent. My filter string appended to my endpoint is "$filter=Indices/any(i: i/Name eq 'Account')" .
[20:34:06] <not_phyrexia> Unfortunately, MongoDB.Driver.Linq.Translators.PredicateTranslator.GetFieldExpression is throwing an InvalidOperationException: "IIF(({document}{i} == null), null, Convert(Any({document}{i}.Where((IIF(({document} == null), null, {document}{k}) == \"Account\"))))) is not supported."
[20:34:37] <not_phyrexia> Any thoughts would be appreciated
[20:40:08] <not_phyrexia> I'm wondering if there's a workaround or if I'm holding it wrong. I'm considering writing an OData Query -> MongoDB Filter adapter
[21:00:51] <KishlorN> How is this summary collection presented here https://www.mongodb.com/blog/post/retail-reference-architecture-part-1-building-flexible-searchable-low-latency-product supposed to be setup/maintained? Is there some kind of sql-like view mechanism in mongodb to handle this? Do we need a scheduled job to update summary data regularly?