X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 07717D1CAFD for ; Tue, 1 Jun 2004 00:07:54 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 39557-09 for ; Tue, 1 Jun 2004 00:07:52 -0300 (ADT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id DC15DD1BB17 for ; Tue, 1 Jun 2004 00:07:50 -0300 (ADT) Received: (qmail 21785 invoked from network); 1 Jun 2004 03:07:47 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 1 Jun 2004 03:07:47 -0000 Subject: Re: Question about connections From: Dave Cramer Reply-To: pg@fastcrypt.com To: Vitaly Shimansky Cc: "pgsql-jdbc@postgresql.org" In-Reply-To: <003701c44238$cc7ecb80$9075b4d5@desertpentium> References: <003701c44238$cc7ecb80$9075b4d5@desertpentium> Content-Type: text/plain Organization: Cramer Consulting Message-Id: <1086059267.1585.9.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 31 May 2004 23:07:47 -0400 Content-Transfer-Encoding: 7bit X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/1 X-Sequence-Number: 10203 First, no there are no other possibilities. second, assuming the applet requires a constant connection to the db, then you need as many connections as you expect users. if that assumption isn't correct and you can use pooling then probably 20 connections would be sufficient as long as you can keep their tasks short, and return the connection quickly. Dave On Tue, 2004-05-25 at 05:15, Vitaly Shimansky wrote: > If i have applet in HTML code that connects to PostgreSQL using > JDBC(are there any other possibilities?), how many connections should > i set in Pg configuration file? Because i can't know how many > concurrent users(visitors) will be on my web page? > Thanks for answering! > Vitaly Shimansky > Riga, Latvia > > > P.S. If this address is not for that kind of questions please let me > know. > !DSPAM:40bbaab615671206916483! -- Dave Cramer 519 939 0336 ICQ # 14675561