Move order index to it's own model

Batched iterator to reduce memory requirement when
looping over orders