ColdFusion / SQL Server performance issue

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

  1. #1

    Default ColdFusion / SQL Server performance issue

    We are experiencing an issue with ColdFusion MX7, and SQL Server 2000. This
    issue is regarding the performance problem that can arise when connecting a
    Java application to a SQL Server 2000 database. We found a fix in the
    Knowledgebase, however it did not correct the problem that we are experiencing.
    The site that we are running has a table with about 27000 records in it which
    is accessed every time that a person browses a page on the site (the query is a
    unique find). Subsequently the entire site is slow with about 3 to 4 second
    response time between page draws. We commented out the reference to the table,
    and the site response time is instantaneous.
    However this query is required for the site. What can we do to increase the
    access time of the site and solve this issue?

    eculpepper Guest

  2. Similar Questions and Discussions

    1. Performance issue
      I have an array with around 40 different url values in it. Im trying to cfhttp each URL in turn, and then parse the contents of each URL one by one....
    2. Linux server running coldfusion MX 7 jrApache/Brokenpipe issue
      We are having a small issue that has suddenly started appearing on our Linux server running Coldfusion MX7, has anyone seen this error before and...
    3. 7.x to 9.x Performance issue in the extreme
      Greetings, The problem: I run an identical program on Server A and Server B. On Server A the program runs in 12 seconds. On Server B it takes 1.5...
    4. Performance Issue using SQLJ
      Hi. We're looking at using SQLJ to see how we could incorporate it into our environment and achieve better throughput and cost savings over using...
    5. Iplanet LDAP server on Solaris 8. Performance issue
      Hi everybody I have set an iplanet Ldap directory server with 170,000. I am very worried about its performance. When I search for an entry with an...
  3. #2

    Default Re: ColdFusion / SQL Server performance issue

    What are you selecting from this reference table? Is your query and database
    optimized? For instance, are the fields that are referenced in the WHERE clause
    or the JOIN indexed, and are you not using any conversion functions on your
    joined fields, etc.?

    Phil

    paross1 Guest

  4. #3

    Default Re: ColdFusion / SQL Server performance issue

    The query is a simple one.



    SELECT iKeyID from Table where Table.iKeyID = 1



    WHERE iKeyID is the primary unique index. I do not believe that the issue is
    with the query. It is with the java sql driver that uses Unicode encode which
    makes SQL Server do a table scan. We have told CF to not use Unicode encoding
    but I do not believe that it is using that setting.



    eculpepper Guest

  5. #4

    Default Re: ColdFusion / SQL Server performance issue

    Create and execute the query as a stored procedure?

    create procedure myname
    (
    @var integer
    )
    as
    SELECT iKeyID from Table where Table.iKeyID = @var

    or use a cfqueryparam tag in the where clause?

    SELECT iKeyID from Table where Table.iKeyID = <cfqueryparam
    cfsqltype="cf_sql_integer" value="#var#">

    Scott_thornton 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