Open vt-rc opened 3 months ago
I am trying to pickle and cache schema for performance reason, but I am unable to do so. I tried the following after Schema is generated from graphene.types.Schema
Note that this requires Alpha release of latest Graphql-Core
pickle.dump(self.graphql_schema, f)
_pickle.PicklingError: Can't pickle <XxxxxNodeConnection meta=<ConnectionOptions name='XxxxxNodeConnection'>>: attribute lookup XxxxxNodeConnection on graphene.types.objecttype failed
It should give me a proper pickled data
to cache large schema and reduce start up load time.
I am trying to pickle and cache schema for performance reason, but I am unable to do so. I tried the following after Schema is generated from graphene.types.Schema
Note that this requires Alpha release of latest Graphql-Core
pickle.dump(self.graphql_schema, f)
_pickle.PicklingError: Can't pickle <XxxxxNodeConnection meta=<ConnectionOptions name='XxxxxNodeConnection'>>: attribute lookup XxxxxNodeConnection on graphene.types.objecttype failed
It should give me a proper pickled data
to cache large schema and reduce start up load time.