I have a request that takes a lot longer than usual and I can’t tell if it’s stuck.
The query looks something like this:
INSERT XXXXXX WITH (TABLOCK)
SELECT * FROM YYYYYY with (NOLOCK)
WHERE ZZZZZZZZ = 1
This inserts hundreds of millions of rows. I have an index on ZZZZZZZZ.
No lockout sessions. When I check sys.dm_exec_requests, it shows that the last wait type is PAGEIOLATCH_SH . I'm not sure what this means, except that it has something to do with I / O.
sys.dm_exec_sessions shows the status RUNNING, but sp_who2 shows it as SUSPENDED.
I tried to see if the table grows, but when I call sp_spaceused XXXXXX, I get the same values.
What else can I do?
UPDATE:
, -, 600 ).
?
, , ?