#6306 _my_trackers is slow if you are part of many projects

v1.0.0
closed
nobody
General
nobody
2015-08-20
2013-05-30
No

_my_trackers takes a very long time to run if you are part of many projects. Suggestion: instead of running my_projects() and then doing a has_access() check for each of them, get the list of admin-access projects more directly. Perhaps there is an existing function to do that or my_projects() could be modified to specify a specific role.

Related

Tickets: #6306

Discussion

  • Igor Bondarenko - 2013-05-31
    • status: open --> in-progress
     
  • Igor Bondarenko - 2013-05-31

    Created #368: [#6306] _my_trackers is slow if you are part of many projects (3cp)

     

    Related

    Tickets: #6306

  • Igor Bondarenko - 2013-06-21
    • status: in-progress --> code-review
     
  • Igor Bondarenko - 2013-06-21

    Closed #368. je/42cc_6306

    On my sandbox I've got following improvements in _my_trackers() execution time:

    • with cold credentials/ming cache: ~121ms -> ~90ms
    • with warm credentials/ming cache: ~4ms -> ~2ms

    Don't sure if it sufficient for a production environment, but I think you can merge it and observe if it's enough.

     
    • status: code-review --> closed
    • Milestone: forge-backlog --> forge-jun-28
     

Log in to post a comment.