label-studio icon indicating copy to clipboard operation
label-studio copied to clipboard

fix: DEV-2285: Improve performance of list of projects

Open dvwright opened this issue 2 years ago • 3 comments

  • use django cache for projects list
    • for now uses file based but could use any available, memory, redis, etc. it's just a config change.

dvwright avatar Apr 29 '22 16:04 dvwright

Codecov Report

Merging #2286 (a1ad8ab) into develop (55f09c7) will increase coverage by 0.83%. The diff coverage is n/a.

:exclamation: Current head a1ad8ab differs from pull request most recent head 9160e1d. Consider uploading reports for the commit 9160e1d to get more accurate results

@@             Coverage Diff             @@
##           develop    #2286      +/-   ##
===========================================
+ Coverage    77.00%   77.84%   +0.83%     
===========================================
  Files          144      138       -6     
  Lines        10411    10028     -383     
===========================================
- Hits          8017     7806     -211     
+ Misses        2394     2222     -172     
Impacted Files Coverage Δ
label_studio/label_studio/users/apps.py 0.00% <0.00%> (-100.00%) :arrow_down:
label_studio/label_studio/webhooks/apps.py 0.00% <0.00%> (-100.00%) :arrow_down:
label_studio/label_studio/data_export/apps.py 0.00% <0.00%> (-100.00%) :arrow_down:
label_studio/label_studio/data_manager/apps.py 0.00% <0.00%> (-100.00%) :arrow_down:
label_studio/label_studio/organizations/apps.py 0.00% <0.00%> (-100.00%) :arrow_down:
label_studio/label_studio/labels_manager/apps.py 0.00% <0.00%> (-100.00%) :arrow_down:
...tudio/label_studio/projects/functions/next_task.py 84.56% <0.00%> (-1.67%) :arrow_down:
label_studio/label_studio/users/functions.py 59.57% <0.00%> (-1.66%) :arrow_down:
label_studio/label_studio/projects/models.py 82.25% <0.00%> (-0.91%) :arrow_down:
label_studio/label_studio/projects/api.py 87.75% <0.00%> (-0.83%) :arrow_down:
... and 48 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 55f09c7...9160e1d. Read the comment docs.

codecov[bot] avatar Apr 29 '22 16:04 codecov[bot]

@makseq can you review this when you have time - https://heartex.atlassian.net/browse/DEV-2285 thanks!

dvwright avatar May 03 '22 23:05 dvwright

this isn't going in

dvwright avatar May 13 '22 23:05 dvwright