[5.x]: GraphQL introspection schema gets larger after merging entries
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 3.6k
- Forks
- 705
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 134
Description
What happened?
Description
Our GraphQL introspection schema is very big after upgrading. Since the merge tools are now available, I tried to merge two entries to see how much that would change the size. But instead of getting smaller, the schema increased in size.
Steps to reproduce
- Note the size of the introspection schema
- Merge two entries
- Note the size of the introspection schema
Expected behavior
Introspection schema reduces in size since there are fewer entries.
Actual behavior
Introspection schema size increases. For example, after merging 3 identical entries with 5 fields, from 40,83MB to 41,38MB
Craft CMS version
Craft Pro 5.3.4
PHP version
8.2.20
Operating system and version
Linux 6.5.0-44-generic
Database type and version
MySQL 8.0.36
Image driver and version
Imagick 3.7.0 (ImageMagick 6.9.11-60)
Installed plugins and versions
- Feed Me 6.3.0
- Redactor 4.1.0
- Redactor Anchors 1.5.0
- SEO v5.0.0-rc5
- Super Table 4.0.2
- Typed link field dev-main
- Webhooks 3.1.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue on Craft Pro 5.3.4 with PHP 8.2, MySQL 8.0, and the listed plugins. Record the GraphQL introspection schema size before and after merging identical entries; done means merging entries no longer increases the schema size and the behavior is covered by an appropriate regression check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, php
- Domain
- api
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100