edpe / story-webhook

The webhook for the story bot for Addaction. The webhook responds to botengine to store anonymous data on which stories are most popular.
0 stars 0 forks source link

Improve story retrieval method #6

Open edpe opened 6 years ago

edpe commented 6 years ago

Originally posted by @RpprRoger in https://github.com/edpe/story-webhook/pull/4

edpe commented 6 years ago

we know that we could get all the stories instead. This is probably not a problem in this application because this query wont run very often, but this is three times more expensive to run than model.find().

index.js line 34