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

Cache streams for queries #7

Closed
simolus3 opened this issue Mar 15, 2019 · 0 comments
Closed

Cache streams for queries #7

simolus3 opened this issue Mar 15, 2019 · 0 comments
Assignees

Comments

@simolus3
Copy link
Owner

When a query has the same sql and variables, we can assume that it will always yield the same data and should consider them to be equal. Thus, when two equal queries construct a stream, we should only create one stream for both queries.
This will also make moor work more efficient in combination with something like

StreamBuilder(
  stream: db.select(users).watch(),
  builder: //...
)

As each invocation of watch would no longer return a different stream.

@simolus3 simolus3 self-assigned this Mar 15, 2019
@abhaykd22 abhaykd22 mentioned this issue Aug 8, 2020
@vladiH vladiH mentioned this issue May 31, 2022
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

No branches or pull requests

1 participant