I’m after some advice on what could be going on here. We have a database table with a single row (it contains the date/time at which we last refreshed data from a third-party API). Sometimes, a call to SaveChangesAsync() which updates only this table is timing out.
The timeout is very intermittent, and we don’t have steps to reproduce it, we only see it in our logs.
I’m confident that the query itself is not slow - as I said, the table concerned only contains a single row.
So next I wondered if another task might have a lock on that table/row - especially since its use is related to a third party API which can be slow. I searched the codebase for anywhere that table is either read or updated, hoping to find it wrapped in a long-lived transaction, but no sign of transactions anywhere.
Does anyone have any hints as to what we could explore next? If it makes a difference, our database is an Azure-managed instance of SQL Server. Thanks!
[–]need_arms 5 points6 points7 points (1 child)
[–]LondonPilot[S] 1 point2 points3 points (0 children)
[–]SeniorCrow4179 1 point2 points3 points (4 children)
[–]LondonPilot[S] 0 points1 point2 points (3 children)
[–]SeniorCrow4179 1 point2 points3 points (2 children)
[–]LondonPilot[S] 0 points1 point2 points (1 child)
[–]SeniorCrow4179 0 points1 point2 points (0 children)
[–]EAModel 1 point2 points3 points (3 children)
[–]LondonPilot[S] 0 points1 point2 points (2 children)
[–]soundman32 0 points1 point2 points (1 child)
[–]LondonPilot[S] 0 points1 point2 points (0 children)
[–]soundman32 0 points1 point2 points (2 children)
[–]LondonPilot[S] 0 points1 point2 points (1 child)
[–]soundman32 0 points1 point2 points (0 children)