pranadb icon indicating copy to clipboard operation
pranadb copied to clipboard

Push queries

Open purplefox opened this issue 3 years ago • 0 comments

Currently we use push queries internally in order to compute rows to update a materialized view.

We could also allow users to execute push queries from their applications and have their applications receive streams of results.

For example, an application could execute a query to receive any updates from a customer's account by executing the following push query:

select * from customer_balances where customer_id=12345

Where customer_balances is a MV which maintains customer balances.

As the customer's account balance changes the app would be sent changes where it could render them.

purplefox avatar Sep 30 '21 15:09 purplefox