3 ms·
I'm not sure how much I like stuffing random functionality into the database... Looking at the docs: "and then must periodically call the function PQnotifies to
by viraptor 15y ago
I'm not sure how much I like stuffing random functionality into the database... Looking at the docs: "and then must periodically call the function PQnotifies to find out whether any notification events have been received" - it's actually polling via an SQL connection - that means even more persistent connections to the DB, another timer in the application, more difficult connection sharing (two pools rather than one).
Without knowing much about how it works - why would I want to use this system rather than just ZMQ/RMQ/...?
- jeltz 15y agoYou do not have to poll. You can wait on the socket until you get data and only then poll.
- viraptor 15y agoI quoted that part from the documentation - the way I understand it is that I can't detect if I have data (so I cannot "wait on the socket") in any other way than by polling via that function. Is that not correct?