Forum Replies Created

Viewing 15 posts - 11,416 through 11,430 (of 49,552 total)

  • RE: Looking for a faster count than count(*) for my sp.

    isuckatsql (10/5/2013)


    Have you heard the term "pay it forward" ?

    Do enlighten me, what should I be doing to 'pay it forward'?

    I offered you advice on the count (as did Luis),...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Looking for a faster count than count(*) for my sp.

    T.Ashish (10/5/2013)


    Luis, I disagree on not using NOLOCK. Even my project uses it in all reporting queries, and removing NOLOCK will result in tons of calls and mails at helpdesk.

    Do...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Total/Target memory

    Target is what SQL wants, total is what it has. Target>Total usually means SQL is increasing its memory allocations.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Looking for a faster count than count(*) for my sp.

    isuckatsql (10/4/2013)


    Sean, you make a lot of suggestions about all the things i am doing wrong, yet offer nothing helpful.

    This is a discussion forum, so we discuss things, if you...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Memory uitilization

    Put the values that your client wants to see, it's not my report.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Ad hoc update to system catalogs error

    Run

    EXEC sp_configure 'show advanced options', 1;

    go

    EXEC sp_configure 'allow updates', 0

    GO

    RECONFIGURE

    GO

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Page Life Expectancy dropping in value

    Grant Fritchey (10/4/2013)


    Others that would have been insanely high except weekend data processing would flush the cache completely.

    That matches what I've seen in a lot of places. High and...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Page Life Expectancy dropping in value

    If you're under so much memory pressure that pages read in 3 seconds ago are getting discarded, that server's going to be dead in the water no matter what kind...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Page Life Expectancy dropping in value

    Dird (10/4/2013)


    If you inserted 5000 rows into 100 pages per second then they wouldn't be discarded right away on account of the LRU algorithm?

    Why would a page that's just been...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Page Life Expectancy dropping in value

    I mean the normal dictionary definition of the word.

    An OLTP system does not automatically have low PLE from being a OLTP system.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Looking for a faster count than count(*) for my sp.

    isuckatsql (10/4/2013)


    The more i used normalization, the slower the query performed, so it has gradually been denormalized, to improve performance.

    Oh dear, that's really not going to help overall performance...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Page Life Expectancy dropping in value

    OLTP does not automatically result in low PLE.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Looking for a faster count than count(*) for my sp.

    isuckatsql (10/4/2013)


    In testing the sub queries proved faster than Joins, as did the MAXDOP and NOLOCK.

    So you don't mind if your results are inaccurate. Have you confirmed with the users...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Page Life Expectancy dropping in value

    Dird (10/4/2013)


    GilaMonster (10/4/2013)


    IgorMi (10/4/2013)


    PLE min values should not go under 300 seconds.

    That was a poor recommendation 8 odd years ago when servers had maybe 4GB of memory. These days...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Looking for a faster count than count(*) for my sp.

    Sean Lange (10/4/2013)


    You have tons of correlated subqueries. These would be better as joins instead.

    Not necessarily.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 11,416 through 11,430 (of 49,552 total)