strange behaviour of databases

  • I have query which runs for 1.36min on a database A of 1.6TB but the same query runs for 7 hrs on a database B of 600GB.

    How do i troubleshoot to improve performance on database B, I am sure its nothing to do with query tuning as the same query runs faster on larger database.

    PS : Both databases are 100% identical with respect to layout,indexes etc.

  • are the stats up to date? indexes fragmented.?do the queries return the same amount of data?

    check to see if the query plans are the same on the two databases.

    ---------------------------------------------------------------------

  • What about hardware differences? CPU/Memory/Disk Layout? What about usage? Number of users/requests per server?

  • 1) compare the execution plans ! (and statistics)

    2) is the hardware configration the same ?

    ( cpu , ram, disk , io chanels,..)

    3) are these both dedicated sqlserver servers ?

    4) other userdatabases ?

    5) number of parallel users ?

    Johan

    Learn to play, play to learn !

    Dont drive faster than your guardian angel can fly ...
    but keeping both feet on the ground wont get you anywhere :w00t:

    - How to post Performance Problems
    - How to post data/code to get the best help[/url]

    - How to prevent a sore throat after hours of presenting ppt

    press F1 for solution, press shift+F1 for urgent solution 😀

    Need a bit of Powershell? How about this

    Who am I ? Sometimes this is me but most of the time this is me

  • I agree with what everyone else has said, and, I wouldn't discount query tuning. It might be working OK with the set of data in one database and poorly with the set of data in another, but the problem doesn't have to be statistics, or index fragmentation. It can be the code.

    "The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
    - Theodore Roosevelt

    Author of:
    SQL Server Execution Plans
    SQL Server Query Performance Tuning

Viewing 5 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic. Login to reply