JCR-2211 : Performance Issues when working with a large Database

Problem analysis
	- With a large database on db2 , We have detected a slowness in :
		+ The getLastOrderNumber function in JCR
		+ The re-indexation of Jcr

Fix description:
	- Use a global database sequence.
	- Change the pagination sql query to read data to indexe.