Skip to content

basalt / search/src / DEFAULT_MAX_SCAN

Variable: DEFAULT_MAX_SCAN ​

> const DEFAULT_MAX_SCAN: 10000 = 10_000

Defined in: search/src/search.ts:155

Largest number of driver rows one authorized search may scan, unless maxScan (on the service) says otherwise. The per-call maxScan may lower it, never raise it: without a ceiling, a hook that authorizes nothing turns offset: 10000 into a walk of the whole index on every request.

Released under the MIT License.