Skip to content

Show More for Infinite Hits #6081

Answered by Haroenv
avremel asked this question in Q&A
Feb 28, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

In theory those requests aren't needed, however the design of InstantSearch right now is that every change does a request and we only render based on the results of the last request. infinite hits is an exception to that and still reads from previous queries through the cache.

Right now I don't know how we could do those infinite hits (or pagination, as that's really the same issue) queries without re-requesting the faceting information, and this optimisation on network time may cost more in complexity of the code. I'm not sure of course, and if you have a good idea on how to contribute, we definitely welcome that!

Note that the pricing of Algolia is per network request, not per query, so…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@avremel
Comment options

@Haroenv
Comment options

Answer selected by avremel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants