Forum Discussion
Using fetchMoreData/dataReduction for pagination
Hello dm-p
Yes that is what I was thinking too based upon the current implementation of the fetch more data call. The more important question for me is like an example of using a client side click event on say a link for "next page" so I don't have to load all of the data right off the bat for the 90+% of users that don't care about the data and only care about the insights. So, I can render links only if there is more data but if I call a click event it doesn't seem to tell the visual to increment the page number and call the fetch more data method. Do you have an example of creating a custom visual that does server round trips to pull more data?
Hi ChadK,
In terms of simple examples, I only have this from a few years ago when segmented aggregation was the only option. The example is quite old and fairly similar to the examples on the page regarding how it works.
In my work, I've only ever needed to fetch as much as I can from the model as quickly as possible, so I don't have any experience with incremental updates mode or putting manual control around this (except for disabling fetching as a whole). This can be seen in the wild in Deneb's current data-loading strategy.
Regards,
Daniel