balderdashy/sails-mongo — pull request #77 by benshell (2013-12-12 22:42:35+00:00)
Title: Add count method to adapter

There wasn't a count method for the Mongo adapter, so in the count method in node_modules/sails/node_modules/waterline/lib/waterline/query/dql.js it falls back to running the find method and then getting the length. On my large dataset this didn't even seem to be working, so I discovered this issue and added a count method to the Mongo adapter.