Code Monkey home page Code Monkey logo

Comments (7)

AaronMoat avatar AaronMoat commented on April 27, 2024 1

Ran a bisect, discovered the performance degradation was 5caff03 (#3457). Raised #3958

cc: @IvanGoncharov

from graphql-js.

AaronMoat avatar AaronMoat commented on April 27, 2024 1

@IvanGoncharov or others on this thread. Can we please organise a release for v16? As per #3967.

I would argue this issue should not be marked complete until consumers can use a fixed version of this security/performance hole, on a stable (non-beta) release channel.

from graphql-js.

trevor-scheer avatar trevor-scheer commented on April 27, 2024

👋 Apollo Server maintainer here. Going to follow along on this issue to track updates. For @IvanGoncharov 's sake it would be nice to minimize the reproduction to exclude apollo server (and add certainty that it's a graphql-js problem).

from graphql-js.

tadhglewis avatar tadhglewis commented on April 27, 2024

@trevor-scheer I'll look at just testing against graphql-js this week and post an update

from graphql-js.

tadhglewis avatar tadhglewis commented on April 27, 2024

I've added a minimal graphql-js example in the same repo. You can run it using node graphql-js.mjs.

The slow parsing performance is still observed here

// 1000 __typename query = Took 1999.3179998397827 milliseconds
// 2000 __typename query = Took 8064.870334148407 milliseconds

We've also reproduced this in a real world scenario on a API and due to it's impact, I consider it a critical issue.

from graphql-js.

AaronMoat avatar AaronMoat commented on April 27, 2024

It looks like (nearly) all the time is spent in OverlappingFieldsCanBeMergedRule.

from graphql-js.

AaronMoat avatar AaronMoat commented on April 27, 2024

Raised #3967 for 16

from graphql-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.