-
Notifications
You must be signed in to change notification settings - Fork 5
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
Investigate how Gateway performs GraphQL query normalization #40
Comments
@aasseman can you please point @tumaysem to the AutoAgora processor code that does normalization "our way"? |
After some gateway code investigation. queries are matched against agora models with |
If we assume 1- Matches top field names with predicate name For each top field first matched cost is aggregated to calculate the total cost. |
We should be using directly agora library because the code complexity and heavy graphQL language dependent match is prone to frequent changes. Thus required a patch to model providing a more detailed cost result with the matched predicates. |
After wrapping the agora and extend it to provide cost details, I have come to a conclusion that current processing of queries inside agora cost models is fully heuristic and without any normalization similar to semiotic-ai gql utils. |
should we try to upstream AutoAgora processing/normalization to the Gateway? |
We can't upstream the Python code as Agora is in Rust. However @tumaysem is working on documenting (upstream issue) the disparities between how Agora compares queries, and how |
No description provided.
The text was updated successfully, but these errors were encountered: