I read the docs, but don’t fully understand operation count, and my operations have always been higher than anticipated, so I’d like to understand.
For simplicity, assume: 1) Using react-instantsearch, 2) “search as you type” is disabled so the user must press
enter to search, 3) using only 1 index.
On the initial page load with no query or faceting applied, I have multiple MenuSelect and RefinementLists on the page, these by default show a count of items for each of their values. Do each of these elements cause an operation, just to be loaded on the page? I.e. If there are two MenuSelects and one RefinementList, it’s 3 operations to load the page? (Or actually 4 given the initial default hits are loaded.)
Assume my results are currently restricted by 3 facets (isFoo, isBar, isBaz) and I refine by a 4th facet (isBat), does clicking “isBat” cause 1 or 4 more new operations?
Using a range, if I reset a range to its extremes, and my searchState will still contain the name of my range, such as
searchState.range.mySliderName.min = undefinedand
searchState.range.mySliderName.max = undefined. Am I charged an operation because
mySliderNamestill exists on the range property? Should I manually delete
rangeoff of the searchState, in order to reduce my operation count?
(non-React question) If I search (via https://www.algolia.com/doc/api-reference/api-methods/search) with a limit of 100 and 100 results are returned, is this one operation or 100? I believe it’s just 1.