.md

Best practices

Patterns and recommendations for building production-ready dcupl applications. These guides cover data modeling, performance optimization, and error handling strategies.

Quick tips

Note
Initialize Once. Call init() once at startup, then stage changes with data.update() and apply them with dcupl.update(). Re-initialization is expensive.
Note
Use Specific Types. Define properties with specific types like int, float, boolean instead of storing everything as string.
Note
Reuse Lists. Create lists once and reuse them with query.clear(). Creating new lists has overhead.
Note
Limit Reference Depth. Keep reference chains to 2-3 levels. Use derived properties for frequently-accessed deep data.