March 7, 2019 at 1:00 pm
query plans drive off the road. Have 3rd party app db users complained of slowness. This db and app running for over a year. I look at memory PLE over 20000, cpu was at 45-55 which is high for this box. Go to query store and I see some queries have plans with over 40 million logical reads, same query also has 496 logical reads. No changes to app or database, index and stats rebuilt twice weekly only about 20 users on this system. I have never seen query store show this kind of variance, kind of like taking a plane to cross the street. Any ideas? I did do a reboot which seems to have cured it but never seen a bunch of plans run off the road like this. Blitzcache and Pinal Dave sql showed nothing?
March 8, 2019 at 3:02 am
Hi,
I think, if anybody should help, we need more informations
CPU?
DISK? SSD, SAN?
Memory
Size of the database
Rowcount of the biggest table
etc.
Kind regards,
Andreas
March 10, 2019 at 2:08 pm
tcronin 95651 - Thursday, March 7, 2019 1:00 PMquery plans drive off the road. Have 3rd party app db users complained of slowness. This db and app running for over a year. I look at memory PLE over 20000, cpu was at 45-55 which is high for this box. Go to query store and I see some queries have plans with over 40 million logical reads, same query also has 496 logical reads. No changes to app or database, index and stats rebuilt twice weekly only about 20 users on this system. I have never seen query store show this kind of variance, kind of like taking a plane to cross the street. Any ideas? I did do a reboot which seems to have cured it but never seen a bunch of plans run off the road like this. Blitzcache and Pinal Dave sql showed nothing?
This sounds like a classic case of "bad parameter sniffing" (Google for that term on possible fixes for it). Also, have you ever done any statistics maintenance on this system?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply