explain.depesz.com

PostgreSQL's explain analyze made readable

Result: meGlW : Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Optimization for: Q1; plan #sxXT; plan #BKRV; plan #jpuF; plan #VPjc; plan #eD51; plan #qMdY; plan #TFnuN; plan #di8q; plan #S5ov

Settings

Optimization path:

# exclusive inclusive rows x rows loops node
1. 5.740 589.310 ↓ 267.0 267 1

Unique (cost=235.28..235.29 rows=1 width=14) (actual time=558.789..589.310 rows=267 loops=1)

  • Output: taxref.cd_ref, taxref.group2_inpn
2. 31.945 583.570 ↓ 3,004.0 3,004 1

Sort (cost=235.28..235.28 rows=1 width=14) (actual time=558.784..583.570 rows=3,004 loops=1)

  • Output: taxref.cd_ref, taxref.group2_inpn
  • Sort Key: taxref.cd_ref, taxref.group2_inpn
  • Sort Method: quicksort Memory: 237kB
3. 42.124 551.625 ↓ 3,004.0 3,004 1

Nested Loop (cost=5.54..235.27 rows=1 width=14) (actual time=3.360..551.625 rows=3,004 loops=1)

  • Output: taxref.cd_ref, taxref.group2_inpn
  • Inner Unique: true
4. 9.816 491.477 ↓ 3,004.0 3,004 1

Nested Loop (cost=5.11..234.63 rows=1 width=4) (actual time=3.322..491.477 rows=3,004 loops=1)

  • Output: synthese.cd_nom
5. 0.022 0.022 ↑ 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.016..0.022 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)
6. 479.244 481.639 ↓ 3,004.0 3,004 1

Bitmap Heap Scan on gn_synthese.synthese (cost=4.69..226.17 rows=1 width=36) (actual time=3.295..481.639 rows=3,004 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: (synthese.the_geom_local && st_expand(l_areas.geom, '2000'::double precision))
  • Filter: ((l_areas.geom && st_expand(synthese.the_geom_local, '2000'::double precision)) AND _st_dwithin(synthese.the_geom_local, l_areas.geom, '2000'::double precision))
  • Rows Removed by Filter: 1074
  • Heap Blocks: exact=3472
7. 2.395 2.395 ↓ 76.9 4,078 1

Bitmap Index Scan on i_synthese_the_geom_local (cost=0.00..4.69 rows=53 width=0) (actual time=2.394..2.395 rows=4,078 loops=1)

  • Index Cond: (synthese.the_geom_local && st_expand(l_areas.geom, '2000'::double precision))
8. 18.024 18.024 ↑ 1.0 1 3,004

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

  • 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)
Planning time : 0.825 ms
Execution time : 589.946 ms