Re:Postgres data types you should consider using
by chrstphrhrt on Wednesday August 29, 2018 @06:33PM
(#17872664)
Love LTREE! Used it for domain label hierarchies (multiple roots - an "ontology") for a data science team to be able to train many different models with shared/overlapping label sets (an ensemble of models for various domains). It makes queries to get training data powerful since you can ask for "all descendants of X" or "ancestors of Y where Z".
Re:Postgres data types you should consider using
by kqr on Thursday August 30, 2018 @12:08AM
(#17874026)
Nifty indeed -- that may very well invalidate some old knowledge I have about manually representing trees in relational DBs, supported by recursive CTEs...
[1] https://www.postgresql.org/docs/10/static/ltree.html