2025-04-23 12:32:35.935
f363292d-338f-e8d3-f024-296f6a77c5d7
 1.613 ms
tilemap |  piechart
time | bufferstilemap
#
node, ms
tree, ms
rows
RRbF
loops
node
sh.ht
sh.rd
sh.dr
sh.wr
6921.608121508
итоговые результаты (8B = rows=1 x width=8)
scan=1818570
1625438
193132
573
0
20.332
6921.608
1
Aggregate
1
47.484
6901.276
69661
3547
4.8%
  ->  Nested Loop Left Join
2
4987.103
6560.960
73208
17961
19.7%
       ->  Bitmap Heap Scan on object_accessibility a1
727695
127723
357
3
7.154
91169
            ->  Bitmap Index Scan on object_accessibility_idx_layerservice_id
78
4
            SubPlan 1
5
11.822
59.110
11822
             ->  Nested Loop
6
47.288
11822
                  ->  Index Scan using pk_division on division t
34722
744
7
n/e
                  ->  Index Scan using kf_med_organization_index_by_fieldkey on organization o_1
8
            SubPlan 2
9
158.694
1507.593
79347
79347
             ->  Nested Loop
10
872.817
79347
79347
                  ->  Index Scan using pk_office_building on office_building t_1
264991
52397
172
11
476.082
79347
79347
                  ->  Index Scan using kf_med_organization_index_by_fieldkey on organization o_2
305198
12190
44
12
292.832
73208
0.0%
73208
       ->  Index Scan using pk_office_building on office_building o
292832
 
Planning
44
41
2
3.355
 
Planning Time
1529.404
 
JIT
12.352
6933.960
Execution Time
Aggregate  (cost=3094943.07..3094943.08 rows=1 width=8) (actual time=6921.602..6921.608 rows=1 loops=1)
  Buffers: shared hit=1625438 read=193132 written=573
  ->  Nested Loop Left Join  (cost=999.22..3094942.80 rows=111 width=0) (actual time=1531.610..6901.276 rows=69661 loops=1)
        Filter: ((COALESCE(date_part('year'::text, o.buildingweardate), '3000'::double precision) > '2025'::double precision) OR (o.liquidationreasonid = 4) OR ((a1.division_id IS NOT NULL) AND (COALESCE(date_part('year'::text, a1.end_date), '3000'::double precision) > '2025'::double precision)))
        Rows Removed by Filter: 3547
        Buffers: shared hit=1625438 read=193132 written=573
        ->  Bitmap Heap Scan on object_accessibility a1  (cost=998.80..3092485.40 rows=311 width=24) (actual time=1531.559..6560.960 rows=73208 loops=1)
              Recheck Cond: (layerservice_id = 1)
              Filter: ((state_id > '-1'::integer) AND (date_part('year'::text, bdate) <= '2025'::double precision) AND ((cardinality(act_ids) = 0) OR (act_ids && '{63000000,65000000,71000000,73000000,79000000,99000000,80000000,84000000,82000000,88000000,89000000,93000000,1000000,4000000,7000000,29000000,33000000,37000000,22000000,52000000,53000000,56000000,57000000,36000000,75000000,71800000,71900000,92000000,94000000,96000000,97000000,81000000,85000000,98000000,95000000,3000000,5000000,8000000,10000000,12000000,14000000,15000000,17000000,18000000,20000000,25000000,30000000,32000000,38000000,42000000,44000000,50000000,54000000,60000000,61000000,64000000,66000000,68000000,69000000,70000000,76000000,78000000,77000000,45000000,35000000,26000000,86000000,87000000,11000000,19000000,24000000,27000000,34000000,41000000,46000000,47000000,49000000,58000000,28000000,40000000,11800000,83000000,91000000,90000000,67000000}'::bigint[])) AND (CASE WHEN (division_id IS NOT NULL) THEN (SubPlan 1) ELSE (SubPlan 2) END = 1))
              Rows Removed by Filter: 17961
              Heap Blocks: exact=17128
              Buffers: shared hit=1332606 read=193132 written=573
              ->  Bitmap Index Scan on object_accessibility_idx_layerservice_id  (cost=0.00..998.72 rows=90990 width=0) (actual time=7.153..7.154 rows=91169 loops=1)
                    Index Cond: (layerservice_id = 1)
                    Buffers: shared read=78
              SubPlan 1
                ->  Nested Loop  (cost=0.84..16.88 rows=1 width=8) (actual time=0.005..0.005 rows=0 loops=11822)
                      Buffers: shared hit=34722 read=744
                      ->  Index Scan using pk_division on division t  (cost=0.42..8.44 rows=1 width=8) (actual time=0.004..0.004 rows=0 loops=11822)
                            Index Cond: (id = a1.division_id)
                            Buffers: shared hit=34722 read=744
                      ->  Index Scan using kf_med_organization_index_by_fieldkey on organization o_1  (cost=0.42..8.44 rows=1 width=16) (never executed)
                            Index Cond: (id = t.organization_id)
              SubPlan 2
                ->  Nested Loop  (cost=0.84..16.88 rows=1 width=8) (actual time=0.019..0.019 rows=1 loops=79347)
                      Buffers: shared hit=570189 read=64587 written=216
                      ->  Index Scan using pk_office_building on office_building t_1  (cost=0.42..8.44 rows=1 width=8) (actual time=0.011..0.011 rows=1 loops=79347)
                            Index Cond: (id = a1.object_id)
                            Buffers: shared hit=264991 read=52397 written=172
                      ->  Index Scan using kf_med_organization_index_by_fieldkey on organization o_2  (cost=0.42..8.44 rows=1 width=16) (actual time=0.006..0.006 rows=1 loops=79347)
                            Index Cond: (id = t_1.organization_id)
                            Buffers: shared hit=305198 read=12190 written=44
        ->  Index Scan using pk_office_building on office_building o  (cost=0.42..7.88 rows=1 width=24) (actual time=0.004..0.004 rows=1 loops=73208)
              Index Cond: (id = a1.object_id)
              Filter: ((state_id <> 6) AND (state_id <> '-1'::integer))
              Rows Removed by Filter: 0
              Buffers: shared hit=292832
Planning:
  Buffers: shared hit=44 read=41 dirtied=2
Planning Time: 3.355 ms
JIT:
  Functions: 42
  Options: Inlining true, Optimization true, Expressions true, Deforming true
  Timing: Generation 11.985 ms, Inlining 42.569 ms, Optimization 902.797 ms, Emission 572.052 ms, Total 1529.404 ms
Execution Time: 6933.960 ms
      
время % rows RRbF % loops тип узла таблица индекс узлы sh.ht sh.rd sh.dr sh.wr
4987.103
72.1
73208
17961
19.7
Bitmap Heap Scan
object_accessibility
2
727695
127723
357
1165.649
16.8
152555
152555
Index Scan
office_building
pk_office_building
10 12
2
557823
52397
172
476.082
6.9
79347
79347
Index Scan
organization
kf_med_organization_index_by_fieldkey
11
305198
12190
44
170.516
2.5
79347
91169
Nested Loop
5 9
2
47.484
0.7
69661
3547
4.8
Nested Loop Left Join
1
47.288
0.7
11822
Index Scan
division
pk_division
6
34722
744
20.332
0.3
1
Aggregate
0
7.154
0.1
91169
Bitmap Index Scan
object_accessibility
object_accessibility_idx_layerservice_id
3
78
tooltip