From: Neil Burrows <nburrows@gssec.bt.co.uk>
To: pgsql-interfaces@hub.org
Subject: Efficiency
Date: Tue, 21 Jul 1998 13:27:50 +0100
Message-ID: <001401bdb4a2$fa214d30$adcb9284@polkadot.gssec.bt.co.uk> (raw)
Hi,
I'm using Postgres as a backend to a web server. One particular database
can only be viewed by users and not modified.
When the user arrives at the site I want them to be told how many entries
are in a table. This will be done using Server side includes.
My question is however, is performing a COUNT operation every time a user
loads a page going to be very costly in terms of CPU usage?
The database will not be updated very often, so it would be possible just to
update a text file holding the number of records in the table.
Anyone know if the count operation would be a bad idea?
Neil
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: nburrows@gssec.bt.co.uk, pgsql-interfaces@hub.org
Subject: Re: Efficiency
In-Reply-To: <001401bdb4a2$fa214d30$adcb9284@polkadot.gssec.bt.co.uk>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox