Forum Replies Created

Viewing 15 posts - 1,861 through 1,875 (of 6,036 total)

  • RE: Query on a large database

    Jayanth_Kurup (10/23/2015)


    Mainly I think the reason this discussion is dragging on is because there is a misconception of how indexes work for OLTP system vs DW systems.

    The main reason of...

  • RE: Query on a large database

    Jayanth_Kurup (10/23/2015)


    Big table resides in a single file

    Are you sure?

    with partitioning you can split a big table into many smaller files such that year 2010 data goes into...

  • RE: Query on a large database

    xsevensinzx (10/22/2015)


    Good stuff here Sergiy. I agree, but correct me here if I'm wrong. If I have table partitioning setup and there are two partitions, one query hitting partition A...

  • RE: Query on a large database

    Jayanth_Kurup (10/22/2015)


    here is the blog link with video

    http://enabledbusinesssolutions.com/blog/does-partitioning-improve-performance/

    You're obviously not listening what people trying to tell you.

    Your example repeats that very "junior mistake" I was talking about:

    CLUSTERED INDEX ON...

  • RE: Query on a large database

    Jayanth_Kurup (10/22/2015)A DW doesn't perform seeks it performs scans ( nobody fetches only one months data from a DW, usually they aggregate over months , years and even decades some...

  • RE: Query on a large database

    Jayanth_Kurup (10/22/2015)


    Partitioning can improve performance mainly in the following ways

    -For very large tables partition elimination does provide real benefits

    With correctly chosen clustered index it does not matter how...

  • RE: Query on a large database

    Kristen-173977 (10/20/2015)


    Sergiy (10/19/2015)


    Make sure you have a clustered index on "record date time" column.

    I would only re-create a clustered index if there isn't one already - any existing clustered...

  • RE: Query on a large database

    Make sure you have a clustered index on "record date time" column.

    Then selecting of a monthly range of records will work really fast, and the rest of conditions would...

  • RE: xp_cmdshell security risk: Any other option

    The thing is - the security risk coming from inappropriate setup of privileges for correlated accounts is there all the time, no matter if you're using xp_cmdshell or not.

    Not using...

  • RE: Whats wrong in this query

    Can you tell us more about those condition cond1, condtn you use in the query? How do they look like?

    And I can see objectA mentioned 4 times in the query....

  • RE: High Memory

    SQL Server will always use all the memory you make accessible to it.

    Unless you specifically enforce releasing previously cached pages.

    Normally SQL Server will keep cached execution plans, data sets in...

  • RE: Whats wrong in this query

    ...

    left join objectA

    on (worktbl.id = objectA.ID AnD worktbl.order >1000)

    OR

    (worktbl.anotherid = objectA.ID AnD worktbl.order =1000)

    left join

    ....

    Try to rewrite this join.

    Using such constructions in joins, especially when OR is involved...

  • RE: Amount rounding - What did I do wrong?

    TheSQLGuru (8/18/2015)


    IsNull(c.BeginBal,cast(0 as correctdatatype)) + IsNull(d.NetActivity,cast(0 as correctdatatyp)) As [Begin_Bal]

    Or -

    Declare @DecimalZero decimal (9,2)

    SET @DecimalZero = 0

    SELECT IsNull(c.BeginBal, @DecimalZero) + IsNull(d.NetActivity, @DecimalZero) As [Begin_Bal]

  • RE: Query performance

    And talking about resources.

    From what you said - it must be the case of memory shortage/failure on the "slow" server.

    Compare memory availability on each server, how much of it allocated...

  • RE: Query performance

    And talking about resources.

    From what you said - it must be the case of memory shortage/failure on the "slow" server.

    Compare memory availability on each server, how much of it allocated...

Viewing 15 posts - 1,861 through 1,875 (of 6,036 total)