From: | Russell Smith <mr-russ(at)pws(dot)com(dot)au> |
---|---|
To: | Gavin Sherry <swm(at)linuxworld(dot)com(dot)au> |
Cc: | Bernd <bernd_pg(at)genedata(dot)com>, pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Select with qualified join condition / Batch inserts |
Date: | 2004-10-19 23:18:57 |
Message-ID: | 200410200918.57761.mr-russ@pws.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Fri, 15 Oct 2004 08:47 pm, Gavin Sherry wrote:
> On Fri, 15 Oct 2004, Bernd wrote:
>
> > Hi,
[snip]
> > Table-def:
> > Table "public.scr_well_compound"
> > Column | Type | Modifiers
> > ------------+------------------------+-----------
> > mat_id | numeric(10,0) | not null
> > barcode | character varying(240) | not null
> > well_index | numeric(5,0) | not null
> > id_level | numeric(3,0) | not null
> > compound | character varying(240) | not null
> > Indexes:
> > "scr_wcm_pk" PRIMARY KEY, btree (id_level, mat_id, barcode, well_index)
>
numeric is not optimized by postgresql like it is by Oracle. You will get much better
performance by changing the numeric types to int, big int, or small int.
That should get the query time down to somewhere near what Oracle is giving you.
Regards
Russell Smith.
[snip]
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Sabino Mullane | 2004-10-19 23:25:26 | Re: Does PostgreSQL run with Oracle? |
Previous Message | Tom Lane | 2004-10-19 22:39:48 | Re: futex results with dbt-3 |