-
Notifications
You must be signed in to change notification settings - Fork 28
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
Deadlock while inserting multiple STAC items at once #2
Comments
Hi! I can confirm this, it happens under the same condition, multiple POST requests simultaneously for inserting an item. The stack trace is
I did not pin the version of stac-fastapi, so everything is "latest", sorry... anyway, it will probably happen in the current latest version, and I had to format my PC a few days ago. About pgstac, I am using the docker image ghcr.io/stac-utils/pgstac:v0.6.11 I do not know any workaround (I am not familiar with stac-fastapi, nor pgstac as a developer). |
Ported from stac-utils/stac-fastapi#407.
Original Issue:
To speed up storing STAC items I am using asyncio.
But looks like there is a deadlock in pgstac implementation.
Which means several simultaneous requests to insert an item will fail, so it becomes a bottleneck. Please let me know if anyone has seen this issue and if there is a workaround.
The text was updated successfully, but these errors were encountered: