Forum Replies Created

Viewing 15 posts - 826 through 840 (of 49,552 total)

  • RE: Lookup values similar to VLookUp in Excel

    Please note that the code pattern used here has a severe performance problem.
    See https://www.simple-talk.com/content/article.aspx?article=2280 for explanations and options to fix

    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: Nested sub queries with SUM, optional parameters in Storedprocedure

    Please note that the code pattern used here has a severe performance problem.
    See https://www.simple-talk.com/content/article.aspx?article=2280 for explanations and options to fix

    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: Index creations doubts

    http://www.sqlservercentral.com/stairway/72399/
    http://www.sqlinthewild.co.za/index.php/category/sql-server/indexes/

    And that's just the first two that came to mind. Spend some time with your favourite search engine and do some reading.

    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: Getting sum of current and next row in sql server 2008/2005

    Without DDL I can't write the query...

    Calculate a row_number over the partition and order that you want for the sum. Do that in a CTE. Then join that...

    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: PLE

    Arsh - Sunday, August 27, 2017 1:36 PM

    and what are MARS in the connection strings you mentioned above ?

    Something that is off...

    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: PLE

    Arsh - Sunday, August 27, 2017 12:10 PM

    do you think the index fragmentation also is an issue here?

    No.

    Is the...

    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: high writelog wait on OLTP system and fast SSD storage, log flush is slow

    The problem, I suspect, is that log flushes are synchronous. The log has to be written in order, so with 1000 flushes a second, even if you had a 1ms...

    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: Increasing the PLE

    Please don't start multiple threads for the same problem
    https://www.sqlservercentral.com/Forums/1893974/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: PLE

    Increase PLE: Add memory or reduce need for memory by tuning queries or reducing data. It's not complicated.
    PLE is the measure of how long a page will stay in...

    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: How to do this in one sql statement without CTE ?

    Why? If the CTE works, why not use it?

    You can do the same thing with a subquery, but it might be harder to read.

    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: PLE

    Arsh - Sunday, August 27, 2017 5:10 AM

     Gail , in your example above , is the 20 GB 'allocated' or 'used' ? ...

    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: PLE

    Arsh - Saturday, August 26, 2017 8:35 AM

    Appreciate if anybody can help understand why the physical memory is divided by 4 to...

    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: Why did added partitions make cube processing slower?

    Jeff Moden - Saturday, August 26, 2017 2:12 PM

    It's funny how the term "incremental load" seems to have changed over time.  To...

    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: Select queries deadlocking each other??

    Nothing I said is affected by isolation level.

    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: how to perform update

    Every time LineNo resets to 1 (as ordered by recid), you want the chunk number to increase by 1.
    Is that a correct summary of the requirement?

    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 - 826 through 840 (of 49,552 total)