> secondary indices on the external_id columns in both tables
pick your poison, slower lookup or more disk usage
pick your poison, slower lookup or more disk usage
In fact if your external ids are evenly distributed you can do that anyway, only index the few leading / trailing bytes of the id. That will increase lookup costs a bit but significantly decrease storage.