Skip to content

Performance

Thomas Pollet edited this page Mar 8, 2026 · 3 revisions

Performance

Practical cost centers

The most common SAFRS performance costs come from:

  • large collections
  • deep include=... trees
  • high default page sizes
  • expensive count operations

Tuning checklist

  • keep pagination limits sane
  • avoid very broad includes on large collections
  • hide or disable relationships you do not need
  • use sparse fieldsets to reduce payload size
  • review DEFAULT_PAGE_LIMIT, MAX_PAGE_LIMIT, and ENABLE_RELATIONSHIPS

SQLite and demo note

If you are testing with SQLite demo setups, remember that concurrency and write-heavy behavior can look different from production databases.

Clone this wiki locally