Access Database Horror

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Access Database Horror

    PLEASE HELP ME. It takes about 21 seconds to bring up a form which has 24
    input fields (7 of which are drop down fields that brings up selection items
    from the access database such as mfg, vendor, bldg #, etc.). The access
    database is not big at all.

    I'm running CFMX 6.1 on a stand alone W2K Server and connecting to MS Access
    2000 database, which is also on the server. I added my datasource from the
    CFMX Administrator with Access as my datasource and everything checked fine. I
    have 7 drop down fields on my form such what you see below: Can someone help
    me with this incredibly slow performance. By the way my server has plenty of
    space and ram.

    <cfquery name=?mfg_name? datasource=?eeeproj?>
    SELECT distinct manufacturer
    FROM JWST_Table
    ORDER BY manufacturer
    </cfquery>

    <SELECT NAME = ?manufacturer?>
    <OPTION SELECTED VALUE = ??> <CFOUTPUT QUERY=?mfg_name?>
    <OPTION VALUE = ?#manufacturer#?>#manufacturer#
    </cfoutput>
    </select>
    :clock;:frown;

    wtodd Guest

  2. Similar Questions and Discussions

    1. Access Database
      Hello. We have a database that we does like to use in a movie. How can we do that? Need any special Xtra? Thanks for help Paul and Mike
    2. Shockwave HORROR
      I am trying to get onto Habbo Hotel.. any help? http://img157.imageshack.us/img157/2145/shockwave7kc.png
    3. php and apache horror on widows xp
      Hi, This question maybe asked a lot of times but I still can get apache and php working together. I tried allmost everything what can be found in...
    4. Write Access to Access DataBase
      I'm trying to update a Access Database from information gained from a ASPX page. The database will not update. I'm sure it is in some security...
    5. How to repair the horror of OS X
      I know there are some people who like OS X. Fine for them. This message isn't for them, and they should skip it now. I think OS X has destroyed...
  3. #2

    Default Re: Access Database Horror

    Well that is quite a basic query so maybe your db is not indexed very well. If
    this query changes rarely then you could always cache it, which will help
    immensely.

    <cfquery name=?mfg_name? datasource=?eeeproj? cachedwithin="#CreateTimeSpan(0,
    0, 30, 0)#">
    SELECT distinct manufacturer
    FROM JWST_Table
    ORDER BY manufacturer
    </cfquery>

    The bit I have highlighted in bold will save the query to memory for 30
    minutes before running it again. This means that the query is run the first
    time and then not checked again for 30 minutes. This will definitely make your
    page run quicker!

    Stressed_Simon Guest

  4. #3

    Default Re: Access Database Horror

    Thank you Stressed_Simon. The 'cachedwithin' did speed it up immensely. The
    database is new and perhaps you're right on it not being indexed correctly. So
    I will check with the creator. THANKS AGAIN.

    wtodd Guest

  5. #4

    Default Re: Access Database Horror

    You should also check your database design. If the [JWST_Table] table
    contains a unique list of manufacturers, then you do not need to use SELECT
    DISTINCT, which is typically slower than a regular SELECT. If the table does
    not contain unique manufacturers, then you would probably be better off having
    a separate table for Manufacturer information [Manufacturers]. Your selects on
    this table would be faster and you could use the ManufacturerID (numeric key)
    as a foreign key other related tables.

    mxstu Guest

  6. #5

    Default Re: Access Database Horror

    if you really don't want a access db horror story
    you may want to upgrade your data base to MSsql or MYSQL
    jorgepino 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