pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hannu Krosing <hannu@tm.ee>
To: Mindaugas Riauba <mind@bi.lt>
Cc: pgsql-performance@postgresql.org
Subject: Re: Need advice about triggers
Date: Wed, 10 Sep 2003 18:05:35 +0300
Message-ID: <1063206334.3356.12.camel@fuji.krosing.net> (raw)
In-Reply-To: <053a01c37785$5f89d4d0$f20214ac@bite.lt>
References: <00be01c376cf$91510620$f20214ac@bite.lt>
	<200309091414.23458.dev@archonet.com>
	<00dc01c376d6$f9f99c30$f20214ac@bite.lt>
	<21262.1063118448@sss.pgh.pa.us>
	<053a01c37785$5f89d4d0$f20214ac@bite.lt>

Mindaugas Riauba kirjutas K, 10.09.2003 kell 13:21:

> 
> router_db=# explain analyze update ifdata set ifspeed=256000,
> ifreason='12121', iflastupdate=CURRENT_TIMESTAMP WHERE clientid='#0003904#';
>                                                          QUERY PLAN
> ----------------------------------------------------------------------------
> ------------------------------------------------
>  Index Scan using ifdata_clientid_key on ifdata  (cost=0.00..5.64 rows=1
> width=116) (actual time=0.17..0.36 rows=1 loops=1)
>    Index Cond: (clientid = '#0003904#'::character varying)
>  Total runtime: 1.70 msec
> (3 rows)

could you try the same query on similar table, where clientid is int4 ?

is it faster ?

does the performance degrade at a slower rate?

---------------
Hannu




view thread (10+ messages)

Message-ID: <1063206334.3356.12.camel@fuji.krosing.net>
Permalink:  ../1063206334.3356.12.camel@fuji.krosing.net/
Also on:    postgresql.org/message-id/1063206334.3356.12.camel@fuji.krosing.net

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: hannu@tm.ee, mind@bi.lt
  Subject: Re: Need advice about triggers
  In-Reply-To: <1063206334.3356.12.camel@fuji.krosing.net>
  References: <00be01c376cf$91510620$f20214ac@bite.lt> <200309091414.23458.dev@archonet.com> <00dc01c376d6$f9f99c30$f20214ac@bite.lt> <21262.1063118448@sss.pgh.pa.us> <053a01c37785$5f89d4d0$f20214ac@bite.lt> <1063206334.3356.12.camel@fuji.krosing.net>

* 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