Adds indexes to the JOINed fields to reduce execution cost, as the TableRepo::get_table_persist_info() is currently by far the most expensive catalog operation.