Replication: left the database open. This speeded up operation of 300%