Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.43k stars 1.99k forks source link

/me/sites times out for users with thousands of sites #96640

Open dsas opened 3 days ago

dsas commented 3 days ago

Quick summary

See the parent issue for more information

/me/sites returns a HTTP 504 - gateway timeout for users with ~3000 sites.

/me/sites doesn't currently have pagination uggcf%3N%2S%2Suers.yv%2S%3Suggcf%3N%2S%2Sbcratebx.n8p.pbz%2Sfbhepr%2Skers%2Sjcpbz%2Schoyvp.ncv%2Serfg%2Sjcpbz%2Qwfba%2Qraqcbvagf%2Spynff.jcpbz%2Qwfba%2Qncv%2Qzr%2Qfvgrf%2Qraqcbvag.cuc%3Se%3Q5o812359%236-og It does have some performance instrumentation with statsd.

Steps to reproduce

  1. Switch to the user mentioned in the first message here: p1732188303637839-slack-C07GZ2UA3TN
  2. Open up developer tools and switch to the network tab
  3. Go to /sites
  4. In the network tab, filter for sites and wait

What you expected to happen

A list of sites

What actually happened

A HTTP 504

Impact

One

Available workarounds?

No and the platform is unusable

If the above answer is "Yes...", outline the workaround.

No response

Platform (Simple and/or Atomic)

No response

Logs or notes

No response

github-actions[bot] commented 3 days ago

OpenAI suggested the following labels for this issue: