Skip site navigation (1) Skip section navigation (2)

Re: Using bitwise operator vs. mapping table

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: sfpug(at)postgresql(dot)org
Subject: Re: Using bitwise operator vs. mapping table
Date: 2007-10-16 15:08:06
Message-ID: 200710160808.07024.josh@agliodbs.com (view raw or flat)
Thread:
Lists: sfpug
Brian,

> They aren't terrible today and I suspect there is some low hanging
> optimization that could be collected by a real DBA.  However, we're
> growing and our users run quite a lot of reports which already do 5 or
> 6-way joins. 

Do you expect that the number of joins would actually increase, though?

> Are there any benefits other than speed in the denormalized approach?

No, so you only want to do it if you have a real performance problem which 
you've already tried to solve other ways.

If you want the "rollup" view of the attributes table, you can always create a 
custom aggregate which displays a list.

> Once I get through this PCI DSS effort I may hire someone to get that
> low-hanging fruit but I am trying to keep this other dev work moving
> forward in the mean time.

Good idea.

-- 
Josh Berkus
PostgreSQL @ Sun
San Francisco

In response to

sfpug by date

Next:From: Jon AsherDate: 2007-10-16 21:52:33
Subject: Postgres + OLAP
Previous:From: Brian GhidinelliDate: 2007-10-16 02:02:26
Subject: Re: Using bitwise operator vs. mapping table

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group