Re: [PERFORM] update performance

2004-05-25 Thread Richard Huxton
On Wednesday 11 February 2004 14:08, stefan bogdan wrote: > hello > i have postgres 7.3.2.,linux redhat 9.0 > a database,and 20 tables > a lot of fields are char(x) > when i have to make update for all the fields except index > postgres works verry hard > what should i've changed in configuration t

Re: [PERFORM] PostgreSQL caching

2004-05-25 Thread Marty Scholes
Vitaly, This looks like there might be some room for performance improvement... > MS> I didn't see the table structure, but I assume > MS> that the vote_avg and > MS> vote_count fields are in bv_bookgenres. > > I didn't understand you. vote_avg is stored in bv_books. Ok. That helps. The confusion

Re: [PERFORM] Interpreting vmstat

2004-05-25 Thread Robert Treat
On Tue, 2004-05-18 at 14:12, Doug Y wrote: > Run a query I've been having trouble with and watch the output of vmstat > (linux): > > $ vmstat 1 > procs memoryswap io system > cpu > r b w swpd free buff cache si sobibo incs u

Re: [PERFORM] PostgreSQL caching

2004-05-25 Thread Vitaly Belman
Hello Jochem and Marty, I guess I should have posted the table structure before =(: Table structure + Indexes - CREATE TABLE public.bv_books ( book_id serial NOT NULL, book_title varchar(255) NOT NULL, series_id int4, series_index int2, annotation_desc_id int4,

Re: [PERFORM] PostgreSQL caching

2004-05-25 Thread Jochem van Dieten
Vitaly Belman wrote: If you'll be so kind though, I'd be glad if you could spot anything to speed up in this query. Here's the query and its plan that happens without any caching: - QUERY ---