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
I just noticed (thanks to my growing base!) that for a given Item < Mongomatic::Base, Item.count will take a long time (37 seconds in my example). After browsing the code I suspect that count is going through all the documents to count them (count is doing find.count).
Using Item.collection.count instead is very fast.
I'm currently using Mongomatic 0.5.8.
The text was updated successfully, but these errors were encountered:
Hello,
I just noticed (thanks to my growing base!) that for a given Item < Mongomatic::Base, Item.count will take a long time (37 seconds in my example). After browsing the code I suspect that count is going through all the documents to count them (count is doing find.count).
Using Item.collection.count instead is very fast.
I'm currently using Mongomatic 0.5.8.
The text was updated successfully, but these errors were encountered: