Avatar for the tortoise user
tortoise
tortoise-orm
BlogDocsChangelog

fix: clamp count() at 0 when offset exceeds total

#2208Merged
Comparing
koriyoshi2041:fix/count-negative-offset
(
3be1b35
) with
develop
(
179ea6f
)
CodSpeed Performance Gauge
0%
Untouched
24

Benchmarks

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

Commits

Click on a commit to change the comparison range
Base
develop
179ea6f
-0.13%
fix: clamp count() to limit/offset semantics at the edges
86f54ae
2 days ago
by koriyoshi2041
0%
docs: reference count fix PR in changelog
bb23c76
19 hours ago
by koriyoshi2041
+0.01%
test: format count edge assertions
3be1b35
18 hours ago
by koriyoshi2041
© 2026 CodSpeed Technology
Home Terms Privacy Docs