explain.depesz.com

PostgreSQL's explain analyze made readable

Result: qMdY : Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Q1; plan #sxXT; plan #BKRV; plan #jpuF; plan #VPjc; plan #eD51

Settings

Optimization path:

Optimization(s) for this plan:

# exclusive inclusive rows x rows loops node
1. 0.954 212,967.377 ↑ 2.6 267 1

Unique (cost=2,405.04..2,413.81 rows=702 width=14) (actual time=212,875.394..212,967.377 rows=267 loops=1)

  • Output: taxref.cd_ref, taxref.group2_inpn
2. 47.345 212,966.423 ↑ 2.6 267 1

Group (cost=2,405.04..2,410.30 rows=702 width=14) (actual time=212,875.388..212,966.423 rows=267 loops=1)

  • Output: taxref.cd_ref, taxref.group2_inpn
  • Group Key: taxref.cd_ref, taxref.group2_inpn
3. 120.452 212,919.078 ↓ 17.1 12,008 1

Sort (cost=2,405.04..2,406.79 rows=702 width=14) (actual time=212,875.378..212,919.078 rows=12,008 loops=1)

  • Output: taxref.cd_ref, taxref.group2_inpn
  • Sort Key: taxref.cd_ref, taxref.group2_inpn
  • Sort Method: quicksort Memory: 947kB
4. 101.504 212,798.626 ↓ 17.1 12,008 1

Nested Loop (cost=45.57..2,371.85 rows=702 width=14) (actual time=239.079..212,798.626 rows=12,008 loops=1)

  • Output: taxref.cd_ref, taxref.group2_inpn
5. 129.916 212,583.046 ↓ 17.1 3,002 1

Nested Loop (cost=45.14..2,261.40 rows=176 width=18) (actual time=239.054..212,583.046 rows=3,002 loops=1)

  • Output: synthese.id_synthese, taxref.cd_ref, taxref.group2_inpn
  • Inner Unique: true
6. 60.713 212,282.016 ↓ 17.1 3,002 1

Nested Loop (cost=44.72..2,149.02 rows=176 width=8) (actual time=239.001..212,282.016 rows=3,002 loops=1)

  • Output: synthese.cd_nom, synthese.id_synthese
7. 0.019 0.019 ↑ 1.0 1 1

Index Scan using pk_l_areas on ref_geo.l_areas (cost=0.42..8.44 rows=1 width=290) (actual time=0.014..0.019 rows=1 loops=1)

  • Output: l_areas.id_area, l_areas.id_type, l_areas.area_name, l_areas.area_code, l_areas.geom, l_areas.centroid, l_areas.source, l_areas.comment, l_areas.enable, l_areas.meta_create_date, l_areas.meta_update_date
  • Index Cond: (l_areas.id_area = 1234)
8. 212,210.914 212,221.284 ↓ 17.1 3,002 1

Bitmap Heap Scan on gn_synthese.synthese (cost=44.29..2,138.82 rows=176 width=40) (actual time=238.972..212,221.284 rows=3,002 loops=1)

  • Output: synthese.id_synthese, synthese.unique_id_sinp, synthese.unique_id_sinp_grp, synthese.id_source, synthese.id_module, synthese.entity_source_pk_value, synthese.id_dataset, synthese.id_nomenclature_geo_object_nature, synthese.id_nomenclature_grp_typ, synthese.id_nomenclature_obs_meth, synthese.id_nomenclature_obs_technique, synthese.id_nomenclature_bio_status, synthese.id_nomenclature_bio_condition, synthese.id_nomenclature_naturalness, synthese.id_nomenclature_exist_proof, synthese.id_nomenclature_valid_status, synthese.id_nomenclature_diffusion_level, synthese.id_nomenclature_life_stage, synthese.id_nomenclature_sex, synthese.id_nomenclature_obj_count, synthese.id_nomenclature_type_count, synthese.id_nomenclature_sensitivity, synthese.id_nomenclature_observation_status, synthese.id_nomenclature_blurring, synthese.id_nomenclature_source_status, synthese.id_nomenclature_info_geo_type, synthese.count_min, synthese.count_max, synthese.cd_nom, synthese.nom_cite, synthese.meta_v_taxref, synthese.sample_number_proof, synthese.digital_proof, synthese.non_digital_proof, synthese.altitude_min, synthese.altitude_max, synthese.the_geom_4326, synthese.the_geom_point, synthese.the_geom_local, synthese.date_min, synthese.date_max, synthese.validator, synthese.validation_comment, synthese.observers, synthese.determiner, synthese.id_digitiser, synthese.id_nomenclature_determination_method, synthese.comment_context, synthese.comment_description, synthese.meta_validation_date, synthese.meta_create_date, synthese.meta_update_date, synthese.last_action
  • Recheck Cond: (st_buffer(l_areas.geom, '2000'::double precision) ~ synthese.the_geom_local)
  • Filter: _st_contains(st_buffer(l_areas.geom, '2000'::double precision), synthese.the_geom_local)
  • Rows Removed by Filter: 1075
  • Heap Blocks: exact=3471
9. 10.370 10.370 ↓ 7.7 4,077 1

Bitmap Index Scan on i_synthese_the_geom_local (cost=0.00..44.25 rows=528 width=0) (actual time=10.368..10.370 rows=4,077 loops=1)

  • Index Cond: (st_buffer(l_areas.geom, '2000'::double precision) ~ synthese.the_geom_local)
10. 171.114 171.114 ↑ 1.0 1 3,002

Index Scan using pk_taxref on taxonomie.taxref (cost=0.42..0.64 rows=1 width=18) (actual time=0.057..0.057 rows=1 loops=3,002)

  • Output: taxref.cd_nom, taxref.id_statut, taxref.id_habitat, taxref.id_rang, taxref.regne, taxref.phylum, taxref.classe, taxref.ordre, taxref.famille, taxref.sous_famille, taxref.tribu, taxref.cd_taxsup, taxref.cd_sup, taxref.cd_ref, taxref.lb_nom, taxref.lb_auteur, taxref.nom_complet, taxref.nom_complet_html, taxref.nom_valide, taxref.nom_vern, taxref.nom_vern_eng, taxref.group1_inpn, taxref.group2_inpn, taxref.url
  • Index Cond: (taxref.cd_nom = synthese.cd_nom)
11. 114.076 114.076 ↑ 1.0 4 3,002

Index Only Scan using pk_cor_area_synthese on gn_synthese.cor_area_synthese (cost=0.43..0.59 rows=4 width=4) (actual time=0.030..0.038 rows=4 loops=3,002)

  • Output: cor_area_synthese.id_synthese, cor_area_synthese.id_area
  • Index Cond: (cor_area_synthese.id_synthese = synthese.id_synthese)
  • Heap Fetches: 0
Planning time : 1.913 ms
Execution time : 212,968.613 ms