Re: Connections per second?

Поиск
Список
Период
Сортировка
От ARP
Тема Re: Connections per second?
Дата
Msg-id 031501c1eb97$ceff2020$0100a8c0@arp.homelinux.org
обсуждение исходный текст
Ответ на Connections per second?  (Alejandro Fernandez <ale@e-group.org>)
Список pgsql-general
I think it's simply impossible to have a persistent connection with CGI since the program is called and exited for each
HTTPrequest (or am I wrong ?). 
The only way to do that is either to develop an Apache module (sounds like reinventing the wheel to me), or using
mod_perlor mod_php and the simple "ready to use" interfaces they provide. 
In fact, it depends on how heavy your "must be fast" program will be to decide wether making it work as a CGI will
introducea big overhead relatively to the execution time or not. The longer the execution time will be, the more the
CGIway will tend not to reduce performance. 
That's my point of view, hope it helps
Arnaud


----- Original Message -----
From: "Alejandro Fernandez" <ale@e-group.org>
To: <pgsql-general@postgresql.org>
Sent: Tuesday, April 23, 2002 5:12 PM
Subject: [GENERAL] Connections per second?


Hi,

I'm writing a small but must-be-fast cgi program that for each hit it gets, it reads an indexed table in a postgres
databaseand writes a log to a file based on the result. Any idea how many hits a second I can get to before things
startcrashing, or queuing up too much, etc? And will postgres be one of the first to fall? Do any of you think it can
handle2000 hits a second (what I think I could get at peak times) - and what would it need to do so? Persistent
connections?Are there any examples or old threads on writing a similar program in C with libpq? 

Thanks,

Ale

--
Alejandro Fernandez
Electronic Group Interactive
--+34-65-232-8086--

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly



В списке pgsql-general по дате отправления:

Предыдущее
От: Alban Médici
Дата:
Сообщение: Plpgsql get record value without colunm name ???
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: problems with non-trust authentication methods in 7.3devel?