Forum Replies Created

Viewing 14 posts - 16 through 30 (of 30 total)

  • RE: Have to use force recompile to get the SP to use indexes

    Hi,

    I got a reply from our tech guys, who said that auto update statistics was set to true, and in addition to that they were running sp_updatestats once a...

    Thorbjorn Kvam,
    Project manager and DBA (design) at Payex (http://www.payex.com)

  • RE: Have to use force recompile to get the SP to use indexes

    GilaMonster (12/14/2009)


    Table definitions, index definitions and execution plans please. Refer to the 2nd article in Lynn's sig (How to post performance problems) for details on how to post them.

    I'd be...

    Thorbjorn Kvam,
    Project manager and DBA (design) at Payex (http://www.payex.com)

  • RE: Have to use force recompile to get the SP to use indexes

    Thank you, a good article!

    Not a lot of it applies to my issue I think (I may be wrong as I don't know the exact cause of my problem)...

    Thorbjorn Kvam,
    Project manager and DBA (design) at Payex (http://www.payex.com)

  • RE: Delete historical data little by little and often, or a huge bulk more seldom?

    Thanks for all your thoughts and comments. Currently it's working out okay when we delete 5000 rows performance wise, and there doesn't appear to be any locking issues. I assume...

    Thorbjorn Kvam,
    Project manager and DBA (design) at Payex (http://www.payex.com)

  • RE: Surrogate clustered index to guarantee "sequentiality"

    GilaMonster (3/3/2009)


    one (3/3/2009)


    Why all this worry about having the clustered index unique? 🙂

    A clustered index is always unique. The only question is do you make it unique, or does SQL...

    Thorbjorn Kvam,
    Project manager and DBA (design) at Payex (http://www.payex.com)

  • RE: Table design

    Narendra (3/3/2009)


    Note: It is many rows per state and one row per bracket.

    Thanks,

    Naru.

    Depends on how you see it I guess, but

    Alabama ...

    Thorbjorn Kvam,
    Project manager and DBA (design) at Payex (http://www.payex.com)

  • RE: Surrogate clustered index to guarantee "sequentiality"

    People are too concerned with consistency and theoretical issues. Why all this worry about having the clustered index unique? 🙂

    Making a clustered surrogate key (that you won't really use in...

    Thorbjorn Kvam,
    Project manager and DBA (design) at Payex (http://www.payex.com)

  • RE: Table design

    A lookup table like you are suggesting with one row per state per bracket range makes sense.

    Thorbjorn Kvam,
    Project manager and DBA (design) at Payex (http://www.payex.com)

  • RE: Delete historical data little by little and often, or a huge bulk more seldom?

    Ab5sr, Thanks for your suggestion - I guess it might be worth a try to minimize the potential performance hit. I'll give this a try in our staging environment...

    Thorbjorn Kvam,
    Project manager and DBA (design) at Payex (http://www.payex.com)

  • RE: are these fields appropriate for clustered index

    How many records will a query like this typically return?

    It looks to me like you need a clustered index on client_Id in your gl-table. An alternate approach to try...

    Thorbjorn Kvam,
    Project manager and DBA (design) at Payex (http://www.payex.com)

  • RE: How to write efficient stored procedure ?

    As your SP has several operations - figuring out what is actually the slow part is probably a good way to start instead of just rewriting it in a number...

    Thorbjorn Kvam,
    Project manager and DBA (design) at Payex (http://www.payex.com)

  • RE: Database design issue, what to do?

    I guess it is a design issue where to put your logic, and this may not be good advice on a database forum - but I like to keep the...

    Thorbjorn Kvam,
    Project manager and DBA (design) at Payex (http://www.payex.com)

  • RE: Delete historical data little by little and often, or a huge bulk more seldom?

    ab5sr (3/3/2009)


    I was at a client with a similar situation. For their application, constantly searching for data across tables such as this in the OLTP environment resulted in poor performance;...

    Thorbjorn Kvam,
    Project manager and DBA (design) at Payex (http://www.payex.com)

  • RE: Delete historical data little by little and often, or a huge bulk more seldom?

    Hey, thanks for the replies.

    We have the enterprise edition - and runs an online payment gateway, so we have traffic around the clock - no real "slow" period. The...

    Thorbjorn Kvam,
    Project manager and DBA (design) at Payex (http://www.payex.com)

Viewing 14 posts - 16 through 30 (of 30 total)