pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Andreas Joseph Krogh <andreas@visena.com>
To: pgsql-performance@postgresql.org
Subject: Re: Poor performance when deleting from entity-attribute-value type master-table
Date: Mon, 09 Feb 2015 14:04:38 -0800
Message-ID: <54D92EF6.3080409@agliodbs.com> (raw)
In-Reply-To: <WM!c3ec9a4290e499dbf5df39f6b1b10e4f829400b78422be83fe7a9765cf754dd07b7c40033dab33f57b635e224a249d68!@asav-3.01.com>
References: <VisenaEmail.6a.6ef5c9caf9b77096.14b702ca7f3@tc7-visena>
	<WM!c3ec9a4290e499dbf5df39f6b1b10e4f829400b78422be83fe7a9765cf754dd07b7c40033dab33f57b635e224a249d68!@asav-3.01.com>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>

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



view thread (5+ messages)

Message-ID: <54D92EF6.3080409@agliodbs.com>
Permalink:  ../54D92EF6.3080409@agliodbs.com/
Also on:    postgresql.org/message-id/54D92EF6.3080409@agliodbs.com

 · 

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: josh@agliodbs.com, andreas@visena.com
  Subject: Re: Poor performance when deleting from entity-attribute-value type master-table
  In-Reply-To: <54D92EF6.3080409@agliodbs.com>

* 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