Re: [GENERAL] JSON vs Text + Regexp Index Searching

2014-02-25 Thread Eliot Gable
On Tue, Feb 25, 2014 at 3:13 PM, Eliot Gable wrote: > On Tue, Feb 25, 2014 at 11:17 AM, David Johnston wrote: > >> David Johnston wrote >> > >> > Eliot Gable-4 wrote >> >> I advocated creating a separate mapping table which >> >> maps the ID of these records to the other ID we are searching for

Re: [GENERAL] JSON vs Text + Regexp Index Searching

2014-02-25 Thread Eliot Gable
On Tue, Feb 25, 2014 at 11:17 AM, David Johnston wrote: > David Johnston wrote > > > > Eliot Gable-4 wrote > >> I advocated creating a separate mapping table which > >> maps the ID of these records to the other ID we are searching for and > >> performing a JOIN on the two tables with appropriate

Re: [GENERAL] JSON vs Text + Regexp Index Searching

2014-02-25 Thread David Johnston
David Johnston wrote > > Eliot Gable-4 wrote >> I advocated creating a separate mapping table which >> maps the ID of these records to the other ID we are searching for and >> performing a JOIN on the two tables with appropriate foreign key >> relationships and indices. However, I was ask to inste

Re: [GENERAL] JSON vs Text + Regexp Index Searching

2014-02-25 Thread David Johnston
Eliot Gable-4 wrote > I advocated creating a separate mapping table which > maps the ID of these records to the other ID we are searching for and > performing a JOIN on the two tables with appropriate foreign key > relationships and indices. However, I was ask to instead put the list into > a singl

Re: [GENERAL] JSON vs Text + Regexp Index Searching

2014-02-25 Thread Merlin Moncure
On Tue, Feb 25, 2014 at 9:08 AM, Eliot Gable wrote: > If we wanted to put an index on a JSON data type column whose values was a > simple array of IDs, what would the index look like, and how would we > construct the query to make use of it? For 9.0, your only option would be to use the intarray