Project

General

Profile

Actions

Bug #14259

closed

product API call with 'enabled=true' slow, causing product page to load slowly

Added by Chris Duryee about 8 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Performance
Target version:
Fixed in Releases:
Found in Releases:

Description

The product listing page takes about 5-7 seconds to load with 10 custom products and 7 RH products enabled.

It looks like the 'enabled=true' flag when calling the products API has something to do with this. For example:

# time curl -sk 'https://admin:changeme@localhost/katello/api/products?organization_id=3&page=1&paged=true&search=&sort_by=name&sort_order=ASC' > /dev/null

real    0m1.853s
user    0m0.034s
sys     0m0.024s

# time curl -sk 'https://admin:changeme@localhost/katello/api/products?enabled=true&organization_id=3&page=1&paged=true&search=&sort_by=name&sort_order=ASC' > /dev/null

real    0m4.246s
user    0m0.024s
sys     0m0.028s

There is a 'self.enabled' method on the product model that may need investigation.

Actions #1

Updated by Eric Helms about 8 years ago

  • translation missing: en.field_release set to 143
Actions #2

Updated by Mike McCune almost 8 years ago

  • Assignee set to Adam Price
Actions #3

Updated by Adam Price almost 8 years ago

  • Bugzilla link set to 1330307
Actions #4

Updated by The Foreman Bot almost 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/5991 added
Actions #5

Updated by Anonymous almost 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by The Foreman Bot almost 8 years ago

  • Pull request https://github.com/Katello/katello/pull/6012 added
Actions #7

Updated by Chris Duryee almost 8 years ago

  • Status changed from Closed to Assigned
Actions #8

Updated by Adam Price almost 8 years ago

  • Status changed from Assigned to Ready For Testing

PR #6012 has been merged.

Actions #9

Updated by Chris Duryee almost 8 years ago

  • Status changed from Ready For Testing to Closed

both PRs merged, moving issue to closed

Actions

Also available in: Atom PDF