@MJ For redis:
hset config eventLoopLagThreshold 70
I'm looking for a solution to create a Reddit / Hacker News clone and wonder whether NodeBB could do this or not. So basically I want a list of links/topics ranked by the upvotes and comments they get. (I don't find number of views particularly interesting to generate this ranking.) I assume it's very much possible if you put effort into it but how much would then be needed? Or does NodeBB's structure conflict with this in any way? I would also like the interface to be as minimal as possible, have a look at Hacker News as reference.
Yes its doable, nodebb core already has a sorted set (
topics:posts) that stores all topics sorted by post count, you can create a plugin that generates a sorted set with scores as upvotes. And then display this on a page.
Very experimental example Reddit style rating for post votes can be seen here: https://bitbucket.org/jmimms/nodebb-plugin-ripple/src/894293ad03e5a237f75dfbf9a01d77be08fa7fa7/lib/post.js?at=master
Nothing is done with it other than just storing a rating. Probably not even done correctly but you get the idea. You can sort based on various stuff with this and display the posts somewhere.
Thanks for your replies! I later found out about Telescope which does exactly what I'm looking for.
@JYZR that script is awesome!
@JYZR ah I remember Telescope back when I had to develop something in Meteor and was looking for some examples... Fun times...
@Schamper Is it good idea to use Telescope in general? Is there any concerns?
Looks good as far as documentation and updates.
@Bobber I've never used it, just used it to learn more about the way how Meteor apps are structured.