Re: Questions on Tags table schema

From: Ron Mayer <rm_pg(at)cheapcomplexdevices(dot)com>
To: Jay Kang <arrival123(at)gmail(dot)com>
Subject: Re: Questions on Tags table schema
Date: 2007-07-30 20:40:31
Message-ID: 46AE4CBF.5090707@cheapcomplexdevices.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

Jay Kang wrote:
> Hello,
>
> I'm currently trying to decide on a database design for tags in my web
> 2.0 application. The problem I'm facing is that I have 3 separate tables
> i.e. cars, planes, and schools. All three tables need to interact with
> the tags, so there will only be one universal set of tags for the three
> tables.

It strikes me that some tsearch2 ts_vector like datatype might
work well for this; depending on the types of queries you're doing.

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Dimitri 2007-07-30 21:26:03 Re: Postgres configuration for 64 CPUs, 128 GB RAM...
Previous Message Nis Jørgensen 2007-07-30 20:05:14 Re: Slow query with backwards index scan