JIRA 597: Command line script is being killed on dev VM. Commit to the index regularly to avoid large commit at the end.