Avatar for the tortoise user
tortoise
tortoise-orm
BlogDocsChangelog

Fix `db_default` on FK/O2O dropped during `_init_relations`

#2200
Comparing
mixartemev:fix/fk-db-default
(
f7bbc6a
) with
develop
(
179ea6f
)
CodSpeed Performance Gauge
0%
Untouched
24

Benchmarks

24 total
test_update_many_fields_with_update
tests/benchmarks/test_update.py
CodSpeed Performance Gauge
+1%
916.4 µs911.1 µs
test_values_100_rows_many_fields
tests/benchmarks/test_hydration.py
CodSpeed Performance Gauge
0%
3 ms3 ms
test_constructor_100_many_defaults
tests/benchmarks/test_hydration.py
CodSpeed Performance Gauge
0%
34.7 ms34.6 ms
test_chained_filters_10
tests/benchmarks/test_hydration.py
CodSpeed Performance Gauge
0%
5.3 ms5.3 ms
test_field_attribute_lookup_get_for_dialect
tests/benchmarks/test_field_attribute_lookup.py
CodSpeed Performance Gauge
0%
59.4 µs59.2 µs
test_get_few_fields
tests/benchmarks/test_get.py
CodSpeed Performance Gauge
0%
739.3 µs737.5 µs
test_update_few_fields_with_update
tests/benchmarks/test_update.py
CodSpeed Performance Gauge
0%
732.6 µs730.8 µs
test_get_many_fields
tests/benchmarks/test_get.py
CodSpeed Performance Gauge
0%
1.1 ms1.1 ms
test_filter_few_fields
tests/benchmarks/test_filter.py
CodSpeed Performance Gauge
0%
1 ms1 ms
test_filter_many_filters
tests/benchmarks/test_filter.py
CodSpeed Performance Gauge
0%
3 ms3 ms
test_create_many_fields
tests/benchmarks/test_create.py
CodSpeed Performance Gauge
0%
706.2 µs705.5 µs
test_state_building_200_models
tests/benchmarks/test_state_building.py
CodSpeed Performance Gauge
0%
459.8 ms459.6 ms
test_hydrate_100_rows_few_fields
tests/benchmarks/test_hydration.py
CodSpeed Performance Gauge
0%
4 ms4 ms
test_bulk_create_many_fields
tests/benchmarks/test_bulk_create.py
CodSpeed Performance Gauge
0%
10.3 ms10.3 ms
test_update_many_fields_with_save
tests/benchmarks/test_update.py
CodSpeed Performance Gauge
0%
563.9 µs564.6 µs
test_expressions_f
tests/benchmarks/test_expressions.py
CodSpeed Performance Gauge
0%
758 µs759 µs
test_expressions_count
tests/benchmarks/test_expressions.py
CodSpeed Performance Gauge
0%
854.9 µs856.2 µs
test_bulk_create_few_fields
tests/benchmarks/test_bulk_create.py
CodSpeed Performance Gauge
0%
2.6 ms2.6 ms
test_create_few_fields
tests/benchmarks/test_create.py
CodSpeed Performance Gauge
0%
459.3 µs460.5 µs
test_hydrate_100_rows_many_fields
tests/benchmarks/test_hydration.py
CodSpeed Performance Gauge
0%
17.1 ms17.1 ms
test_values_list_100_rows
tests/benchmarks/test_hydration.py
CodSpeed Performance Gauge
-1%
1.5 ms1.5 ms
test_update_few_fields_with_save
tests/benchmarks/test_update.py
CodSpeed Performance Gauge
-2%
403 µs410 µs

Commits

Click on a commit to change the comparison range
Base
develop
179ea6f
-0.04%
Fix db_default on ForeignKey/OneToOne dropped during _init_relations
bc4045a
14 days ago
by mixartemev
+0.08%
Add type annotation to FK field in test for mypy
fc0adba
9 days ago
by mixartemev
-0.07%
Update primary key field declaration syntax
f7bbc6a
8 days ago
by mixartemev
© 2026 CodSpeed Technology
Home Terms Privacy Docs