Office Hours: Ask Me Anything About Azure SQL DB and Microsoft SQL Server

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 11

  • @gustavswanepoel9207
    @gustavswanepoel9207 Год назад

    Thank you, Brent, for the great answers.

  • @andreaallred6390
    @andreaallred6390 Год назад

    Always love to learn something new! Thank you for the brain charge!

  • @pekilika
    @pekilika Год назад

    Regarding the comments in sql from ORM, I know the Entity Framework added the Tag() option that will allow you to output those to aid in debugging. Has some limitations but it's out there.

  • @ButanFire
    @ButanFire Год назад

    I`ve had one occurrence where I had to manually create statistics for a table, because SQL was doing crazy table scans and the server CPU hit more than 99% and everything on the server was freezing/lagging. The app servers were constantly firing table scans on that SQL, even though we stopped some of them to reduce the stress, it still was a nightmare..
    Don`t ask me how I managed to triage a system with blown up CPU cores, because there was 5second lag/timeouts on each action on the server... and the server didn`t crash funnily enough :)
    The stats update resolved the query plans against that DB table and CPU usage was back to normal (no more scans).
    Weird thing is that - I think Stats update was running each day (or week) , so I bet the App or Devs did a lot of data changes in PROD (that actually triggered a cardinality change of the plans)
    DB size was >500GB , the table in question had >15 million rows.
    P.S Brent, you`re the best! :)

    • @BrentOzarUnlimited
      @BrentOzarUnlimited  Год назад

      That's most likely not a statistics issue - it's parameter sniffing. Check out my parameter sniffing class when you get time.

  • @WoodlawnSound
    @WoodlawnSound Год назад

    Send a link to the BringATrailer auction!

  • @TorgeirFredriksen
    @TorgeirFredriksen Год назад

    Did you get your nails trimmed?