QUERY PLAN |
----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
Nested Loop Semi Join (cost=12639.18..37778.23 rows=1 width=32) (actual time=17044.441..39996.822 rows=3 loops=1) |
Join Filter: (factsets.certname = fs_2.certname) |
Rows Removed by Join Filter: 1391 |
Buffers: shared hit=956656 |
-> Nested Loop Semi Join (cost=12639.18..25213.29 rows=1 width=257) (actual time=16967.932..39199.368 rows=3 loops=1) |
Join Filter: (factsets.certname = fs_1.certname) |
Rows Removed by Join Filter: 4337 |
Buffers: shared hit=937084 |
-> Nested Loop (cost=12639.18..12648.36 rows=1 width=202) (actual time=1560.239..1571.784 rows=27 loops=1) |
Buffers: shared hit=37131 |
-> HashAggregate (cost=12564.92..12564.93 rows=1 width=63) (actual time=1559.406..1559.481 rows=27 loops=1) |
Group Key: fs.certname |
Batches: 1 Memory Usage: 24kB |
Buffers: shared hit=36684 |
-> Subquery Scan on fs (cost=0.00..12564.92 rows=1 width=63) (actual time=78.887..1559.235 rows=27 loops=1) |
Filter: ((fs.key = 'egnyte_role'::text) AND (fs.value = '"roles-consul"'::jsonb) AND (jsonb_typeof(fs.value) = 'string'::text)) |
Rows Removed by Filter: 638477 |
Buffers: shared hit=36684 |
-> Result (cost=0.00..7172.92 rows=269600 width=127) (actual time=0.626..1503.369 rows=638504 loops=1) |
Buffers: shared hit=36684 |
-> ProjectSet (cost=0.00..1780.92 rows=269600 width=95) (actual time=0.624..1392.324 rows=638504 loops=1) |
Buffers: shared hit=36684 |
-> Seq Scan on factsets factsets_1 (cost=0.00..405.96 rows=2696 width=155) (actual time=0.007..1.593 rows=2696 loops=1) |
Buffers: shared hit=379 |
-> Index Scan using factsets_certname_idx on factsets (cost=74.25..82.28 rows=1 width=155) (actual time=0.445..0.445 rows=1 loops=27) |
Index Cond: (certname = fs.certname) |
Filter: ((NOT (hashed SubPlan 1)) AND ((stable || volatile) ? 'consul_services'::text)) |
Buffers: shared hit=447 |
SubPlan 1 |
-> Seq Scan on certnames (cost=0.00..73.97 rows=1 width=55) (actual time=0.016..0.424 rows=2 loops=1) |
Filter: ((deactivated IS NOT NULL) OR (expired IS NOT NULL)) |
Rows Removed by Filter: 2696 |
Buffers: shared hit=47 |
-> Subquery Scan on fs_1 (cost=0.00..12564.92 rows=1 width=63) (actual time=6.207..1393.472 rows=161 loops=27) |
Filter: ((fs_1.key = 'virtual_dc'::text) AND (fs_1.value = '"egn"'::jsonb) AND (jsonb_typeof(fs_1.value) = 'string'::text)) |
Rows Removed by Filter: 579473 |
Buffers: shared hit=899953 |
-> Result (cost=0.00..7172.92 rows=269600 width=127) (actual time=0.509..1343.199 rows=579634 loops=27) |
Buffers: shared hit=899953 |
-> ProjectSet (cost=0.00..1780.92 rows=269600 width=95) (actual time=0.508..1244.236 rows=579634 loops=27) |
Buffers: shared hit=899953 |
-> Seq Scan on factsets factsets_2 (cost=0.00..405.96 rows=2696 width=155) (actual time=0.004..1.411 rows=2448 loops=27) |
Buffers: shared hit=9186 |
-> Subquery Scan on fs_2 (cost=0.00..12564.92 rows=1 width=63) (actual time=0.552..265.234 rows=465 loops=3) |
Filter: ((fs_2.key = 'side'::text) AND (fs_2.value = '"gcp"'::jsonb) AND (jsonb_typeof(fs_2.value) = 'string'::text)) |
Rows Removed by Filter: 108145 |
Buffers: shared hit=19537 |
-> Result (cost=0.00..7172.92 rows=269600 width=127) (actual time=0.540..255.527 rows=108610 loops=3) |
Buffers: shared hit=19537 |
-> ProjectSet (cost=0.00..1780.92 rows=269600 width=95) (actual time=0.539..236.956 rows=108610 loops=3) |
Buffers: shared hit=19537 |
-> Seq Scan on factsets factsets_3 (cost=0.00..405.96 rows=2696 width=155) (actual time=0.007..0.227 rows=465 loops=3) |
Buffers: shared hit=90 |
Planning: |
Buffers: shared hit=24 |
Planning Time: 1.000 ms |
Execution Time: 39996.958 ms |
(57 rows)
|