Rules and decision logic triggered by / acting on JSONB nodes inPostgres

Поиск
Список
Период
Сортировка
От Amit Kothari
Тема Rules and decision logic triggered by / acting on JSONB nodes inPostgres
Дата
Msg-id 20108283-DE54-4754-8371-B34547BE0739@tallyfy.com
обсуждение исходный текст
Ответы Re: Rules and decision logic triggered by / acting on JSONB nodes inPostgres
Список pgsql-general
Hi all,

I’m sorry if this question is off-topic for postgres-core, but didn’t know where else to ask.

We’ve built a workflow and BPM (business process management) tool with pg as the database, and we’d like to explore
conditionallogic within steps in a workflow being triggers as functions when a certain JSONB node changes. 

An example -> If (form field contains “bob”) then (change state of another object)

In effect, since all our objects are JSONB - we wanted to “listen” to a change in one JSONB node in order to make a
correspondingchange in another JSONB node.  

Can this be either native in postgres, or even a pg function?

In general - how do people approach rules and decision logic in Postgres at a very large scale e.g. say 100,000 rules
thatmust be evaluated on a commit?  

If it makes more sense - please see the example screenshot on our features page at https://tallyfy.com/features - which
visualizesconditional branching. 

Thanks,
Amit
https://tallyfy.com

В списке pgsql-general по дате отправления:

Предыдущее
От: Dave Peticolas
Дата:
Сообщение: Re: locate DB corruption
Следующее
От: Olivier Leprêtre
Дата:
Сообщение: TR: redundant constraint_schema