I made some stress test and i was shocked!
I do interval of mili second in the client:
setInterval(function(){
//some call requset to server
},1);
In the server i have simple select call with limit and it indexed.
The result:
i got 100% cpu on the graph.
I also checked that test in mongodb and the cpu was normal.
What should i do to fix that?