Re: [PERFORM] Comparing user attributes with bitwise operators

2004-10-06 Thread Patrick Clery
Err... I REINDEX'ed it and it is now using the index. :) I'd still appreciate if anyone could tell me why this needs to be reindexed. Is the index not updated when the records are inserted? > On Wednesday 06 October 2004 12:55, I wrote: > > Another problem I should note is that when I first inser

Re: [PERFORM] Comparing user attributes with bitwise operators

2004-10-06 Thread Patrick Clery
Another problem I should note is that when I first insert all the data into the people_attributes table ("the int[] table"), the GiST index is not used: THE INDEX: "people_attributes_search" gist ((ARRAY[age, gender, orientation, children, drinking, education, ethnicity, eyecolor, haircolor, ha

Re: [PERFORM] Comparing user attributes with bitwise operators

2004-10-04 Thread Patrick Clery
ode that writes code" on a few occassions during the attribute "mapping" process. For example, keeping an associative array of all the attributes without fetching that data from the database each time. My advice: if you're not a masochist, use a template engine (or simply p

Re: [PERFORM] Comparing user attributes with bitwise operators

2004-09-18 Thread Patrick Clery
I have currently implemented a schema for my "Dating Site" that is storing user search preferences and user attributes in an int[] array using the contrib/intarray package (suggested by Greg Stark). But there are a few problems. a) query_int can't be cast to int4. b) query_int ca

[PERFORM] Comparing user attributes with bitwise operators

2004-09-16 Thread Patrick Clery
I'm working on a dating/personals/match-making site, that has used many different methods of "match-making", that all seem to be very slow. One I am attempting now that seems to be an efficient method of storage, but not the best for indexing, is using bitwise operators to compare one person's p