I just created a function in PostgreSQL and it takes 1 second only, but sometimes it starts taking 20 seconds and keep as it is and then again it comes back to 1 second. what is