Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: resolver logic #46

Merged

Conversation

simone-sanfratello
Copy link
Contributor

@simone-sanfratello simone-sanfratello commented Feb 22, 2024

This PR is mean to refactor the resolver logic and and what it entails.

The idea behind is to plan the query to perform on subgraphs on the first stage, then perform them all, and keep the query tree structure to merge the results, while the current logic make the merging operation detached from the query plan, resulting complicated to implement.

To achieve that, a big refactor is needed, in logic and code design.

This logic now is deadly simple, but can be improved, for example executing parallel queries on the same subgrahs when possible, operating on a single function; there are also other parts that can be improved as well, in performance or logic.

To be retro-compatible, all the tests are been keep.

It also add logger in options.

@simone-sanfratello simone-sanfratello marked this pull request as draft February 22, 2024 17:02
@simone-sanfratello simone-sanfratello marked this pull request as ready for review February 27, 2024 14:03
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mcollina mcollina merged commit 94221c6 into platformatic:main Feb 29, 2024
4 checks passed
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