irlnathan / activityoverlord

An application I'm building to learn sails.js
317 stars 101 forks source link

Subscribe performance #8

Closed jgeurts closed 10 years ago

jgeurts commented 10 years ago

Am I incorrect that the user subscribe call (https://github.com/irlnathan/activityoverlord/blob/master/api/controllers/UserController.js#L162) will query all users from the db?

If so, is there another way to subscribe that doesn't query the db? That is a lot of unused information being transferred from the data source to the sails app.