• Criteria — best practices (All versions)

    Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Criteria — best practices (All versions)

    Author
    Topic
    #403199

    We chose to roll our own application to track Help Desk trouble tickets. The database is in SQL Server 2000. The original plan was to cobble together a quick Access front end with linked tables as a stop-gap measure until we could develop a web-based GUI. Being the shoe maker

    Viewing 3 reply threads
    Author
    Replies
    • #809069

      I wonder what the speed would be like if you had a special table devoted to the IN values, then join your other table to this table.

      • #809150

        It should be faster if it would filter using a join rather than a WHERE condition.

      • #809151

        It should be faster if it would filter using a join rather than a WHERE condition.

    • #809070

      I wonder what the speed would be like if you had a special table devoted to the IN values, then join your other table to this table.

    • #809082

      Actually, it looks like what you experienced was the fact that in SQL, NOT is much slower because it has to look at the entire recordset before it can return a list, while EQUALS can use the indexes to return the values that apply. The same applies to IN and NOT IN. In is quite fast, while NOT IN is slow. shrug It’s harder to prove a negative.

      If I read your post correctly, you would be returning only the items that are Assigned/In Process. Does that include Open as a pre-condition? What about any that haven’t gotten to 2 yet? Using < 4 would probably give you better performance that 4.

    • #809083

      Actually, it looks like what you experienced was the fact that in SQL, NOT is much slower because it has to look at the entire recordset before it can return a list, while EQUALS can use the indexes to return the values that apply. The same applies to IN and NOT IN. In is quite fast, while NOT IN is slow. shrug It’s harder to prove a negative.

      If I read your post correctly, you would be returning only the items that are Assigned/In Process. Does that include Open as a pre-condition? What about any that haven’t gotten to 2 yet? Using < 4 would probably give you better performance that 4.

    Viewing 3 reply threads
    Reply To: Criteria — best practices (All versions)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: