Answer the question
In order to leave comments, you need to log in
How to find out about data changes in the Mongodb database?
Hello everyone, there is a Mongodb database, as soon as some kind of database change occurs (delete, write, change ..) get the changed data. That is, viewing changes in real time or almost.
I am working on Python 3.7. How to do this, tell me, the second day I'm sitting on this.
Answer the question
In order to leave comments, you need to log in
There are also Change Streams
Examples for python are in the documentation
As an option to read the oplog
The oplog (operations log) is a special capped collection that keeps a rolling record of all operations that modify the data stored in your databases.
Google in this direction, I suppose there are already ready-made parsers for this oplog.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question