Put an upper limit on update batches
Put an upper limit on update batches

When using update_column_in_batches the upper limit on the batch size is
now 1000. This ensures that for very large tables we don't lock tens of
thousands of rows during the update. This in turn should reduce the
likelyhood of running into deadlocks.

axilleas/gitlabhq,jirutka/gitlabhq,t-zuehlsdorff/gitlabhq,stoplightio/gitlabhq,t-zuehlsdorff/gitlabhq,stoplightio/gitlabhq,dreampet/gitlab,dreampet/gitlab,stoplightio/gitlabhq,t-zuehlsdorff/gitlabhq,mmkassem/gitlabhq,dreampet/gitlab,dplarson/gitlabhq,jirutka/gitlabhq,jirutka/gitlabhq,dreampet/gitlab,mmkassem/gitlabhq,dplarson/gitlabhq,axilleas/gitlabhq,mmkassem/gitlabhq,iiet/iiet-git,stoplightio/gitlabhq,dplarson/gitlabhq,t-zuehlsdorff/gitlabhq,jirutka/gitlabhq,mmkassem/gitlabhq,dplarson/gitlabhq,axilleas/gitlabhq,iiet/iiet-git,iiet/iiet-git,axilleas/gitlabhq,iiet/iiet-git