Type Alias PerformanceTier

PerformanceTier:
    | "fast"
    | "balanced"
    | "accurate"
    | "efficient"
    | "custom"

Performance tier presets for common use cases.

Each tier provides sensible defaults that can be individually overridden. The tier affects caching, batching, validation, and query optimization.

Tier Use Case Caching Batching Validation
fast Development, testing Aggressive Yes Minimal
balanced General production Moderate No Standard
accurate Analytics, reporting Disabled No Full
efficient Mobile, battery-constrained Moderate Yes Minimal
custom Full manual control Manual Manual Manual
// Mobile app with battery optimization
const db = await createDatabase({
performance: { tier: 'efficient' }
});