GraphQLSchema object will be used to process graphQL request. This object can be generated once and could be reused multiple times until any meta changes occurs. But my question is how can I cache this object directly in my JVM, since its size is huge (around 17MB 😳). According to my application, I need to create different schema for different users. Is there any work around for cache the object? Or any optimisation techniques?
String interning technique can be used to reduce String object size a bit. But this has to be done from their end. Looking for any other quick solutions.
Bala is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.