Optimisation pagination
pull request #204
MICASERVER-125