haoliangyu / pg-reactive

PostgreSQL + RxJS = pg-reactive
https://haoliangyu.github.io/pg-reactive/
MIT License
41 stars 2 forks source link

Please document support for multiple queries at the same time #6

Open csillag opened 6 years ago

csillag commented 6 years ago

Hi, reading the readme, it's not clear to me whether or not pg-reactive supports the use case when we need to maintain multiple live queries on the same DB table, with different queries.

(Ie. when we use this in a server environment, querying the data requested by multiple clients at once.)

In this situation, the library

Does this library implement that?

Thank you for explaining. (And also documenting :)

haoliangyu commented 6 years ago

@csillag When you say listen to update notification, do you mean the LISTEN/NOTIFY query with triggers for data comparision?

I understand this use pattern but I have not tried yet. Therefore this library probably does not support it right now. However, it is a perfect use case for observables and it should not take much work to implement.