Documentation Index
Fetch the complete documentation index at: https://docs.ellomas.com/llms.txt
Use this file to discover all available pages before exploring further.
FK Strategies
Seedling provides multiple strategies for distributing FK values, handling real-world patterns like Pareto distributions, many-to-many joins, and self-referencing hierarchies.Strategies
Uniform (Default)
Parent rows are selected uniformly at random. Each child row gets a random parent FK.Sequential
Parent rows are assigned sequentially. Useful for ordered data like time-series.Weighted
Some parent rows receive more children than others. Follows a configurable distribution.Exclusive
Each child row gets a dedicated parent row (1:1 relationship).Self-Referencing FKs
For tables with self-referencing foreign keys (e.g.,employees.manager_id → employees.id), Seedling uses a multi-pass generation strategy:
- Pass 1: Generate a batch of rows with NULL in the self-FK column
- Pass 2: Assign FK values from pass 1 rows (or earlier pass rows) to fill in references
| Parameter | Description | Default |
|---|---|---|
max_depth | Maximum hierarchy depth | 5 |
null_probability | Probability a row has no parent (top-level) | 0.1 |