• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

netzkolchose / django-computedfields / 16733364684

04 Aug 2025 08:21PM UTC coverage: 94.464% (-1.3%) from 95.75%
16733364684

Pull #197

github

web-flow
Merge 033fa8d63 into 1259b59f9
Pull Request #197: performance optimizations

546 of 594 branches covered (91.92%)

Branch coverage included in aggregate %.

72 of 94 new or added lines in 3 files covered. (76.6%)

20 existing lines in 1 file now uncovered.

1331 of 1393 relevant lines covered (95.55%)

11.46 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

45.0
/computedfields/backends.py
1
from fast_update.fast import fast_update
12✔
2
from fast_update.update import flat_update
12✔
3
from django.db.models import QuerySet
12✔
4
from typing import Sequence, Any, Iterable
12✔
5

6

7
def FAST(queryset: QuerySet, objs: Sequence[Any], fields: Iterable[str]) -> int:
12✔
8
    return fast_update(queryset, objs, tuple(fields), None, True)
12✔
9

10
def FLAT(queryset: QuerySet, objs: Sequence[Any], fields: Iterable[str]) -> int:
12✔
NEW
11
    return flat_update(queryset, objs, tuple(fields), True)
×
12

13
def SAVE(queryset: QuerySet, objs: Sequence[Any], fields: Iterable[str]) -> int:
12✔
NEW
14
    from .resolver import NotComputed
×
NEW
15
    with NotComputed():
×
NEW
16
        for inst in objs:
×
NEW
17
            inst.save(update_fields=fields)
×
NEW
18
        return len(objs)
×
19

20
def BULK(queryset: QuerySet, objs: Sequence[Any], fields: Iterable[str]) -> int:
12✔
NEW
21
    return queryset.model._base_manager.bulk_update(objs, fields)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc