Skip to content

Instantly share code, notes, and snippets.

@booo
Created November 25, 2011 11:00
Show Gist options
  • Select an option

  • Save booo/1393262 to your computer and use it in GitHub Desktop.

Select an option

Save booo/1393262 to your computer and use it in GitHub Desktop.
Hash Join (cost=5503530.38..29517441.81 rows=2474305 width=153)"
" Hash Cond: (nodes.user_id = users.id)"
" -> Merge Join (cost=5500446.44..29443221.60 rows=2474305 width=144)"
" Merge Cond: (nodes.id = public.relation_members.member_id)"
" -> Index Scan using pk_nodes on nodes (cost=0.00..22433054.50 rows=586568128 width=144)"
" -> Materialize (cost=5500446.44..5512817.96 rows=2474305 width=8)"
" -> Sort (cost=5500446.44..5506632.20 rows=2474305 width=8)"
" Sort Key: public.relation_members.member_id"
" -> HashAggregate (cost=5154375.57..5179118.62 rows=2474305 width=8)"
" -> Append (cost=0.00..5148189.81 rows=2474305 width=8)"
" -> Nested Loop (cost=0.00..45671.31 rows=1222 width=8)"
" -> Seq Scan on relations (cost=0.00..30374.88 rows=836 width=8)"
" Filter: (tags @> '"amenity"=>"pub"'::hstore)"
" -> Index Scan using idx_relation_members_relation_id on relation_members (cost=0.00..17.90 rows=32 width=16)"
" Index Cond: (public.relation_members.relation_id = public.relations.id)"
" Filter: (public.relation_members.member_type = 'N'::bpchar)"
" -> Nested Loop (cost=0.00..5077775.44 rows=2473083 width=8)"
" -> Nested Loop (cost=0.00..47489.61 rows=7742 width=8)"
" -> Seq Scan on relations (cost=0.00..30374.88 rows=836 width=8)"
" Filter: (tags @> '"amenity"=>"pub"'::hstore)"
" -> Index Scan using idx_relation_members_relation_id on relation_members (cost=0.00..17.90 rows=206 width=16)"
" Index Cond: (public.relation_members.relation_id = public.relations.id)"
" Filter: (public.relation_members.member_type = 'W'::bpchar)"
" -> Index Scan using idx_way_nodes_way_id on way_nodes (cost=0.00..533.79 rows=9276 width=16)"
" Index Cond: (way_nodes.way_id = public.relation_members.member_id)"
" -> Hash (cost=1708.42..1708.42 rows=110042 width=13)"
" -> Seq Scan on users (cost=0.00..1708.42 rows=110042 width=13)"
')"')""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment