I have a query that is intermittently running very slowly in SQL Azure
- Runs in < 1 second in SSMS
- Is submitted through Entity Framework through the application
- Is NOT calling a stored procedure
- Is passed parameters
- Using DMVs determined that it runs and then enters a "Suspended" state
- The wait type is indicated as IO_COMPLETION pointing towards waiting for a resource
- This is in Azure so the normal server related monitoring is not available
- Execution plan has been reviewed with no scans indicated
- Issue will be occurring one day...all day, then with no changes to the database be cleared up the next morning
- Once the issue was occurring then I couldn't login to the database for several seconds. Once I could the issue was corrected and the query performed as expected.
Any ideas on what could be causing this or other things that can be checked would be greatly appreciated!
Thanks in advance!