Improve performance for InstantSearch Android
Algolia is fast by default. But network speed and bandwidth can vary. This page lists a few best practices you can implement to adapt to your users’ network conditions.
Add a loading indicator
You can mitigate the impact of a slow network on your search experience by managing user expectations. One way of letting them know that the network is suboptimal is by displaying a loading indicator, which prevents them from becoming frustrated by network delays and blaming your app for lack of responsiveness.
Loading widget to implement this behavior.
Optimize build size
Queries per second (QPS)
Every keystroke in InstantSearch using the
SearchBox counts as one operation.
Then, depending on the widgets you add to your search interface,
you may have more operations being counted on each keystroke.
For example, if you have a search interface with a
HierarchicalMenu, and a
then every keystroke triggers one operation.
But as soon as a user refines the
it triggers a second operation on each keystroke.