SELECT from one table hangs browser

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

  1. #1

    Default SELECT from one table hangs browser

    Hi,

    Recently when loading data from one msaccess table from dozens in an access
    database causes the web page hang, then eventually time out when the CF timeout
    is reached. Looking at the server, the CF ODBC service, swsoc.exe, jumps from
    3mb to 70mb and runs continually at 99% on the server. I have to kill the
    service and restart it.

    I'm running CF MX 6, with latest updater applied.

    I've restored an earlier version of the DB, repaired and compacted it, copied
    off the server and back, rebooted server etc but cannot isolate the problem.

    It only does it to one table, (users), which has 1398 rows. It's not the
    biggest table in the DB either. Total DB size is about 3 mb.

    Has anyone seen this before or know why it happens and/or how to fix this?

    thanks
    Tanya

    Rustywater Guest

  2. Similar Questions and Discussions

    1. Browser hangs with ASP
      In my web application, client browsers (IE6) get data by creating ADO recordsets that open up ASP pages on the server. The server queries a SQL...
    2. Browser Hangs
      I have an application that launches a pop up window containing flash. On exiting the pop up window the browser (parent window) post's data back to...
    3. Browser hangs when posting sometimes
      Hi, We are experiencing a frequent problem with an ASP.NET application using IE. We have a registration process that involves an Infragistics...
    4. Windows 2000 SP 4; Browser Hangs
      I installed SP4 for Windows 2000. Prior to the upgrade my system was at SP3 and I was able to run ASP scripts from my browser just fine. For...
    5. Browser hangs at download
      Marc wrote on 04 jul 2003 in microsoft.public.inetserver.asp.general: Systems do not browse, browsers do. Does a clients browser stop working...
  3. #2

    Default Re: SELECT from one table hangs browser

    It's most probably got something to do with the way you access the database. Could we have a look at your query?


    BKBK Guest

  4. #3

    Default Re: SELECT from one table hangs browser

    Here's the query...

    <cfquery name="get_users" datasource="#Application.Datasource#">
    select users.uid_user, full_name from users, user_roles
    <cfif #get_club.show_inactive# is False and get_active.is_committee is false>
    where status = true
    </cfif>

    <cfif #session.sequence# is True>
    order by first_name, last_name
    <cfelse>
    order by last_name, first_name
    </cfif>
    </cfquery>

    <cfif isDefined('URL.user')>
    <cfset FORM.user=#URL.user#>
    <cfelse>
    <cfif Not isDefined('FORM.user')>
    <cfset FORM.user=#get_users.uid_user#>
    </cfif>
    </cfif>

    This query is included in several other scripts. It's a standard select list.
    I've found the problem. I was trying to join users with another table
    user_roles; something I've done plenty of times. I will post a new thread
    covering what that problm is. But for this one, the saga of the "hanging
    swsoc.exe service" is solved... Kept me up all night tho :-)

    Thanks for your help.


    Rustywater Guest

  5. #4

    Default Re: SELECT from one table hangs browser

    For what it is worth, what you have is a Cartesian join, since you have nothing
    in your where clause where you relate the two tables. Such a join will return a
    number of rows equal to the product of the number of rows in each table. Can be
    pretty big if either table is large.

    Phil

    paross1 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