Giter Site home page Giter Site logo

Comments (6)

nathanmarcos avatar nathanmarcos commented on July 19, 2024 1

Hello @abernix, I tested it, and it works just fine. 🎉

Thanks @Geal for the quick fix. 🚀

from router.

abernix avatar abernix commented on July 19, 2024 1

This was released in https://github.com/apollographql/router/releases/tag/v1.45.1 via #5007. Note that we also brought in another (more critical) hashing fix to that release.

from router.

Geal avatar Geal commented on July 19, 2024

I think that is related to #4883
The query plan cache key uses a hash of the query that takes into account the relevant parts of the schema to avoid planning again queries that are not affected by a schema change, but I don't think it takes into account introspection queries.
We will soon separate introspection queries from the query planner cache so that will be solved definitely then, but in the meantime I think we should fix this quickly

The schema aware hash is in :

pub(crate) fn hash_query(
schema: &'a schema::Schema,
executable: &'a executable::ExecutableDocument,
operation_name: Option<&str>,
) -> Result<Vec<u8>, BoxError> {
let mut visitor = QueryHashVisitor::new(schema, executable);
traverse::document(&mut visitor, executable, operation_name)?;
Ok(visitor.finish())
}

from router.

abernix avatar abernix commented on July 19, 2024

Thanks for opening this, @nathanmarcos. We're working on a 1.45.1 patch release with a couple things right now. In the meantime, are you in any position to be able to try the PR that is opened that purports to fix this (#5007)? (If you necessitate a Docker image or something, we could probably make that happen.)

from router.

abernix avatar abernix commented on July 19, 2024

Thanks for the validation, @nathanmarcos. Just to set expectations, it'll probably be a Friday release with that above patch and probably one other smaller fix.

from router.

nathanmarcos avatar nathanmarcos commented on July 19, 2024

No problem. That sounds good, thanks @abernix . 😉

from router.

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.