Re:The dark side of GraphQL: performance
by CharlesW on Wednesday January 01, 2020 @08:25PM
(#21932184)
I have no doubt. The unfortunate bit is that his tweet uses "GraphQL" to refer to a specific implementation (Apollo Server) of GraphQL rather than GraphQL itself.
[ Parent
| on HN ]
Re:The dark side of GraphQL: performance
by hn_throwaway_99 on Wednesday January 01, 2020 @10:28PM
(#21932780)
But Apollo Server is by far the most common implementation of GraphQL servers, and the OP's thesis based on the twitter thread is that type-checking and validation are responsible for the slowdown, and type-checking and validation are inherent to GraphQL.
Re:The dark side of GraphQL: performance
by wp381640 on Wednesday January 01, 2020 @08:46PM
(#21932291)
It would be like posting "The dark side of SQL" for a slow MySQL query
Re:The dark side of GraphQL: performance
by NotSammyHagar on Wednesday January 01, 2020 @10:07PM
(#21932682)
But there are dark sides to using sql, often from the abstraction that sql provides.
Maybe the optimizer picks a poor plan and you can't figure out how to make it work better. Maybe the schema has redundancy you can't change or the indexes aren't suitable for that query. Maybe it's auto parameterizing constants and the query with the problem has a parameter causing different behavior than the original constant used in optimizing the query, or maybe your query with 1000 elements in an in list worked great in memsql or whatever but is slow unexpectedly in the database you ported your app to. There are downsides to everything.