GraphQL Schema Caching or Optimization Ideas

GraphQL Schema Caching or Optimization Ideas


0

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?

GraphQL Object

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.

New contributor

Bala is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


Load 5 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *