Skip to content

Instantly share code, notes, and snippets.

@james727
Created March 16, 2017 00:32
Show Gist options
  • Save james727/f749641d76ce869b6b4eba7e54c4347c to your computer and use it in GitHub Desktop.
Save james727/f749641d76ce869b6b4eba7e54c4347c to your computer and use it in GitHub Desktop.
redshift=> EXPLAIN UPDATE all_events SET user_id = test_table.user_id FROM test_table WHERE all_events.event_id = test_table.event_id;
QUERY PLAN
----------------------------------------------------------------------------------
XN Hash Join DS_BCAST_INNER (cost=12.50..418648749.25 rows=11015 width=71)
Hash Cond: ("outer".event_id = "inner".event_id)
-> XN Seq Scan on all_events (cost=0.00..1764430.88 rows=176443088 width=63)
-> XN Hash (cost=10.00..10.00 rows=1000 width=16)
-> XN Seq Scan on test_table (cost=0.00..10.00 rows=1000 width=16)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment