Knowledge Base
For Developers

Prisma Optimization

This section covers optimization principles, not private operational recipes. The main goal is to keep analytics and review surfaces fast without duplicating business logic across the stack.

Optimization themes

Server-side aggregation

Compute analytics close to the data source when product counts and summaries need to stay aligned across multiple surfaces.

Read-heavy performance

Optimize for the dashboard and reporting paths that are hit frequently, especially under filter changes and larger histories.

Intentional query shape

Prefer predictable query ownership and reusable aggregation helpers over many slightly different endpoint-specific calculations.