2021-12-08 17:46:52.999
639d403ef7bf772f698502ed98ae3f63
 1.412 ms
tilemap |  piechart
time | bufferstilemap
#
node, ms
tree, ms
rows
node
sh.ht
sh.rd
4176.251198552
итоговые результаты (3.6MB = rows=198552 x width=19)
scan=160626
3
160623
0
430.825
4176.251
198552
Hash Join
3
1
667.435
2434228
  ->  Seq Scan on processedorder_item poi
84263
2
49.270
3077.991
173668
  ->  Hash
3
3010.906
3028.721
173668
       ->  Bitmap Heap Scan on processedorder o
75882
4
17.815
173668
            ->  Bitmap Index Scan on ix_receiveddate
478
3.893
 
Planning Time
5.911
4182.162
Execution Time
Hash Join  (cost=166953.18..286705.36 rows=201855 width=19) (actual time=3078.441..4176.251 rows=198552 loops=1)
  Hash Cond: (poi."OrderId" = o."OrderId")
  Buffers: shared hit=3 read=160623
  ->  Seq Scan on processedorder_item poi  (cost=0.00..108605.28 rows=2434228 width=23) (actual time=0.158..667.435 rows=2434228 loops=1)
        Buffers: shared read=84263
  ->  Hash  (cost=164773.85..164773.85 rows=174346 width=4) (actual time=3077.990..3077.991 rows=173668 loops=1)
        Buckets: 262144 (originally 262144)  Batches: 1 (originally 1)  Memory Usage: 8154kB
        Buffers: shared read=76360
        ->  Bitmap Heap Scan on processedorder o  (cost=3703.48..164773.85 rows=174346 width=4) (actual time=27.285..3028.721 rows=173668 loops=1)
              Recheck Cond: (("ReceivedDate" >= '2020-09-01 00:00:00'::timestamp without time zone) AND ("ReceivedDate" <= '2021-01-01 00:00:00'::timestamp without time zone))
              Heap Blocks: exact=75882
              Buffers: shared read=76360
              ->  Bitmap Index Scan on ix_receiveddate  (cost=0.00..3659.89 rows=174346 width=0) (actual time=17.815..17.815 rows=173668 loops=1)
                    Index Cond: (("ReceivedDate" >= '2020-09-01 00:00:00'::timestamp without time zone) AND ("ReceivedDate" <= '2021-01-01 00:00:00'::timestamp without time zone))
                    Buffers: shared read=478
Planning Time: 3.893 ms
Execution Time: 4182.162 ms
      
-- "OrderId" :: ?(=)
CREATE INDEX CONCURRENTLY "~processedorder_item-0c7376ef"
  ON processedorder_item("OrderId");
 1
# 0 Hash Join
Execution430.825ms10.3%: rows=198552, loops=1
Buffers30.0%: hit=3
Cost286705.36: rows=201855 width=19
Hash Join  (cost=166953.18..286705.36 rows=201855 width=19) (actual time=3078.441..4176.251 rows=198552 loops=1)
  Hash Cond: (poi."OrderId" = o."OrderId")
  Buffers: shared hit=3 read=160623
# 1 Seq Scan on processedorder_item poi
Execution667.435ms16.0%: rows=2434228, loops=1
Buffers8426352.5%: read=84263
Cost108605.28: rows=2434228 width=23
Seq Scan on processedorder_item poi  (cost=0.00..108605.28 rows=2434228 width=23) (actual time=0.158..667.435 rows=2434228 loops=1)
  Buffers: shared read=84263
-- "OrderId" :: ?(=)
CREATE INDEX CONCURRENTLY "~processedorder_item-0c7376ef"
  ON processedorder_item("OrderId");
время % rows тип узла таблица индекс узлы sh.ht sh.rd
3010.906
72.1
173668
Bitmap Heap Scan
processedorder
3
75882
667.435
16.0
2434228
Seq Scan
processedorder_item
1
84263
430.825
10.3
198552
Hash Join
0
3
49.270
1.2
173668
Hash
2
17.815
0.4
173668
Bitmap Index Scan
processedorder
ix_receiveddate
4
478
tooltip