Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YKwRk-00071O-BG for pgsql-performance@arkaria.postgresql.org; Mon, 09 Feb 2015 22:04:48 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YKwRj-00084w-Ct for pgsql-performance@arkaria.postgresql.org; Mon, 09 Feb 2015 22:04:47 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YKwRi-00084m-Cu for pgsql-performance@postgresql.org; Mon, 09 Feb 2015 22:04:46 +0000 Received: from mx-out.zmailcloud.com ([192.198.85.98] helo=mx-out-1.zmailcloud.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YKwRd-0005DH-HW for pgsql-performance@postgresql.org; Mon, 09 Feb 2015 22:04:44 +0000 Received: from smtp.01.com (smtp.01.com [10.10.0.43]) by mx-out-1.zmailcloud.com (Postfix) with ESMTP id 7F7035642A8; Mon, 9 Feb 2015 16:04:40 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 76C6E601A3; Mon, 9 Feb 2015 16:04:40 -0600 (CST) X-Virus-Scanned: amavisd-new at smtp-out-2.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-2.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xKs2uu-7Tc-P; Mon, 9 Feb 2015 16:04:40 -0600 (CST) Received: from smtp.01.com (localhost [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 5755860239; Mon, 9 Feb 2015 16:04:40 -0600 (CST) Received: from localhost (localhost [127.0.0.1]) by smtp-out-2.01.com (Postfix) with ESMTP id 40DD8601A3; Mon, 9 Feb 2015 16:04:40 -0600 (CST) X-Virus-Scanned: amavisd-new at smtp-out-2.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-2.01.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id deosRoEbzZrJ; Mon, 9 Feb 2015 16:04:40 -0600 (CST) Received: from [172.47.23.103] (50-0-89-53.dsl.dynamic.fusionbroadband.com [50.0.89.53]) by smtp-out-2.01.com (Postfix) with ESMTPSA id C592160238; Mon, 9 Feb 2015 16:04:39 -0600 (CST) Message-ID: <54D92EF6.3080409@agliodbs.com> Date: Mon, 09 Feb 2015 14:04:38 -0800 From: Josh Berkus Organization: PostgreSQL Experts Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Andreas Joseph Krogh , pgsql-performance@postgresql.org Subject: Re: Poor performance when deleting from entity-attribute-value type master-table References: In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 02/09/2015 01:12 PM, Andreas Joseph Krogh wrote: > Are there any ways around this or do people simply avoid having FKs in > schemas like this? Don't use EAV. It's a bad design pattern, especially for you, and you've just discovered one of the reasons why. (In fact, I am just today dismantling an EAV database and normalizing it, and so far application throughput is up 500%) -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance