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

Rewrite postgres querybuilder w/ Slonik #2

Open
Qonfused opened this issue Jul 11, 2024 · 0 comments
Open

Rewrite postgres querybuilder w/ Slonik #2

Qonfused opened this issue Jul 11, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Qonfused
Copy link
Member

Qonfused commented Jul 11, 2024

After discovering slonik-tools and additional type-gen tooling, the querybuilder can be rewritten to incorporate better compile-time checking based on the same postgres tagged-template API as before.

Some issues to address is flattening CTE optimization fences that nesting multiple CTEs creates to allow the query planner to better understand the intent of the query. With the current queries written, this will allow static subqueries to be written more efficiently and avoid fetching additional data from any database table.

@Qonfused Qonfused added the enhancement New feature or request label Jul 11, 2024
@Qonfused Qonfused self-assigned this Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant