TAP5-2589: improve data source handling if the pager is not shown
Counting the number of results in an expensive operation for some data sources (especially databases), so we count
only as far as we need to.
3 files changed