Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id CACCF63EE2A for ; Wed, 3 Feb 2010 04:32:03 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 32214-05-2 for ; Wed, 3 Feb 2010 08:31:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f225.google.com (mail-fx0-f225.google.com [209.85.220.225]) by mail.postgresql.org (Postfix) with ESMTP id CAAE663EA20 for ; Wed, 3 Feb 2010 04:31:31 -0400 (AST) Received: by fxm25 with SMTP id 25so362253fxm.34 for ; Wed, 03 Feb 2010 00:31:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=WTPs7u/HepQoxKYl/Gn2vZLwPlgNnAnmBd+DDkJQ2W4=; b=XlmuahLv1/Vb6LwJMQFkF3Ayp/v6kBBh/cU157GE81O98j6DEKLM/tNHUoMEz7HfmE 8+xO92cGLgjG6EzbfGYGYMexr8mLSrqvugDuTyVQ55plgSph3CjdRVFHeVRMtrVurMv7 4ucaTQNAYFqAIVuwX0yb8UQjmLIXTbn30ukac= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=vq8HO64y/obtiI71R9QQ8slSWcB8N8c8DtCukOnzFWKbwlxwlrT3mUhQTbXvClCsse 6qj1S3+YiXPh1E67P7VLh1AoNb7nXYyBZw0swNznekxyIE7g5ZFg0idLHMwXjD3z5YHh SsRSCjFNq46rIlyeKLO8YIxZmrupz8s2irPgA= MIME-Version: 1.0 Received: by 10.239.163.74 with SMTP id o10mr1158181hbd.59.1265185890289; Wed, 03 Feb 2010 00:31:30 -0800 (PST) In-Reply-To: <20100202045701.93A404B1C73@mail175-236.sinamail.sina.com.cn> References: <20100202045701.93A404B1C73@mail175-236.sinamail.sina.com.cn> Date: Wed, 3 Feb 2010 02:31:30 -0600 Message-ID: <4297a9021002030031k773f25eu8b41c189fac488ec@mail.gmail.com> Subject: Re: the jokes for pg concurrency write performance From: J Sisson To: wyx6fox@sina.com Cc: pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.299 tagged_above=-10 required=5 tests=AWL=-1.300, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 201002/49 X-Sequence-Number: 37470 2010/2/1 : > * joke 1: insert operation would use a excluse lock on reference row by the > foreign key . a big big big performance killer , i think this is a stupid > design . > > * joke 2: concurrency update on same row would lead to that other > transaction must wait the earlier transaction complete , this would kill the > concurrency performance in some long time transaction situation . a stupid > design to , I hear that MySQL can work wonders in performance by bypassing the checks you're concerned about...don't count on the data being consistent, but by golly it'll get to the client FAAAAAAAST...