graphql-platform icon indicating copy to clipboard operation
graphql-platform copied to clipboard

Slow schema generation

Open FreddyFox1 opened this issue 3 years ago • 2 comments

Is your feature request related to a problem?

Hi everyone! We with my team, using your product Banana Cake Pop on .NET Core platform. Often when we debug our app, we collide with so slow load of schema in banana. How can we fix it? Cuz for any start in debug mode we can not load schema every time its takes so much time.

I tried Add services.AddGraphQLServer().Initialize Startup() but no effect, i get error "Schema Fetching Failed".

Best wishes.

Product

Banana Cake Pop

FreddyFox1 avatar Jun 27 '22 10:06 FreddyFox1

Maybe i mistakenly, i saved graphql schema in file, then i load her from file and fetching schema complete for 1 sec. When i try execute any query in banana any way i need wait for 3 mins.

FreddyFox1 avatar Jul 12 '22 10:07 FreddyFox1

Maybe i mistakenly, i saved graphql schema in file, then i load her from file and fetching schema complete for 1 sec. When i try execute any query in banana any way i need wait for 3 mins.

Yes, it is happening to me too. Even with a really simple query type, the banana cake pop load time to get the schema takes too much.

alfosua avatar Aug 31 '22 04:08 alfosua

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 29 '22 04:12 stale[bot]

Any one can help me ? 😟

FreddyFox1 avatar Apr 05 '23 10:04 FreddyFox1

I have answer for this. When graphql starts, he parsing all XML comments in class where he hasn't a attribute [GraphQLDescription("your summary here")], like <summary></summary> this so slow process. To resolve this problem, you need exhange all your summary for the [GraphQLDescription("your summary here")] attribute.

FreddyFox1 avatar Apr 10 '24 09:04 FreddyFox1