OWASP / OWASP/Nest

Implement Model Property Caching with cached_property

Open
#2,990 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
451
Forks
702
Avg merge
22h 59m
Merged PRs (30d)
91

Description

Implement Model Property Caching with cached_property
Estimated effort: 2 points
Files: backend/apps/owasp/models/*.py, backend/apps/github/models/*.py

Replace @property with @cached_property for expensive operations that don't change during the object lifecycle:

Properties that make database queries
Properties with expensive calculations
Properties that call external APIs

**Are you going to work on implementing this?**

- [x ] Yes
- [] No

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.