Re: Using a GIN index on an integer array to model sets of tags - Mailing list pgsql-general

From T. E. Lawrence
Subject Re: Using a GIN index on an integer array to model sets of tags
Date
Msg-id D587E3E7-0721-47FD-AFFC-9C3635E2C64B@icloud.com
Whole thread Raw
In response to Using a GIN index on an integer array to model sets of tags  (Mike Jarmy <mjarmy@gmail.com>)
List pgsql-general
> I am researching how to set up a schema for querying a set of tags
> associated with an object.

I would be interested in hearing your conclusions.

I am currently researching in a similar direction.

We have streaming replication where the slaves are used for data mining, storing currently about 100m objects and
expectedto grow in direction of 1-2b or more. 

While part of the data is stored in a classic RDBM model, there are "soft" properties, for which we are looking for
"soft"and in the same time, if possible, searchable/indexable storage. 

So far I have mostly looked into hstore and JSON, but arrays are an interesting option, as well.

The only conclusion which we have reached so far is that we should divorce the core storage from search optimization
andfrom versioning. 

T.E.L.


pgsql-general by date:

Previous
From: Mike Jarmy
Date:
Subject: Using a GIN index on an integer array to model sets of tags
Next
From: Adrian Klaver
Date:
Subject: Re: 9.2 streaming replication issue and solution strategy