Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The API is too slow, is there any way to speed it up? It takes up to 4.5s to query 9 products. #837

Open
sheinid opened this issue Jan 3, 2024 · 2 comments

Comments

@sheinid
Copy link

sheinid commented Jan 3, 2024

Describe the bug
I use woographql for my headlsess wp e-commerce website. And it takes up to 4.5s to query even a small amount of products.

To Reproduce
Steps to reproduce the behavior:

  1. Go to website
  2. Search the "api" request in the network tab
  3. See the enormous loading time

Expected behavior
I want to speed up this, even 2 seconds of loading would be much better.

Screenshots
Here is the screenshot of Network tab and Payload, Preview, Timing tabs of one of the requests.
image
image
image
image

Desktop (please complete the following information):

  • OS: Windows
  • Browser Chrome
  • Version LTS

Plugin Versions

  • WooGraphQL Version: 0.18.3
  • WPGraphQL Version: 1.19.0
  • WordPress Version: 6.3.1
  • WooCommerce Version: 8.1.1

Additional context
Wordpress is hosted on the DigitalOcean server with 2v regular cpus and 4gb RAM. It is deployed and running as a docker container.

@YishaqG
Copy link

YishaqG commented Jan 5, 2024

Hi @sheinid, I don't think this issue is related to WooGraphQL. Your performance issues could come from too many plugins installed or by your disk speed. If you're using a NetworkFileSystem, throughput is another metric to look at.

@kidunot89
Copy link
Member

kidunot89 commented Feb 8, 2024

@sheinid Can you share any information on how your caching your WordPress installation. Also have you confirmed that your installation isn't being bogged down by any other WordPress plugins using something like WP Query?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants