getting inconsistent values on my postgres database
I had set up a cron which will update my table in the postgres database by fetching values from redis , the cron runs every 10 minutes . The values will be updated in the DB if same date data is present in the redis , otherwise will be updated with new value in the redis , Here is the code