detect pagination needs
Merge pull request #5971 from jdalsem/detect-pagination-needs

Eliminate unneeded pagination when no limit/offset