gentics / mesh-incubator

Project which is home for planned enhancements for Gentics Mesh
3 stars 0 forks source link

GraphQL filter creation slow #54

Open Jotschi opened 6 years ago

Jotschi commented 6 years ago

GraphQL filter type creation is slow. Check whether this can be optimized.

I think the actual problem is in NodeFilter#createFieldFilter

jprofiler-graphql-filter

Jotschi commented 6 years ago

A very basic query spends currently 63% of the time with the type generation. Let me know whether you have ideas to optimize this. It may be a good idea to cache the types for certain schema versions.

philippguertler commented 6 years ago

Currently, whenever a node filter is created, all schemas of the current project is queried from the database and displayed. We could optimize this by caching the node filter by schema name and version.