After all data is copied into target, we create the indexes. Data loading is faster when no indexes are in place, so this ordering helps with performance.
Depending on data size, indexing can take a while.