canonical_url performs poorly

Bug #704585 reported by Robert Collins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Invalid
Critical
Unassigned

Bug Description

canonical_url is thought to perform poorly (quadratic behaviour due to traversing on every call). A ++profile++ trace would help confirm this.

the canonical_url for an object is constant within a readonly (GET) request. So one possible solution is to cache the result for a single transaction of canonical_url on each object.

description: updated
description: updated
Gavin Panella (allenap)
Changed in launchpad:
status: Triaged → In Progress
assignee: nobody → Gavin Panella (allenap)
Gavin Panella (allenap)
Changed in launchpad:
status: In Progress → Triaged
assignee: Gavin Panella (allenap) → nobody
William Grant (wgrant)
tags: added: webapp-infrastructure
Revision history for this message
William Grant (wgrant) wrote :

This isn't showing up as a common problem these days.

Changed in launchpad:
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.