How to limit connection in database

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

  1. #1

    Default How to limit connection in database

    Hi,
    I have a CFM Page with 2 queries,I need to limit the no of connections
    established to the database server..has it crashes by servers.Is there a way i
    can limit the no of times a viewer views a page.
    I tried limiting the connection in the Datasource as well as cachedwithin .No
    use

    I need something like a user is shown a cached paged from the server...and
    updates whenever the database updates.

    Thx
    AL

    alagukannan Guest

  2. Similar Questions and Discussions

    1. Reaching connection limit before it should
      I have FMS installed on our live server with a brand new Professional Edition licence installed, currently set up for unlimited bandwidth and up to...
    2. limit number of concurrent connection
      is there a way for me to limit the number of concurrent connections to the media server. my upload bandwitdh is about a meg so having too many...
    3. Detect connection limit in FCS
      We just bought FCS for our K-12 schools to stream audio/video flv's. Our license is only for 2500 concurrent streams. Is there any way to detect...
    4. How to increase connection limit beyond 40?
      I'm having a bottleneck on the maximum number of connections an ASP.NET app can call the same web service simultaneously. The maximum number of...
    5. Inbound connection limit in XP Home
      No. its not possible. Only option is to upgrade to Server OS. Inbound Connections Limit in Windows XP...
  3. #2

    Default Re: How to limit connection in database

    Al,

    consider storing the results of the query in the session scope then do <cfif
    NOT isDefined()><cfquery></cfif>. this alone however will not force a re-query
    when data changes. But it will deffinitely reduce the load on the database. You
    could do the same in the application scope. I am surprised the cachedwithin
    didn't solve your problem, it should have cached your query in server memory.

    Henry

    hlevin 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