• Resolved michaeluchiha

    (@michaeluchiha)


    Hi,

    I am trying to load 3000 pages/post types but I think it cuts off at around 800. I then want to be able to paginate through them.

    Please let me know how I can fetch so many posts and have a search function that can search through this amount using graphql

Viewing 1 replies (of 1 total)
  • Plugin Support Joseph Fusco

    (@joefusco)

    Loading to much data in a single request will likely cause memory problems and timeouts on your WordPress server.

    Instead of trying to fetch everything and paginating on the client, I would recommend paginating with smaller requests to GraphQL. You can read more about GraphQL and pagination here.

    As far as search goes, I would recommend the same thing; execute your search request against the WPGraphQL endpoint and paginate using WPGraphQL. Hopefully this information helps!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.