
> someone notice anything wrong with this query? :) *slap forehead*
> 
> explain
>   SELECT distinct s.gid, s.created , 
> geo_distance(pd.location, '(-90.3690233918754,38.7788148984854)')
>     FROM status s, personal_data pd, relationship_wanted rw , 
> personal_ethnicity pe , personal_religion pr , personal_bodytype pb
>    WHERE s.active AND s.status != 0
>      AND (s.gid = pd.gid AND pd.gender = 0)
>      AND (s.gid = rw.gid AND rw.gender = 1)
>      AND geo_distance( pd.location, 
> '(-90.3690233918754,38.7788148984854)' ) <= 75
> ORDER BY geo_distance( pd.location, 
> '(-90.3690233918754,38.7788148984854)'),  s.created desc;

You have not restricted the join on pe, pr and pb leading to a cartesian
product ?

Andreas

Mon, 11 Sep 2000 10:52:05 +0200
Zeugswetter Andreas SB <ZeugswetterA@wien.spardat.at>
AW: man, I feel like a beginner ...