Skip to content

Multi join aggregation performance #7506

Answered by winnerlein
martinlehoux asked this question in Q&A
Discussion options

You must be logged in to vote

You're using many-to-many links in EdgeDB (multi link without contraint exclusive), while you're using one-to-many links in SQL. EdgeDB implicitly creates a join-table for multi links. I'd change the schema to use a single link from review/order to product, and a computed backlink for ease of use.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@martinlehoux
Comment options

@winnerlein
Comment options

@martinlehoux
Comment options

Answer selected by martinlehoux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants