From: Ivan Voras <ivoras@freebsd.org>
To: pgsql-performance@postgresql.org
Subject: Re: Unique values across a table of arrays - documents and tags
Date: Wed, 07 Nov 2012 16:38:43 +0100
Message-ID: <k7dva3$v2f$1@ger.gmane.org> (raw)
In-Reply-To: <370680F7-B322-4241-8C23-8EA528EFE159@teksol.info>
References: <k7duab$fn4$1@ger.gmane.org>
<370680F7-B322-4241-8C23-8EA528EFE159@teksol.info>
On 07/11/2012 16:34, François Beausoleil wrote:
> Le 2012-11-07 à 10:21, Ivan Voras a écrit :
>> Barring that, what would you suggest for efficiently handing a classic
>> structure like this (meaning documents with tags)?
>
> Can you structure it as the "classic" many to many pattern:
>
> documents <-> taggings <-> tags
Yes, that is as you said, a classic solution to a classic problem :)
If needed, this is the way I will do it, but for now I'm asking if
there's something that can be done to avoid creating another table or
two. The reason I'm asking is that I've often found that PostgreSQL can
do much more than I thought it can.
Attachments:
signature.asc (application/pgp-signature, 259B) download
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: ivoras@freebsd.org
Subject: Re: Unique values across a table of arrays - documents and tags
In-Reply-To: <k7dva3$v2f$1@ger.gmane.org>
* 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