You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The performance has been improved after the modification
Schema scan discover Query...
Schema scan discover Query field 5611, time elapsed 27539ms
SchemaClassScanner.kt:86 - Schema scan discover Mutation...
Schema scan discover Mutation field 16461, time elapsed 69114ms
Schema scan discover Subscription...
Schema scan discover Subscription field 0, time elapsed 0ms
SchemaClassScanner.kt:109 - Schema scan Queue time elapsed 4403ms
But, I failed to startup, and I found a lot of the following information in the log
Schema type was defined but can never be accessed, and can be safely deleted: XXX
...
Resolver was provided but no methods on it were used in data fetchers and can be safely deleted: XXX
...
I just want to improve the startup speed, what do you any suggestions?
The text was updated successfully, but these errors were encountered:
I want to suggest an idea and checked that ...
Description
I have a big project that contains the too many graphqls, SchemaClassScanner takes 5 minutes to execute
Use Cases
I added some logs in method scanForClasses,This is my log output
I tried to solve this problem using parallel stream
type.getExtendedFieldDefinitions(extensionDefinitions).parallelStream().forEach { field ->
graphql-java-tools/src/main/kotlin/graphql/kickstart/tools/SchemaClassScanner.kt
Line 268 in b5d41b1
private val queue = Collections.synchronizedSet(linkedSetOf<QueueItem>())
graphql-java-tools/src/main/kotlin/graphql/kickstart/tools/SchemaClassScanner.kt
Line 46 in b5d41b1
The performance has been improved after the modification
But, I failed to startup, and I found a lot of the following information in the log
I just want to improve the startup speed, what do you any suggestions?
The text was updated successfully, but these errors were encountered: