Skip to content

Conversation

@jasonbahl
Copy link
Collaborator

Upgrade Notice

This release contains an internal refactor for how the Type Registry is generated which should lead to significant performance improvements for most users.

While there are no intentional breaking changes, because this change impacts every user we highly recommend testing this release thoroughly on staging servers to ensure the changes don't negatively impact your projects.

New Features

  • #3172: feat: only eagerlyLoadType on introspection requests.

Chores / Bugfixes

  • #3181: ci: replace docker-compose commands with docker compose
  • #3182: ci: test against WP 6.6
  • #3183: fix: improve performance of SQL query in the user loader

actions-user and others added 27 commits July 4, 2024 14:18
- introduce WPGraphQL::set_is_introspection_query and WPGraphQL::is_introspection_query
- Prevent eagerly loading types if the request is not an introspection request
- adjust tests to get the schema using WPGraphQL::get_schema instead of $request->schema
- adjust PostObjectMutationTest which was failing because of invalid mutation, not because the error preventing the post from being deleted
- update RequestTest to expect an exception
…for-introspection-only

fix: only `eagerlyLoadType` on introspection requests
ci: replace `docker-compose` commands with `docker compose`
…n the user and posts table have a large number of entries
…of post_author table as most sites have fewer users than posts so this requires less compute to complete
- update tests to WordPress 5.9
…oader

fix: improve performance of SQL query in the user loader
@jasonbahl jasonbahl merged commit e6983cd into master Aug 8, 2024
@jasonbahl jasonbahl mentioned this pull request Aug 8, 2024
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

Successfully merging this pull request may close these issues.

4 participants