craftcms / cms

Build bespoke content experiences with Craft.
https://craftcms.com
Other
3.22k stars 626 forks source link

[5.x]: GraphQL introspection schema gets larger after merging entries #15557

Open cornedor opened 3 weeks ago

cornedor commented 3 weeks ago

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

  1. Note the size of the introspection schema
  2. Merge two entries
  3. 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

image

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

brandonkelly commented 3 weeks ago

That could maybe be expected if the persisting entry type has more fields than it used to, but definitely seems a little odd.

Can you please send your Composer files and config/project/ folder into support@craftcms.com so we can look into this with your project config?