Sub tables
Overview
Parent Record (e.g., Restaurant Receipt)
βββ _id: "receipt_001"
βββ Restaurant: "Pizza Palace"
βββ Date: "2024-07-03"
βββ Items (Sub-table field)
βββ Item 1
β βββ _id: "item_001"
β βββ embeddingRowID: "receipt_001" β Automatic link to parent
β βββ Name: "Margherita Pizza"
β βββ Price: 18.99
βββ Item 2
βββ _id: "item_002"
βββ embeddingRowID: "receipt_001" β Automatic link to parent
βββ Name: "Caesar Salad"
βββ Price: 12.50Common Use Cases
1. Invoice and Invoice Lines
2. Project and Tasks
3. Order and Order Items
Multi-Level Hierarchies
Combining Sub-tables with Linked Table Fields
Displaying Related Data
Current Row Data
Child Data (Sub-table)
Linked Data
Parent/Ancestor Data
Performance Considerations
Best Practices
When to Consider Alternatives
Infrastructure Scaling
Setup Instructions
1. Create the Parent Datatable
2. Create the Child Datatable
3. Add Sub-table Field to Parent
4. Configure Display Options
Working with Sub-tables Programmatically
Security and Access Control
Real-World Examples
Chat Application
Project Management
Related Documentation
Last updated