Forum Replies Created

Viewing 15 posts - 121 through 135 (of 233 total)

  • RE: A tale of two query plans

    LOL! Doing three things at once and wasn't thinking.

    INCLUDED Patient_Info_Field_ID and Field_Value and now it says it is using the index.

    Unfortunately, it didn't really do anything performance wise as...

    "Beliefs" get in the way of learning.

  • RE: A tale of two query plans

    I tried adding the index on Entry_Sequence on the Patient_Info_Fields table but it didn't use it.

    "Beliefs" get in the way of learning.

  • RE: A tale of two query plans

    Sorry, that's the wrong view definition. That's one I was playing with that didn't work. Here's the live version.

    "Beliefs" get in the way of learning.

  • RE: A tale of two query plans

    Dave Ballantyne (5/10/2010)


    Whats the Patient_info_field table ? Its table scanning , is there no indexes on that ?

    Can you post the view definition to ?

    That's the table referenced in the...

    "Beliefs" get in the way of learning.

  • RE: A tale of two query plans

    Grant Fritchey (5/10/2010)


    Robert Frasca (5/10/2010)


    Grant Fritchey (5/10/2010)


    GilaMonster (5/10/2010)


    I'm probably not going to get a chance to look at this, got a lot of work this week. Maybe Grant feels like...

    "Beliefs" get in the way of learning.

  • RE: A tale of two query plans

    Grant Fritchey (5/10/2010)


    GilaMonster (5/10/2010)


    I'm probably not going to get a chance to look at this, got a lot of work this week. Maybe Grant feels like a challenge.

    I don't have...

    "Beliefs" get in the way of learning.

  • RE: A tale of two query plans

    Sorry. No coffee yet.

    This is one you looked at Friday. I've added the "good" query plan as well.

    "Beliefs" get in the way of learning.

  • RE: Rebuild index versus Update Statistics

    GilaMonster (5/7/2010)


    23 rows... How big are the rows? If all 23 will fit on a single page, then you're right, there's no point.

    Have you tried the divide and conquer? Insert...

    "Beliefs" get in the way of learning.

  • RE: Rebuild index versus Update Statistics

    Thanks for the suggestion. That is the table with 23 rows in it and I tried re-working the view (to reference the primary key) that is doing the recursive...

    "Beliefs" get in the way of learning.

  • RE: Rebuild index versus Update Statistics

    Okay, this problem has taken on a new dimension. Even when I rebuild the statistics the query still performs poorly on one database but works fine on the seven...

    "Beliefs" get in the way of learning.

  • RE: Inner Join v/s WHERE Col IN (select col from dbo.UDF_Function)

    Grant Fritchey (5/6/2010)


    Robert Frasca (5/6/2010)


    Grant Fritchey (5/5/2010)


    Robert Frasca (5/5/2010)


    My experience is that function references in the FROM clause, i.e. inner joins, usually dramatically outperform function references in the WHERE clause...

    "Beliefs" get in the way of learning.

  • RE: Inner Join v/s WHERE Col IN (select col from dbo.UDF_Function)

    Grant Fritchey (5/5/2010)


    Robert Frasca (5/5/2010)


    My experience is that function references in the FROM clause, i.e. inner joins, usually dramatically outperform function references in the WHERE clause because the WHERE clause...

    "Beliefs" get in the way of learning.

  • RE: Rebuild index versus Update Statistics

    Thanks for the reply. I tried the recompile thing without luck. Even though we rebuild the indexes every night, the only thing that makes the problem go away...

    "Beliefs" get in the way of learning.

  • RE: Inner Join v/s WHERE Col IN (select col from dbo.UDF_Function)

    Thanks for the tip, I will. I have the magazine but hadn't had a chance to look at it or the e-version yet.

    "Beliefs" get in the way of learning.

  • RE: Inner Join v/s WHERE Col IN (select col from dbo.UDF_Function)

    My experience is that function references in the FROM clause, i.e. inner joins, usually dramatically outperform function references in the WHERE clause because the WHERE clause must execute the function...

    "Beliefs" get in the way of learning.

Viewing 15 posts - 121 through 135 (of 233 total)