You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've benchmarked mongoose streams against mongodb streams and found mongoose was one order of magnitude slower.
I think there is a performance problem on current implementation, relying on continuously using mongo's cursor.next along with non-trivial flow control code to mongoosify returned documents.
IMHO, using an streaming approach involving mongo's Cursor.pipe along with stream's Transform, thus leveraging the flow control entirely to the efficient Readable.pipe interface, will result on much better numbers and, maybe, simpler code.