You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
intersectionEstimate multiplies Infinity into the incoming-row hint used by filter index switching #3726
mapConditionsToFilters (resources/search.ts) narrows estimatedIncomingCount after each filter with intersectionEstimate(store, condition.estimated_count, estimatedIncomingCount). A filter-only condition (contains, ends_with, ne <value>, negated) estimates Infinity, so the hint becomes Infinity for every later filter in the chain.
filterByType uses the hint to decide when to switch a filter to an index lookup: estimatedIncomingCount > 3 and (misses / filteredSoFar) * estimatedIncomingCount > thresholdRemainingMisses. With Infinity it switches on the first miss, so a filter that follows a filter-only condition builds its id set from the index earlier than the real estimates would justify.
Performance heuristic only; no result changes. Changing it moves when lookups switch, so measure a filter chain after a filter-only condition before and after.
Activity