Mongoose JS, my scoreboard implementation performance Mongoose JS, my scoreboard implementation performance mongoose mongoose

Mongoose JS, my scoreboard implementation performance


Your code will indeed fail in larger databases. I suggest you use indexes in find()'s parameter, which will improve the speed.

Apart from that, you can use lean() after find() if you want to get a simple Javascript object, and not a Mongoose one.