2025-02-05 17:58:19.224
035f38a3-86ed-9a47-3e71-939bd67d900b
 1.640 ms
tilemap |  piechart
timetilemap
#
node, ms
tree, ms
rows
RRbF
loops
node
11.928142
итоговые результаты (8B = rows=1 x width=8)
0
.022
11.928
1
Aggregate
1
.050
11.906
79
  ->  Nested Loop Left Join
2
.067
8.696
79
       ->  Hash Join
3
.122
8.613
79
            ->  Hash Join
4
.015
6.215
79
                 ->  Nested Loop
5
.040
1
                      ->  Index Scan using res_partner_pkey on res_partner p
6
.038
6.160
79
                      ->  Nested Loop
7
.788
5.964
79
                           ->  Hash Join
8
3.909
678
                                ->  Seq Scan on cpms_cp cp
9
.038
1.267
79
                                ->  Hash
10
1.229
79
42
34.7%
                                     ->  Index Scan using idx_customer_stopped on transactions t
11
.158
79
79
                           ->  Index Only Scan using cpms_object_pkey on cpms_object o
12
1.420
2.276
1430
                 ->  Hash
13
.856
1430
                      ->  Seq Scan on cpms_cp_connector c
14
.007
.016
10
            ->  Hash
15
.009
10
                 ->  Seq Scan on cpms_cp_connector_type ct
16
.158
3.160
79
79
       ->  Memoize
17
3.002
79
79
            ->  Index Scan using account_move_reference_uuid_index on account_move am
5.863
 
Planning Time
.247
12.175
Execution Time
Aggregate  (cost=3596.32..3596.33 rows=1 width=8) (actual time=11.919..11.928 rows=1 loops=1)
  ->  Nested Loop Left Join  (cost=322.16..3596.31 rows=1 width=0) (actual time=3.821..11.906 rows=79 loops=1)
        Filter: (((COALESCE(am.payment_state, 'paid'::character varying))::character varying(32))::text = 'paid'::text)
        ->  Hash Join  (cost=321.72..3549.86 rows=28 width=16) (actual time=3.739..8.696 rows=79 loops=1)
              Hash Cond: (c.type_id = ct.id)
              ->  Hash Join  (cost=320.49..3548.53 rows=28 width=20) (actual time=3.709..8.613 rows=79 loops=1)
                    Hash Cond: (t.connector_uuid = (c.enelx_uuid)::uuid)
                    ->  Nested Loop  (cost=68.32..3285.30 rows=20 width=32) (actual time=1.410..6.215 rows=79 loops=1)
                          ->  Index Scan using res_partner_pkey on res_partner p  (cost=0.29..2.81 rows=1 width=9) (actual time=0.037..0.040 rows=1 loops=1)
                                Index Cond: (id = 17079)
                          ->  Nested Loop  (cost=68.03..3282.29 rows=20 width=36) (actual time=1.371..6.160 rows=79 loops=1)
                                ->  Hash Join  (cost=67.76..3275.57 rows=20 width=40) (actual time=1.353..5.964 rows=79 loops=1)
                                      Hash Cond: ((cp.enelx_uuid)::uuid = t.charge_point_uuid)
                                      ->  Seq Scan on cpms_cp cp  (cost=0.00..3167.78 rows=678 width=41) (actual time=0.011..3.909 rows=678 loops=1)
                                      ->  Hash  (cost=67.57..67.57 rows=15 width=60) (actual time=1.265..1.267 rows=79 loops=1)
                                            Buckets: 1024  Batches: 1  Memory Usage: 16kB
                                            ->  Index Scan using idx_customer_stopped on transactions t  (cost=0.42..67.57 rows=15 width=60) (actual time=0.067..1.229 rows=79 loops=1)
                                                  Index Cond: (customer_id = 17079)
                                                  Filter: (((id IS NOT NULL) OR (reservation_id IS NOT NULL)) AND (total_amount > '1'::numeric) AND ((owner_id <> 2) OR (owner_id IS NULL)))
                                                  Rows Removed by Filter: 42
                                ->  Index Only Scan using cpms_object_pkey on cpms_object o  (cost=0.27..0.34 rows=1 width=4) (actual time=0.002..0.002 rows=1 loops=79)
                                      Index Cond: (id = cp.object_id)
                                      Heap Fetches: 8
                    ->  Hash  (cost=234.30..234.30 rows=1430 width=41) (actual time=2.275..2.276 rows=1430 loops=1)
                          Buckets: 2048  Batches: 1  Memory Usage: 123kB
                          ->  Seq Scan on cpms_cp_connector c  (cost=0.00..234.30 rows=1430 width=41) (actual time=0.011..0.856 rows=1430 loops=1)
              ->  Hash  (cost=1.10..1.10 rows=10 width=4) (actual time=0.015..0.016 rows=10 loops=1)
                    Buckets: 1024  Batches: 1  Memory Usage: 9kB
                    ->  Seq Scan on cpms_cp_connector_type ct  (cost=0.00..1.10 rows=10 width=4) (actual time=0.006..0.009 rows=10 loops=1)
        ->  Memoize  (cost=0.44..2.96 rows=1 width=42) (actual time=0.039..0.040 rows=1 loops=79)
              Cache Key: ((t.uuid)::character varying)::text
              Cache Mode: logical
              Hits: 0  Misses: 79  Evictions: 0  Overflows: 0  Memory Usage: 14kB
              ->  Index Scan using account_move_reference_uuid_index on account_move am  (cost=0.43..2.95 rows=1 width=42) (actual time=0.037..0.038 rows=1 loops=79)
                    Index Cond: ((reference_uuid)::text = ((t.uuid)::character varying)::text)
                    Filter: ((invoice_origin)::text = 'transaction'::text)
