Return-Path: X-Original-To: apmail-incubator-allura-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-allura-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 39F7410B46 for ; Thu, 2 Jan 2014 23:25:10 +0000 (UTC) Received: (qmail 17551 invoked by uid 500); 2 Jan 2014 23:25:10 -0000 Delivered-To: apmail-incubator-allura-dev-archive@incubator.apache.org Received: (qmail 17533 invoked by uid 500); 2 Jan 2014 23:25:10 -0000 Mailing-List: contact allura-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: allura-dev@incubator.apache.org Delivered-To: mailing list allura-dev@incubator.apache.org Received: (qmail 17523 invoked by uid 99); 2 Jan 2014 23:25:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jan 2014 23:25:10 +0000 X-ASF-Spam-Status: No, hits=-0.1 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of noreply@sourceforge.net designates 216.34.181.60 as permitted sender) Received: from [216.34.181.60] (HELO smtp.ch3.sourceforge.com) (216.34.181.60) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jan 2014 23:25:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.com; s=x; h=Date:References:In-Reply-To:Message-ID:Subject:Reply-To:From:To:MIME-Version:Content-Type; bh=YB0paEGgd20Djam7hTF8uXk2kGgLtPqujERrnKnDKRo=; b=AuOo5i1E6uc0ydcHllNu+bun+AeMpwc9kFDabEqfRA1V2yh5cSwwlBE1NjpOx+HEYE+Cl4zNsTtz/5HCiy6HcSrMSRTQrDHGJEGsAg6uzXp/5+UKu0SPnXzA6IRjORbJAhQiRXGh1brPlt8QAOhUC/9zRF3FNVCA2jvErtex7nc=; Received: from localhost ([127.0.0.1] helo=sfs-alluradaemon-3.v29.ch3.sourceforge.com) by sfs-alluradaemon-3.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Vyrd7-0007gn-36 for allura-dev@incubator.apache.org; Thu, 02 Jan 2014 23:24:45 +0000 Content-Type: multipart/related; boundary="===============4752886055357834079==" MIME-Version: 1.0 To: allura-dev@incubator.apache.org From: "Mykola Kharechko" Reply-To: "[allura:tickets] " <6677@tickets.allura.p.re.sf.net> Subject: [allura:tickets] #6677 User profile's list of projects is slow to build Message-ID:

In-Reply-To: <523b5c85bcf63a14b5289819.tickets@allura.p.sourceforge.net> References: <523b5c85bcf63a14b5289819.tickets@allura.p.sourceforge.net> Date: Thu, 02 Jan 2014 23:24:45 +0000 X-Virus-Checked: Checked by ClamAV on apache.org --===============4752886055357834079== Content-Type: multipart/alternative; boundary="===============2517324006535038328==" MIME-Version: 1.0 --===============2517324006535038328== MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Please look to Allura/allura/ext/user_profile/templates/user_index.html {% for p in user.my_projects() %} {% if h.has_access(p, 'read')() %}
  • {{p.name}}
  • {% endif %} {% endfor %} If user.my_projects() called, is it really necessary to check "if h.has_access(p, 'read')()". I have tried to removed this condition and number of mongo calls have decreased twice. --- ** [tickets:#6677] User profile's list of projects is slow to build** **Status:** in-progress **Labels:** performance 42cc **Created:** Thu Sep 19, 2013 08:20 PM UTC by Dave Brondsema **Last Updated:** Thu Jan 02, 2014 11:07 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. --===============2517324006535038328== MIME-Version: 1.0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: 7bit

    Please look to Allura/allura/ext/user_profile/templates/user_index.html

          {% for p in user.my_projects() %}                                       
        {% if h.has_access(p, 'read')() %}
          <li>      
              <a class="project-name" href="{{p.url()}}">{{p.name}}</a>       
          </li>
        {% endif %}
      {% endfor %}
    

    If user.my_projects() called, is it really necessary to check "if h.has_access(p, 'read')()". I have tried to removed this condition and number of mongo calls have decreased twice.


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

    Status: in-progress
    Labels: performance 42cc
    Created: Thu Sep 19, 2013 08:20 PM UTC by Dave Brondsema
    Last Updated: Thu Jan 02, 2014 11:07 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.

    --===============2517324006535038328==-- --===============4752886055357834079==--