I have a Azure logic app defined to clean up old records in the database. Normally if we run the query directly it will take around 5 to 10 mins as it has more records