From: | Gavin Sherry <swm(at)linuxworld(dot)com(dot)au> |
---|---|
To: | Hans-Jürgen Schönig <hs(at)cybertec(dot)at> |
Cc: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org, peter_e(at)gmx(dot)net |
Subject: | Re: PostgreSQL 7.3.3 and Intel C compiler |
Date: | 2003-07-22 05:47:40 |
Message-ID: | Pine.LNX.4.21.0307221543460.7267-100000@linuxworld.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, 21 Jul 2003, [ISO-8859-1] Hans-Jrgen Schnig wrote:
> > Why was SERIALIZABLE faster? I know SERIALIZABLE doesn't have the
> > rollback penalty in read-only queries, but I don't understand why it
> > would be faster.
> >
>
>
> To be honest I don't have the slightest idea. Maybe it has to do with
> snapshotting but I don't know precisely. In case of SERIALIZABLE all
> snapshots inside a transaction are the same - maybe this makes the big
> difference. I have no other explanation for that.
>
> There is one nifty detail which seems VERY strange to me: If
> serializable mode is set in postgresql.conf the system was 3 times
> faster (~ 7.5 sec. vs. 2.5sec). If serializable mode was set for every
> transaction (using set at the beginning of the transaction) serializable
> mode was as fast as read committed.
Hmm.
>
> We have done 90% cursor work and very simple queries (mostly queries
> such as "DECLARE CURSOR x FOR SELECT * FROM ... WHERE a = b").
> I have no idea why PostgreSQL behaves like that but it seems to be a
> really good tweak because in this mode we beat any other database
> including SQL server on Windows 2003 (2.9sec) and IBM DB2 on Linux (12.6
> seconds).
Are you testing the same type of cursors? Cursors do not behave
according to READ COMMITTED principles under Postgres. What are the
results for READ ONLY INSENSITIVE cursors with DB2 and MS SQL?
Thanks,
Gavin
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-07-22 06:04:33 | Re: PostgreSQL 7.3.3 and Intel C compiler |
Previous Message | Hans-Jürgen Schönig | 2003-07-22 05:34:20 | Re: dblink_ora - a first shot on Oracle ... |