From: | Denis Gasparin <denis(at)edinet(dot)it> |
---|---|
To: | "Sergey E(dot) Volkov" <sve(at)raiden(dot)bancorp(dot)ru>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: Re: Pgsql vs Interbase: Transaction benchmark |
Date: | 2001-06-06 14:14:13 |
Message-ID: | 5.1.0.14.0.20010606161058.00a65c60@10.1.1.2 |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
If this is the problem, is there a way to prepare the queryes in PGSQL?
I've also noticed that there is a little speed improvement when increasing
the number of WAL files...
Let me kwow...
Thank you
Denis
PS: i'm sorry for the late in replying, i have received the mail just now....
At 17.37 01/06/01, Sergey E. Volkov wrote:
>I think it's expected result.
>
>In interbase you are using prepared statements.
>PostgreSQL have got to parse, planing and etc. every time you pass a
>statement.
>
>"Denis Gasparin" <denis(at)edinet(dot)it> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ:
>news:5(dot)1(dot)0(dot)14(dot)0(dot)20010601161822(dot)00a90010(at)10(dot)1(dot)1(dot)2(dot)(dot)(dot)
> > The table definition is:
> > CREATE TABLE ADDRESS (
> > GROUPID INTEGER NOT NULL,
> > ADDRESSID INTEGER NOT NULL,
> > NAME VARCHAR(256) NOT NULL,
> > SURNAME VARCHAR(256) NOT NULL,
> > ADDRESS VARCHAR(256),
> > PHONE VARCHAR(256),
> > EMAIL VARCHAR(256),
> > FAX VARCHAR(256),
> > PRIMARY KEY(GROUPID,ADDRESSID)
> > );
> >
> > The explain command gives me these results:
> > explain SELECT * FROM ADDRESS1 WHERE GROUPID = 5 AND ADDRESSID = 1000;
> > NOTICE: QUERY PLAN:
> >
> > Index Scan using address1_pkey on address1 (cost=0.00..2.02 rows=1
>width=92)
> >
> > (PS: There are 100 groups of 10000 recors each => 1.000.000 records)
> >
> >
> > Denis
> >
> > At 16.14 01/06/01, Tom Lane wrote:
> > >Denis Gasparin <denis(at)edinet(dot)it> writes:
> > > > All the operations are perfomed in the same table with 1.000.000 of
> > > records
> > > > and the searches (those specified by the WHERE clause of SELECT and
> > > UPDATE)
> > > > are done only on the primary key of the table itself.
> > >
> > >Have you checked (with EXPLAIN) that you're actually getting indexscan
> > >plans?
> > >
> > > regards, tom lane
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>
>
>
>---------------------------(end of broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
From | Date | Subject | |
---|---|---|---|
Next Message | Mathieu Arnold | 2001-06-06 14:16:22 | Re: pg_dump problem |
Previous Message | Terry Fielder | 2001-06-06 13:57:02 | Default value for bit datatype |