Performance Enhancing in SQL 2000 Opinion

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default Performance Enhancing in SQL 2000 Opinion

    Hey guys, I was told specifying dbo.tablename for each field in a query could
    enhance performance. Even though I assume this would have more impact on larger
    queries, I've given this theory a shot with the below two queries and turned on
    DEBUG in CFADMIN. I don't know a difference, both queries are taking 15ms to
    run.

    Do you all follow the practice of owner.tablename.field?



    <cfquery name="test" datasource="#application.dsn#">
    SELECT d.Department_ID,
    d.Lob_ID,
    e.ID,
    e.First_Name,
    e.Last_Name
    FROM Lob_Department_TBL d
    INNER JOIN Employees e ON d.Department_ID = e.Dept_ID
    WHERE d.Lob_ID = 2
    ORDER BY e.First_Name
    </cfquery>

    <cfquery name="test2" datasource="#application.dsn#">
    SELECT dbo.lob_department_tbl.Department_ID,
    dbo.lob_department_tbl.lob_ID,
    dbo.employees.ID,
    dbo.employees.first_name,
    dbo.employees.last_name
    FROM Lob_Department_TBL
    INNER JOIN Employees ON dbo.lob_department_tbl.Department_ID =
    dbo.employees.dept_ID
    WHERE dbo.lob_department_tbl.lob_ID = 2
    ORDER BY dbo.employees.first_name
    </cfquery>

    dj shane Guest

  2. Similar Questions and Discussions

    1. enhancing datefield input type
      I have been looking for a way to enhance the coldfusion input "datefield" in my coldfusion flash form. My basic problem is this: I need to make...
    2. enhancing the dropdownlist
      i need to enhance the dropdownlist by adding a property which is bound to the data source. this should keep the view state on a post back. please...
    3. ASP / SQL 2000 performance problems
      I am working with a CMS system that runs on a SQL 2000 db. The server the website sits on is the the DMZ and the SQL server resides in the internal...
    4. Opinion which to get?
      I'm considering getting a Mac for my I.T company. I currently have a PC notebook but the display starting going after 2 months of use. It was...
    5. XP poor performance on 2000 domain
      I have a couple of XP Pro machines on a 2000 domain and they exhibit various behaviors, described below, culminating in slow performance. Login...
  3. #2

    Default Re: Performance Enhancing in SQL 2000 Opinion

    doesn't actually matter in any application we have created

    you can get a slight performance boost by calling columns in the same order
    they appear in the DB, and you can get a substantial boost (depending on query
    sizes) if you cache the queries that are always the same for everyone over a
    period of time using the cachedWithin attribute.



    SafariTECH Guest

  4. #3

    Default Re: Performance Enhancing in SQL 2000 Opinion

    Honestly, I never use "owner." unless it is required. IMO, unless your
    reference or article can prove there is a measurable performance difference
    using the "owner" qualifier, it is not really something I would worry about.
    There are more important areas to focus on, ones that can signifigantly impact
    performance... by more than a millisecond or two.

    IMO, using "owner.tablename.field" makes large queries difficult to read. I
    prefer using aliases instead.



    mxstu Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139