grahamjenson / hapiger

HapiGer is an http-wrapper around the Good Enough Recommendation engine using the Hapi.js framework
174 stars 36 forks source link

Limit recommendation result? #5

Open joshbedo opened 8 years ago

joshbedo commented 8 years ago

Wondering if there is a way to limit the recommendations returned? In my case i want to continuously return a set of 10 or 20. Once the database grows i feel like returning 10,000 recommendations isn't going to be beneficial and it's definitely going to slow things down.

grahamjenson commented 8 years ago

There are many configuration variables available for ger described here, https://github.com/grahamjenson/ger these will impact the number of recommendations calculated. It would be pretty difficult and slow to return 10,000.