I am trying to use a tailable cursor with stream. We are using mongoose and it works but when I launch my server with this code :
const listStream = ListsSub.find()
.tailable({
await_data: true,
numberOfRetries: -1,
})
.stream();
my CPU is overheating.
Activity Monitor when code is active
Commentating the .stream() make the server runs great again.
Activity Monitor when the code is in commented
I don't really know how to do without it. Is it something with my code ? Anyone experienced the same problem ?
EDIT :
- mongoose : 4.11.3
- mongodb : 3.4.6
- node : 8.1.2
- Server and mongodb on the same machine

