openfoodfoundation / openfoodnetwork

Connect suppliers, distributors and consumers to trade local produce.
https://www.openfoodnetwork.org
GNU Affero General Public License v3.0
1.09k stars 708 forks source link

Performance issues on enterprise pages #8020

Open filipefurtad0 opened 2 years ago

filipefurtad0 commented 2 years ago

Description

The enterprise pages perform poorly and have very high response times (see distribution, pics below). This concerns:

For more context see:

Expected Behavior

Pages should have a T = 4s.

Actual Behaviour

T(p50) is about ca. 8.5 s for /enterprise_relationships page; if the user is logged in as superadmin response times of over 50s have been observed (seen on p99 percentile).

Steps to Reproduce

  1. Best perceived logged in as superadmin on a large instance
  2. Open the browser console and visit the relevant pages:
  3. /admin/enterprises
  4. /admin/enterprise_relationships
  5. See also Datadog: i) env:production service:railsoperation_name:rack.requestresource_name:"Admin::EnterprisesController#index" ii) env:production service:railsoperation_name:rack.requestresource_name:"Admin::EnterpriseRelationshipsController#index"

Animated Gif/Screenshot

Enterprise relationships (Datadog link)

image

Enterprises (Datadog link)

image

Workaround

Waiting til the content is loadable and the page is usable...

Severity

bug-s3: a feature is broken but there is a workaround

Your Environment

Possible Fix

Possible fixes could be:

Issue list

Matt-Yorkley commented 2 years ago

Notes: