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

Resolves an issue where querying 100+ fields on a relationship causes a pg error #553

Merged
merged 4 commits into from
Sep 25, 2024

Conversation

wesharper
Copy link

@wesharper wesharper commented Sep 23, 2024

What kind of change does this PR introduce?

Resolves #551. Applies the same fix as #390, but for relational queries.

What is the current behavior?

See #551. Current behavior is querying a related entity with 100 fields breaks.

What is the new behavior?

Transpilation works and results are returned.

Additional context

I'm not yet familiar with Rust, so please use additional scrutiny.

While this would certainly unblock my team in the short-term, it seems like this issue indicates an area where a concerted refactor like recursively handling the to_sql operation may be more appropriate in the long run to avoid similar issues in the future.

@wesharper wesharper changed the title Resolves an issue where querying 100+ fields on a relationship transpiles incorrectly Resolves an issue where querying 100+ fields on a relationship causes a pg error Sep 23, 2024
@olirice olirice self-requested a review September 23, 2024 20:44
@olirice
Copy link
Contributor

olirice commented Sep 24, 2024

Sorry for the delay, I'll get this reviewed before EOW (aiming for tomorrow). Looks great at a glance!

@wesharper
Copy link
Author

No worries, thanks for keeping up on it!

Copy link
Contributor

@olirice olirice left a comment

Choose a reason for hiding this comment

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

perfect, thanks for the help

@olirice olirice merged commit d04b6d5 into supabase:master Sep 25, 2024
4 checks passed
@wesharper wesharper deleted the bug-551-too-many-fields branch September 26, 2024 01:28
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.

Cannot query with 100+ fields
2 participants