Need a sample Python application

Job ID: 31782340

Budget: ₹1,500 – ₹12,500 INR

Need a sample python application with a small code to handle database changes meaning, Lets say I am running some threads in python and I want to know if some value in my Database was changed, if it was changed, then my thread it should read it automatically and do calculations in my python program according to that.
Right now the approach that I am following is hitting my database in an infinite loop with a sleep of 30secs, which I don't think is a good way to deal with such a problem. Need someone to suggest me something better and make me a demo program with the same.
Related categories: Python Linux Software Architecture MySQL Flask