But the function hasn't changed for months. If a function reads suppose 1000 items from a database and takes 2 minutes to process them, if it hasn't been changed then why would it take 4 minutes to process 1000 items after a few months? Because the function is exactly the same, it is reading from the same database. If the function is working properly then it might be scalability issue on the side of Firestore, which should be managed and scaled automatically under my subscription plan. Similar thing happened last year when I raised an issue regarding the stack trace of firebase functions logs, I was told that it couldn't happen and I should check my implementation for any bugs but after a few days
https://issuetracker.google.com/issues/155215191 was registered on the bug tracker and was fixed after a few months. I just want to know if there r some other factors that could be causing this and like I explained above, the function is same, number of items being read is same and database is the same then why would it start taking more time to execute the same operation after a few months.