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

Allow SUBSCRIBE ... UP TO over http #27998

Open
RobinClowers opened this issue Jul 2, 2024 · 3 comments · May be fixed by #28000
Open

Allow SUBSCRIBE ... UP TO over http #27998

RobinClowers opened this issue Jul 2, 2024 · 3 comments · May be fixed by #28000
Labels
C-feature Category: new feature or request

Comments

@RobinClowers
Copy link
Contributor

Feature request

Currently, no subscribe queries are allowed over the http interface. It would be useful if you could run a bounded subscribe (SUBSCRIBE ... UP TO) over http.

@RobinClowers RobinClowers added the C-feature Category: new feature or request label Jul 2, 2024
@maddyblue maddyblue linked a pull request Jul 2, 2024 that will close this issue
5 tasks
@maddyblue
Copy link
Contributor

#28000 (comment) for why this is not a simple PR that just enables this feature.

@maddyblue
Copy link
Contributor

As another possibility: if we added a CONSOLIDATE keyword to SUBSCRIBE that produced (row, diff) pairs (no timestamp, it is assumed to be the UP TO timestamp) would that solve your problem? We could make that return a normal rows object. Or do you need the fine grained timestamped updates?

@RobinClowers
Copy link
Contributor Author

For the specific use case I had in mind, just the values would be fine. That said, I don't know if it's worth adding another option that changes the format just for this case? I can imagine other cases where I wanted to graph or show a table of previous hydration times (or other introspection data that changes slowly), and I would have to fall back to a websocket connection for those cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: new feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants