by sandGorgon · 9y ago · 0 comments
I have been thinking of using Postgresql CTE to do this. When a cycle occurs, I just create a new step to the dB.
Anyone from CRM startups who have interesting learnings here ?
If you were speaking about storing the instances lifecycles, a simple model using a RDBS is to store one row per transition event in a separate table. This is what the papertrail[1] gem does for example.
i was looking at https://sqlsunday.com/2014/05/25/directed-acyclic-graphs-vs-... https://www.qcode.co.uk/post/73 to learn how others have done it