Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Open connections from web to dbase in asp.net

Open connections from web to dbase in asp.net

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netperformance
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rlorusso
    wrote on last edited by
    #1

    Hello, I have a small question. i have read that normally you should only have 1 connection open to the dbase and not a second one , or at least there has to be a good reason why the second one is open. i am develloping an application that everytime a user enters in his account opens and closes a connection, it does so for all the users that login in their account so if there where 4000 users it would open 4000 connections and miliseconds later close them again. should this be changed to an other process from wich the dbase is stored in memory? who can tell me? the application involves a lot of user loggin in constantly roberto lorusso

    G 1 Reply Last reply
    0
    • R rlorusso

      Hello, I have a small question. i have read that normally you should only have 1 connection open to the dbase and not a second one , or at least there has to be a good reason why the second one is open. i am develloping an application that everytime a user enters in his account opens and closes a connection, it does so for all the users that login in their account so if there where 4000 users it would open 4000 connections and miliseconds later close them again. should this be changed to an other process from wich the dbase is stored in memory? who can tell me? the application involves a lot of user loggin in constantly roberto lorusso

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      rlorusso wrote:

      i have read that normally you should only have 1 connection open to the dbase and not a second one

      Either the recommendation is written for applications that themselves doesn't handle multiple users, or it's implied that it's one connection per request. It's just because the application should be able to handle many requests that you should keep the number of connections per request as low as possible. --- b { font-weight: normal; }

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups