incubator-allura-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Bondarenko" <jetm...@users.sf.net>
Subject [allura:tickets] #6677 User profile's list of projects is slow to build
Date Fri, 03 Jan 2014 08:36:47 GMT
Closed #499. `je/42cc_6677`

Removed `has_access` call, as Mykola described earlier.  I don't think we need that, since
`my_projects()` returns project for which user has a named role, and I doubt that named roles
without read permissions is useful.

If I'm wrong, and we do need that check, we still could reduce mongo call count implementing
this check inside `my_projects()`, I think.

Implemented fix cuts mongo calls count in half.  If that's not enough we'll need mongo profiling
information (as Mykola mentioned above) to investigate further.


---

** [tickets:#6677] User profile's list of projects is slow to build**

**Status:** code-review
**Labels:** performance 42cc 
**Created:** Thu Sep 19, 2013 08:20 PM UTC by Dave Brondsema
**Last Updated:** Thu Jan 02, 2014 11:24 PM UTC
**Owner:** nobody

With 54 projects, a ridiculous amount of ming & mongo calls are executed on a profile
page:

~~~~
{
    "url": "/u/brondsem/profile/",
    "uptime": 1820,
    "call_counts": {
        "socket_write": 1,
        "jinja": 1,
        "mongo": 30396,
        "total": 1,
        "socket_read": 14,
        "ming": 1102
    },
    "request_category": "profile",
    "timings": {
        "mongo": 2618,
        "ming": 1328,
        "socket_write": 0,
        "socket_read": 93,
        "total": 4528,
        "jinja": 4478
    }
}
~~~~


---

Sent from sourceforge.net because allura-dev@incubator.apache.org is subscribed to https://sourceforge.net/p/allura/tickets/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/allura/admin/tickets/options.
 Or, if this is a mailing list, you can unsubscribe from the mailing list.
Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message