node.js - Nodejs + Mongodb tailable cursor stream() query keeps running in background -



node.js - Nodejs + Mongodb tailable cursor stream() query keeps running in background -

i utilize code latest info mongodb collection https://gist.github.com/jpaljasma/3260eaa6f7a40315863d#file-tailable-cursor-js

the issue when

// create stream , hear var stream = coll.find(filter, cursoroptions).sort({$natural: -1}).stream();

the above line executed.. query starts can seen in mongod console

so far able pause query using stream.pause(); when info beingness received.

also info event

// phone call callback stream.on('data', next);

is called when info inserted in db

i want find way can null results of query running in background.

the issue page loaded execute code , stream query starts in background using live graph , it's fine long browser open want stop browser gets closed.

node.js mongodb

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -