Re: Admission Control
От
Kevin Grittner
Тема
Re: Admission Control
Дата
Msg-id
4C28B0B00200002500032C22@gw.wicourts.gov
Ответ на
Re: Admission Control (Jesper Krogh)
Список
Дерево обсуждения
Admission Control "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Admission Control Robert Haas <robertmhaas@gmail.com>
Re: Admission Control Martijn van Oosterhout <kleptog@svana.org>
Re: Admission Control Robert Haas <robertmhaas@gmail.com>
Re: Admission Control Martijn van Oosterhout <kleptog@svana.org>
Re: Admission Control Josh Berkus <josh@agliodbs.com>
Re: Admission Control "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Admission Control Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Re: Admission Control Josh Berkus <josh@agliodbs.com>
Re: Admission Control Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Re: Admission Control Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Re: Admission Control "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Admission Control Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Re: Admission Control Robert Haas <robertmhaas@gmail.com>
Re: Admission Control Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Re: Admission Control Robert Haas <robertmhaas@gmail.com>
Re: Admission Control Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Re: Admission Control Robert Haas <robertmhaas@gmail.com>
Re: Admission Control Robert Haas <robertmhaas@gmail.com>
Re: Admission Control "Ross J. Reedstrom" <reedstrm@rice.edu>
Re: Admission Control Tom Lane <tgl@sss.pgh.pa.us>
Re: Admission Control Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Re: Admission Control "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Admission Control Robert Haas <robertmhaas@gmail.com>
Re: Admission Control "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Admission Control Jesper Krogh <jesper@krogh.cc>
Re: Admission Control "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Admission Control Jesper Krogh <jesper@krogh.cc>
Re: Admission Control "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Admission Control Josh Berkus <josh@agliodbs.com>
Re: Admission Control Simon Riggs <simon@2ndQuadrant.com>
Re: Admission Control "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
Re: Admission Control Robert Haas <robertmhaas@gmail.com>
Jesper Krogh wrote: > Sorry if I'm asking silly questions, but how does transactions and > connection pooler's interact? That depends a great deal on the pooler and its configuration, as well as your client architecture. Our shop gathers up the information needed for our database transaction and submits it to a server application which has all the logic needed to use that data to apply the transaction. We determined long ago that it is a Very Bad Idea for us to have an open database transaction which is waiting for a user to do something before it can proceed. > Say if you have 100 clients all doing "fairly inactive" database > work in transactions lasting a couple of minutes at the same time. I'm not sure what you mean by that. If you mean that part of a database transaction hits the database, and then it takes a while for the rest of the statements for the transaction to be generated (based on network latency or waits for user input), then it is hard to see how you can effectively use a connection pool. I have yet to see an environment where I think that's a good approach, but I haven't seen everything yet. :-) On the other hand, if the issue is that 100 transactions are fired off at the same time and it takes two minutes for them all to finish, unless you have *a lot* of CPUs and spindles, that's not efficient use of your resources. A connection pool might indeed help with that; you might start getting transactions back in one second, and have them all done in a minute and a half if you used a properly configured connection pool. -Kevin
В списке pgsql-hackers по дате отправления