Results 1 to 4 of 4

Thread: Connection Pooling.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2018
    Location
    Krähental
    Posts
    65

    Connection Pooling.

    I understand the reason for connection pooling.

    But how is the pool managed? If a user starts more than one instance of my application does each instance of the application have its own private pool or is the pooled shared between instances.

    What about if multiple users are running the application in an RDP server. Are all instances totally separate or could they be sharing the same connection pool?

    Thanks guys

  2. #2
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,678

    Re: Connection Pooling.

    I imagine part of this depends on the underlying database / provider...

    Pooling would normally not be done between applications, therefore if you had multiple apps (or multiple instances due to RDP etc) then you would have a separate pool for each server.

    Pooling would normally also be tied to the user identity used to connect to the database, allowing different users to share a single connection would play havoc with the security model of any database!

    https://learn.microsoft.com/en-us/do...ection-pooling explains how it works for SQL server, just as a point of interest.

  3. #3
    Angel of Code Niya's Avatar
    Join Date
    Nov 2011
    Posts
    8,683

    Re: Connection Pooling.

    From the link posted by PD above:-
    Connections are pooled per process, per application domain, per connection string and when integrated security is used, per Windows identity. Connection strings must also be an exact match; keywords supplied in a different order for the same connection will be pooled separately.
    Treeview with NodeAdded/NodesRemoved events | BlinkLabel control | Calculate Permutations | Object Enums | ComboBox with centered items | .Net Internals article(not mine) | Wizard Control | Understanding Multi-Threading | Simple file compression | Demon Arena

    Copy/move files using Windows Shell | I'm not wanted

    C++ programmers will dismiss you as a cretinous simpleton for your inability to keep track of pointers chained 6 levels deep and Java programmers will pillory you for buying into the evils of Microsoft. Meanwhile C# programmers will get paid just a little bit more than you for writing exactly the same code and VB6 programmers will continue to whitter on about "footprints". - FunkyDexter

    There's just no reason to use garbage like InputBox. - jmcilhinney

    The threads I start are Niya and Olaf free zones. No arguing about the benefits of VB6 over .NET here please. Happiness must reign. - yereverluvinuncleber

  4. #4
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,684

    Re: Connection Pooling.

    I don't see 'MARS' in that article.
    Is something that can be taken in consideration. https://learn.microsoft.com/en-us/do...ve-result-sets
    I'm seeing a web config we have that states: MultipleActiveResultSets=True;Pooling=False , I'm sure we had some pooling issues that is why we deactivated it but I can't be sure when and why. Would worth if someone has some insights.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width