pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PFC <lists@peufeu.com>
To: Andreas Kostyrka <andreas@kostyrka.org>
Cc: Arjen van der Meijden <acmmailing@tweakers.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: Postgres Benchmark Results
Date: Mon, 21 May 2007 23:35:14 +0200
Message-ID: <op.tso4w0p3cigqcu@apollo13> (raw)
In-Reply-To: <bfzdbQBLKRHL.1C30nvw2@heaven.kostyrka.org>
References: <bfzdbQBLKRHL.1C30nvw2@heaven.kostyrka.org>


> Well that matches up well with my experience, better even yet, file a  
> performance bug to the commercial support and you'll get an explanation  
> why your schema (or your hardware, well anything but the database  
> software used) is the guilty factor.

	Yeah, I filed a bug last week since REPEATABLE READ isn't repeatable : it  
works for SELECT but INSERT INTO ... SELECT switches to READ COMMITTED and  
thus does not insert the same rows that the same SELECT would have  
returned.

> but you know these IT manager journals consider mysql as the relevant  
> opensource database. Guess it matches better with their expection than  
> PG or say MaxDB (the artist known formerly as Sap DB).

	Never tried MaxDB.

	So far, my MyISAM benchmarks show that, while on the CPU limited case,  
Postgres is faster (even on small simple selects) , when the dataset grows  
larger, MyISAM keeps going much better than Postgres. That was to be  
expected since the tables are more compact, it can read indexes without  
hitting the tables, and of course it doesn't have transaction overhead.

	However, these good results are slightly mitigated by the massive data  
corruption and complete mayhem that ensues, either from "transactions"  
aborting mid-way, that can't be rolled back obviously, leaving stuff with  
broken relations, or plain simple engine bugs which replace your data with  
crap. After about 1/2 hour of hitting the tables hard, they start to  
corrupt and you get cryptic error messages. Fortunately "REPAIR TABLE"  
provides good consolation in telling you how much corrupt data it had to  
erase from your table... really reassuring !

	I believe the following current or future Postgres features will provide  
an interesting answer to MyISAM :

	- The fact that it doesn't corrupt your data, duh.
	- HOT
	- the new non-logged tables
	- Deferred Transactions, since adding a comment to a blog post doesn't  
need the same guarantees than submitting a paid order, it makes sense that  
the application could tell postgres which transactions we care about if  
power is lost. This will massively boost performance for websites I  
believe.
	- the patch that keeps tables in approximate cluster order

	By the way, about the ALTER TABLE SET PERSISTENCE ... for non-logged  
tables, will we get an ON RECOVER trigger ?
	For instance, I have counts tables that are often updated by triggers. On  
recovery, I could simply re-create the counts from the actual data. So I  
could use the extra speed of non-crash proof tables.

>
> Andreas
> 	
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faq
>





view thread (29+ messages)  latest in thread

Message-ID: <op.tso4w0p3cigqcu@apollo13>
Permalink:  ../op.tso4w0p3cigqcu@apollo13/
Also on:    postgresql.org/message-id/op.tso4w0p3cigqcu@apollo13

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: lists@peufeu.com, andreas@kostyrka.org, acmmailing@tweakers.net
  Subject: Re: Postgres Benchmark Results
  In-Reply-To: <op.tso4w0p3cigqcu@apollo13>

* 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