DFC Best Practices¶
Recommended Configurations¶
Design Schemas Before Populating Data.
Plan schemas carefully before adding items. Once items populate a field with data, the field's name and type are locked and the field can't be deleted. Upfront design prevents rework later.Keep Entities Flat and Reusable.
Favor more root-level entities with fewer sub-entity layers. Limit sub-entities to no more than five levels deep. This improves clarity, reuse, and query performance.Use clear naming.
Use names that match how teams will search and validate data later, especially for QA and support. Prefer a small number of well-named entities over many overlapping ones.Separate Structure from Ownership.
Let technical teams to define schemas and references while business teams manage values. This balance keeps systems flexible without sacrificing control.Test in non-production first.
Validate schema and item structure in a lower environment before applying the same configuration in production.Common Pitfalls¶
Avoid adding items or sub-entities before the schema is finalized.
**Why:** Once items populate a field with data, the field locks, forcing you to remove that item data just to rename or delete the field.Avoid primary key values that contain a slash (/).
**Why:** DFC interprets the slash as an additional\ path segment, causing the query to fail.Avoid manually editing exported JSONL files.
**Why:** Manual edits can cause import errors or data corruption.Avoid creating or deleting items in shared environments unless instructed.
**Why:** Approved item changes affect any flow that references them.Avoid deleting a role while users are still assigned to it.
**Why:** Deleting a role removes its entity tag\ assignments and disrupts those users' access.Performance and Scaling¶
- Keep entities flat and limit sub-entity depth to no more than five levels to improve query \ performance.
- Import time depends on file size — a 1 MB file typically completes in about two minutes. Allow \ imports to finish and do not navigate away while the loading indicator is active.
Security and Compliance¶
DFC limits risk through role-based access and schema guardrails. Apply the following access-control\ practices (these apply to DFC Permissions):