Planning Time: 5.863 ms
Execution Time: 12.175 ms
      
-- ((enelx_uuid)::uuid) :: uuid(=)
CREATE INDEX CONCURRENTLY "~cpms_cp-f4e22e16"
  ON cpms_cp((enelx_uuid::uuid));
 8
# 7 Hash Join
Execution0.788ms6.6%: rows=79, loops=1
Cost3275.57: rows=20 width=40
Hash Join  (cost=67.76..3275.57 rows=20 width=40) (actual time=1.353..5.964 rows=79 loops=1)
  Hash Cond: ((cp.enelx_uuid)::uuid = t.charge_point_uuid)
# 8 Seq Scan on cpms_cp cp
Execution3.909ms32.8%: rows=678, loops=1
Cost3167.78: rows=678 width=41
Seq Scan on cpms_cp cp  (cost=0.00..3167.78 rows=678 width=41) (actual time=0.011..3.909 rows=678 loops=1)
-- ((enelx_uuid)::uuid) :: uuid(=)
CREATE INDEX CONCURRENTLY "~cpms_cp-f4e22e16"
  ON cpms_cp((enelx_uuid::uuid));
время % rows RRbF % loops тип узла таблица индекс узлы
3.909
32.8
678
Seq Scan
cpms_cp
8
3.002
25.2
79
79
Index Scan
account_move
account_move_reference_uuid_index
17
1.465
12.3
1519
3
Hash
9 12 14
3
1.229
10.3
79
42
34.7
Index Scan
transactions
idx_customer_stopped
10
.977
8.2
237
3
Hash Join
2 3 7
3
.856
7.2
1430
Seq Scan
cpms_cp_connector
13
.158
1.3
79
79
Index Only Scan
cpms_object
cpms_object_pkey
11
.158
1.3
79
79
Memoize
16
.053
0.4
158
2
Nested Loop
4 6
2
.050
0.4
79
Nested Loop Left Join
1
.040
0.3
1
Index Scan
res_partner
res_partner_pkey
5
.022
0.2
1
Aggregate
0
.009
0.1
10
Seq Scan
cpms_cp_connector_type
15
tooltip