Re: [PERFORM] Help understanding indexes, explain, and optimizing

2006-03-06 Thread i.v.r.
Chris escribió: Have you done an 'analyze' or 'vacuum analyze' over these tables? A left outer join gets *everything* from the second table: > LEFT OUTER JOIN groups ON groups.id = locations.group_id > LEFT OUTER JOIN schools ON schools.location_id = locations.id So they will load everything f

[PERFORM] Help understanding indexes, explain, and optimizing a query

2006-03-06 Thread i.v.r.
Hi everyone, I'm experimenting with PostgreSQL, but since I'm no expert DBA, I'm experiencing some performance issues. Please take a look at the following query: SELECT /*groups."name" AS t2_r1, groups."id" AS t2_r3, groups."user_id" AS t2_r0, groups."pretty_url" AS t2_r2, locations."pos