with Python is there a way to listen for changes when insert or update is made in mongodb
问题 I am building a small system which throws data from a mongodb collection, it already works fine but I have to restart it everytime I make changes. I already have a monitor that dectect changes and restarts the server automatically but I want to do something like this with mongodb changes. I am currenlty using CentOs 5, Nginx, uWsgi & python2.7. 回答1: I'd look into using tailable cursors, which remain alive after they've reached the end of a collection, and can block until a new object is