I used to use List Shifter free plugin for my pagination. Now I can not, so have to use the Repeating Group.
Setting this up, I need an RG that is to reference for the Total Count of items that match the search criteria.
Set to fixed number of rows and columns to zero, not just for minimizing the size, but also the WU costs. With the fixed number of rows at zero, the search results returned will be equal to the number of rows, zero…so minimize that. You should not incur any costs for the return of a data entry.
This should be height and width of 1x1 and placed into a floating group that is set beneath the page, out of sight and way.
This should be used only to reference the RG list of things count, which will incur a WU cost of 0.20 for an aggregate search.
Then for the RG that will display to the user you will want to use the same do a search for, but apply the operators of :items from :items until (for pagination purposes), as done below.
Using this approach is cheaper than the alternative, which would be to in the display RG use a reference to the hidden RG list of things with operators of items from items until.
I can not explain why there is a difference, but there is a difference. From simple tests, if I were to paginate from page 1, to 2, 3, 4, 5 and back to 1 on a pagination with 12 items per page, in the recommended and cheaper approach I incur 2.73 WUs in total, whereas for the not recommended and more costly approach I incur 3.72 WUs in total. This has been seen consistently in multiple tests of the same approach.
Costs:
Search for pagination: 2.52 WUs
Aggregate Search: 0.20 WUs (needed to reference total number of items)
Real time Search Update: 0.01 WUs
Another thing to note, anytime you need to reference the hidden RG for the count, you are not charged past the first reference, so if you add that value to a workflow conditional or a set custom state action etc. you will not incur additional aggregate search costs.
I lost enthusiasm for this and did not test further beyond paginating through 5 pages…what that means is perhaps, if using this approach and the user paginates through all pages multiple times, it could incur higher costs than if just referencing the hidden RG, but that is not likely as Bubble is supposed to cache search results, so most likely not an issue.