Re: Poor performance when deleting from entity-attribute-value type master-table

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Andreas Joseph Krogh <andreas(at)visena(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Poor performance when deleting from entity-attribute-value type master-table
Date: 2015-02-09 22:04:38
Message-ID: 54D92EF6.3080409@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message sridhar bamandlapally 2015-02-10 03:53:35 Re: [PERFORM] <empty string> Vs NULL
Previous Message Andreas Joseph Krogh 2015-02-09 21:50:31 Re: Poor performance when deleting from entity-attribute-value type master-table