Forum Replies Created

Viewing 15 posts - 1 through 15 (of 28 total)

  • RE: Same Execution Plan different stats

    Many thanks Dear DesNorton for your time:
    As I mentioned before all the objects are identical (now) after I added a missing (unneeded) index 

    ActivityType    PK_ActivityType    CLUSTERED    1    1    0    LicenseeId,ActivityTypeId    NULL    NULL
    ActivityType    ix_ActivityType_ExternalId    NONCLUSTERED    0    0    0    LicenseeId,ExternalId    NULL    NULL

  • RE: Same Execution Plan different stats

    anvegger - Friday, October 19, 2018 8:18 AM

    Good point - I do my best to check it out Thanks Jeff!

    Used a...

  • RE: Same Execution Plan different stats

    llefebvre7 - Friday, October 19, 2018 8:14 AM

    The cached plan size is different, why?
    Do you have Query Store on for both DBs?
    Are...

  • RE: Same Execution Plan different stats

    Jeffrey Williams 3188 - Friday, October 19, 2018 8:09 AM

    Before you do that try schema qualifying all tables in the query.

    Good point...

  • RE: Same Execution Plan different stats

    Yes you right Jeff - my next logical step would be to sync data in both cases (databases) and make sure that I eliminate or prove the impact of a...

  • RE: Same Execution Plan different stats

    BTW that INDEX hint along with an INDEX itself did not change execution plan or stats - simply used a different index to produce the same amount of data consuming...

  • RE: Same Execution Plan different stats

    I know you have said you updates stats, but did you do the update stats on both databases AFTER you restored them to this instance?
    AV: Yes -...
  • RE: Same Execution Plan different stats

    Jeff Moden - Thursday, October 18, 2018 6:54 PM

    Try removing that hint (which is actually a directive) and see...

  • RE: Same Execution Plan different stats

    DesNorton - Thursday, October 18, 2018 10:33 PM

    As Jeff stated, the issue could be with the index hint.It could also be...

  • RE: Same Execution Plan different stats

    anvegger - Thursday, October 18, 2018 2:58 PM

    Schedule    175982         45016 KB    22904 KB    21928 KB    184 KB  -- Database A
    Schedule    179796         46136 KB    23384 KB    22344...

  • RE: Same Execution Plan different stats

    anvegger - Wednesday, October 17, 2018 1:21 PM

    Database A:
    Table 'Schedule'. Scan count 66000, logical reads 216829, physical reads 19, read-ahead reads...

  • RE: Same Execution Plan different stats

    Jeff Moden - Thursday, October 18, 2018 5:53 PM

    Doing a DELETE isn't the way to fix this problem.  Fixing...

  • RE: Same Execution Plan different stats

    Jeffrey Williams 3188 - Thursday, October 18, 2018 5:38 PM

    It isn't the difference in number of rows in those tables -...

  • RE: Same Execution Plan different stats

    That would of been my thought as well but unfortunately I don't see that right in front of my query: everything looks very strait forward - especially the root :...

  • Viewing 15 posts - 1 through 15 (of 28 total)