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

3641 complexity score #250

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

jdhayhurst
Copy link
Contributor

@jdhayhurst jdhayhurst requested review from javfg and remo87 January 31, 2025 16:56
javfg
javfg previously approved these changes Feb 7, 2025
case object TooComplexQueryError extends Exception("Query is too expensive.") with Logging {
case object TooComplexQueryError
extends Exception(
"Query is too expensive. The response size is likely to be too large. Try requesting smaller page sizes"
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not too sure about this bit Try requesting smaller page sizes because it would suggest that the queries have pagination and reducing the size could solve the issue and that's not always the case

Copy link
Contributor Author

@jdhayhurst jdhayhurst Feb 7, 2025

Choose a reason for hiding this comment

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

Thanks, that's true in some cases. How about this?

"Query is too expensive. The response size is likely to be too large. Try requesting smaller page sizes or fewer items"

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.

Include page size and query depth in the complexity calculation
3 participants