Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Remove common subexpressions here #42

Open
ltworf opened this issue Sep 3, 2020 · 0 comments
Open

Remove common subexpressions here #42

ltworf opened this issue Sep 3, 2020 · 0 comments
Labels

Comments

@ltworf
Copy link
Owner

ltworf commented Sep 3, 2020

empty = πroom(σ id is None (people ⧓ person_room ⧓ rooms))

full = πroom(σ r==room and i != id ( πr,i (ρ room➡r, id➡i ( people ⧓ person_room ⧓ rooms )) * π room,id (people ⧓ person_room⧓rooms)))

πroom (rooms) - empty - full ⋈ person_room ⋈ people

The same joins are performed multiple times and will not be optimised, which was the entire point of the multiline optimizations.

@ltworf ltworf added the bug label Oct 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant