Olli Kortelahti
04/16/2025, 6:41 AM--select elementary after the initial setup?kapa.ai
04/16/2025, 6:41 AMkapa.ai
04/16/2025, 6:41 AMdbt run --select elementary after the initial setup except in specific cases. According to the knowledge sources: 1. You should run dbt run --select elementary only: - When you first install Elementary in an environment to create the Elementary tables - When you upgrade to a new minor version of Elementary (e.g., from 0.4.X to 0.5.X) as schema changes may have been made 2. After the initial setup, Elementary's on-run-end hooks automatically populate and update the tables with new data during your regular dbt runs, so there's no need to run the Elementary models separately. As explained by Elementary staff: "Elementary tables are being filled by on-run-end hooks, not by a regular dbt run. Because of that, you should use --select elementary only on your first Elementary set up, or after a version update in case there's a change in the Elementary table/schema structure." [Slack forum answer](https://slack.com/archives/C02CTC89LAX/p1738663328669989) It's worth noting that running dbt run --select elementary more frequently than needed is harmless, but unnecessary for normal operations.