-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deadline Exceeded 504 On Mass Edit #465
Comments
I found a few problems with this issue:
|
Note that Firestore client is actually in the repo https://github.com/googleapis/python-firestore You're likely to get a faster response if you report this there. |
@hiranya911 Thanks for your comment. I guess I thought this was the best place to put the comment but if there is somewhere I should move it to, please let me know! |
Since you're updating users individually it seems unlikely that the individual updates are hitting a deadline exceeded. More likely is that streaming the In streaming Google APIs, including Firestore, the RPC deadline applies to the entire stream, not the next result. This means with the default deadline of 60 seconds, you must process the all the stream results within that span. There are a few things you can do to address this:
This last strategy will extend indefinitely (though you can combine it with the others). The idea is that you run the query with a limit and use the last document in the query to construct the start_after for the next query. This strategy will let you read all documents in a collection, no matter the collection size. |
Step 3: Describe the problem
I have a large set of users with a given set of data. I download the user data, repackage it and repost it. Pretty straight forward. However, I can only run about 600 users at a time before I get the following:
Steps to reproduce:
What happened? How can we make the problem occur?
This could be a description, log/console output, etc.
Relevant Code:
The text was updated successfully, but these errors were encountered: