From: | Martin Foster <martin(at)ethereal-realms(dot)org> |
---|---|
To: | Matt Clark <matt(at)ymogen(dot)net>, PostgreSQL Performance <pgsql-performance(at)postgresql(dot)org> |
Subject: | Re: Restricting Postgres |
Date: | 2004-11-04 20:30:19 |
Message-ID: | 418A915B.5060600@ethereal-realms.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-performance |
Matt Clark wrote:
>>Correct the 75% of all hits are on a script that can take
>>anywhere from
>>a few seconds to a half an hour to complete. The script
>>essentially
>>auto-flushes to the browser so they get new information as it arrives
>>creating the illusion of on demand generation.
>
>
> This is more like a streaming data server, which is a very different beast
> from a webserver, and probably better suited to the job. Usually either
> multithreaded or single-process using select() (just like Squid). You could
> probably build one pretty easily. Using a 30MB Apache process to serve one
> client for half an hour seems like a hell of a waste of RAM.
>
These are CGI scripts at the lowest level, nothing more and nothing
less. While I could probably embed a small webserver directly into the
perl scripts and run that as a daemon, it would take away the
portability that the scripts currently offer.
This should be my last question on the matter, does squid report the
proper IP address of the client themselves? That's a critical
requirement for the scripts.
Martin Foster
Creator/Designer Ethereal Realms
martin(at)ethereal-realms(dot)org
From | Date | Subject | |
---|---|---|---|
Next Message | Pierre-Frédéric Caillaud | 2004-11-04 20:30:35 | Re: Restricting Postgres |
Previous Message | Thomas F.O'Connell | 2004-11-04 20:22:06 | Re: how to edit a function from psql? |
From | Date | Subject | |
---|---|---|---|
Next Message | Pierre-Frédéric Caillaud | 2004-11-04 20:30:35 | Re: Restricting Postgres |
Previous Message | Tom Lane | 2004-11-04 19:34:08 | Re: Anything to be gained from a 'Postgres Filesystem'? |