Commit aa9d990
authored
[1/n] move db schema into its own crate (#7880)
While working on Diesel-related code, I noticed that schema generation is both
_very_ large (~450k lines of code currently), and also can be separated out
into its own crate. Spent a couple of hours doing so and I think I quite like
the result! The most important thing here is that the schema code is completely
independent of the rest of Omicron, so it can be compiled in parallel with
crates like omicron-common.
For me, a full `cargo check --all-targets` in Omicron goes from 2m04s to 1m51s,
which is a really nice speedup. Incremental builds should also be faster due to
the parallelization and reduction of crate size. (But this doesn't really touch
nexus-db-queries, which is the worst offender at the moment.)1 parent cb3090b commit aa9d990
File tree
211 files changed
+1612
-1701
lines changed- dev-tools/omdb
- src/bin/omdb
- db
- nexus
- db-macros
- outputs
- src
- db-model
- src
- db-queries
- src/db
- datastore
- deployment
- queries
- db-schema
- src
- metrics-producer-gc
- src
- reconfigurator
- execution
- src
- rendezvous
- src
- src/app
- background/tasks
- sagas
- tests/integration_tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
211 files changed
+1612
-1701
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| 223 | + | |
222 | 224 | | |
223 | 225 | | |
224 | 226 | | |
| |||
483 | 485 | | |
484 | 486 | | |
485 | 487 | | |
| 488 | + | |
486 | 489 | | |
487 | 490 | | |
488 | 491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments