Message from Python discussions

November 2018

— 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

— 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 = db.collection.watch()

— Above like line code can be used for change stream

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

— I want to do it using celery scheduler

— I just want celery scheduler to run my script and check if any new document is added in dB