Message from Python discussions

November 2018

— Hi


I want to create a script to check if new document has added in specific collection of my mongo database

— Why can't you check the count of documents?

— Actually Ui has specific applicant list table and I have to check if any new applicant has been added Print something

Message permanent page

— Using celery

— Yes

— I want to check within specific interval of time if count has increase print hello world

— Have you triend Change Streams option in mongodb

— Which is available in version 3.6 of mongo


from pymongo import MongoClient
db = MongoClient().dbname
cursor =

— Above like line code can be used for change stream

— To retrieve the data change event notifications, iterate the change stream cursor