Skip to content

Conversation

@andheiberg
Copy link
Collaborator

@andheiberg andheiberg commented Jun 27, 2017

Completely forgot that my mods were in the overblog fork.

I quickly switched it out for using the typeresolver. Haven't tested it though.

It's now been thoroughly tested and deployed to a test instance in prod mode. Everything is identical to devel except for introspection which has a minor flaw in the sense that types implementing an interface won't be availible from search unless they're referenced directly somewhere in the schema. This is a bug with webonyx that we should fix separately.

How much faster is it? ~30ms per request in prod.

For a company.name request it's 33ms and for a larger request getting shareholdings and using more of the schema it's 30ms. If you used the entire schema it would obviously have no difference.

@andheiberg andheiberg force-pushed the lazy-type-resolution branch from d86c494 to 244e6be Compare June 27, 2017 11:24
@andheiberg andheiberg force-pushed the lazy-type-resolution branch from ffd5833 to e7664c7 Compare June 27, 2017 11:57
…edServiceMappingPass

I see now that in fact there are many things that relu on this…

- TypeResolver
- ResolverResolver
- MutationResolver
- AccessResolver
@andheiberg andheiberg force-pushed the lazy-type-resolution branch 2 times, most recently from 10219be to 0ea7250 Compare June 27, 2017 13:22
Sadly further layers of the stack requires modification but this is fine for now.
@andheiberg andheiberg force-pushed the lazy-type-resolution branch from af5dab5 to 6a9f6df Compare June 27, 2017 15:25
@andheiberg andheiberg merged commit 83cce53 into graphql-schema-files Jun 28, 2017
@andheiberg andheiberg deleted the lazy-type-resolution branch June 28, 2017 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants