gemini-hlsw / lucuma-odb

5 stars 0 forks source link

see if this fixes the deadlock problem #1410

Closed tpolecat closed 1 month ago

tpolecat commented 1 month ago

Services has a GraphQLService that can be used to make recursive GraphQL queries from the service layer, which is sometimes more reasonable than doing complex SQL queries. Unfortunately doing so allocates another connection, which can lead to deadlocks if the pool is empty. This works around the issue by using another mapping that is bound to the Services database session rather than to the connection pool.

I feel shame, obvs.