We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
*
Limit
-
|
[...] |
10
rows
10
rows
544,045
buffers
|
||||||||||||||||||||||||||||||||||||||||||
*
Nested Loop
-
|
[...] |
10
rows
13,350,926
rows
544,045
buffers
|
||||||||||||||||||||||||||||||||||||||||||
*
Index Scan Backward using entities_id_index
temp.entities lhs
|
[...] |
10
rows
13,350,926
rows
|
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Limit (cost=224541.60..2469952.55 rows=10 width=68) (actual time=687.770..6063.586 rows=10 loops=1)
Output: lhs.id, lhs.full_name, entities.id, entities.full_name
Buffers: shared hit=479653 read=64097 written=295
-> Nested Loop Left Join (cost=224541.60..2997831757508.70 rows=13350926 width=68) (actual time=687.769..6063.580 rows=10 loops=1)
Output: lhs.id, lhs.full_name, entities.id, entities.full_name
Buffers: shared hit=479653 read=64097 written=295
-> Index Scan Backward using entities_id_index on temp.entities lhs (cost=0.56..719298.01 rows=13350926 width=34) (actual time=0.026..0.068 rows=10 loops=1)
Output: lhs.id, lhs.first_name, lhs.middle_name, lhs.last_name, lhs.name_suffix, lhs.full_name, lhs.address_house_number, lhs.address_street_direction, lhs.address_street_name, lhs.address_street_suffix, lhs.address_street_post_direction,
lhs.address_unit_prefix, lhs.address_unit_value, lhs.address_city, lhs.address_state, lhs.address_zip, lhs.address_zip_4, lhs.address_legacy, lhs.address_normalized, lhs.address, lhs.status, lhs.total_records, lhs.total_buy_records, lhs.total_sell_record
s, lhs."fix_and_flip?", lhs."buy_and_hold?", lhs."wholesaler?", lhs.last_year, lhs.last_year_buy_records, lhs.last_year_buy_transfer_amount, lhs.last_year_sell_records, lhs.last_year_sell_transfer_amount, lhs.current_year, lhs.current_year_buy_records, l
hs.current_year_buy_transfer_amount, lhs.current_year_sell_records, lhs.current_year_sell_transfer_amount, lhs.score, lhs.score_version, lhs.inserted_at, lhs.updated_at
Buffers: shared hit=4 read=6
-> Limit (cost=224541.04..224541.05 rows=1 width=34) (actual time=606.348..606.348 rows=1 loops=10)
Output: entities.id, entities.full_name
Buffers: shared hit=479649 read=64091 written=295
-> Sort (cost=224541.04..224652.30 rows=44503 width=34) (actual time=606.346..606.346 rows=1 loops=10)
Output: entities.id, entities.full_name
Sort Key: entities.full_name
Sort Method: quicksort Memory: 25kB
Buffers: shared hit=479649 read=64091 written=295
-> Bitmap Heap Scan on temp.entities (cost=102831.00..224318.53 rows=44503 width=34) (actual time=606.318..606.336 rows=2 loops=10)
Output: entities.id, entities.full_name
Recheck Cond: (((entities.full_name)::text % (lhs.full_name)::text) AND (entities.id < lhs.id))
Rows Removed by Index Recheck: 1
Heap Blocks: exact=30
Buffers: shared hit=479649 read=64091 written=295
-> BitmapAnd (cost=102831.00..102831.00 rows=44503 width=0) (actual time=606.297..606.297 rows=0 loops=10)
Buffers: shared hit=479644 read=64066 written=295
-> Bitmap Index Scan on entities_full_name_gin_trgm_ops_index (cost=0.00..882.62 rows=133509 width=0) (actual time=83.707..83.707 rows=5 loops=10)
Index Cond: ((entities.full_name)::text % (lhs.full_name)::text)
Buffers: shared hit=20153 read=11997 written=40
-> Bitmap Index Scan on entities_id_index (cost=0.00..101925.88 rows=4450309 width=0) (actual time=522.579..522.579 rows=13350920 loops=10)
Index Cond: (entities.id < lhs.id)
Buffers: shared hit=459491 read=52069 written=255
Settings: temp_buffers = '64MB', work_mem = '128MB', max_parallel_workers_per_gather = '8', enable_seqscan = 'off'
Planning:
Buffers: shared read=1
Planning Time: 0.140 ms
Execution Time: 6063.627 ms
(36 rows)