pg-live-query | realtime query update events in PostgreSQL | SQL Database library
kandi X-RAY | pg-live-query Summary
kandi X-RAY | pg-live-query Summary
(Almost) realtime query update events in PostgreSQL
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pg-live-query
pg-live-query Key Features
pg-live-query Examples and Code Snippets
Community Discussions
Trending Discussions on pg-live-query
QUESTION
So I have a custom Postgresql query that retrieves all rows within a specified longitude latitude radius, like so:
...ANSWER
Answered 2017-Oct-23 at 21:42Async & LISTEN/NOTIFY is the right way!
You can add trigger(s) on UPDATE/INSERT and execute your query in the body of trigger, save number of rows in simple table and if value changed call NOTIFY. If you need multiple params combinations in query you can create/destroy triggers from inside your program.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pg-live-query
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page