I am building a web application and using postgreSQL as database. I need to fetch and update thousands of rows every 5-10 mins. Let\'s say i have 1M rows with this following