Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A thing about polymorphic references is the schema definitely can be trivial in relational db.

Using a polymorphic setup in something like Postgres is where I like to start any modeling.. until the complexity of queries reveal themselves.

The further one goes down that rabbit hole, the sql can easily become more and more complex for the kinds of queries that become beneficial in polymorphic or graph type databases.

Where SQL gets complex and convoluted over time to handle polymorphic queries, is one place where polymorphic databases can simplify the complex.

Using a polymorphic database may be worth it for some or all of the schema. It seems reasonable to extend something like Postgres to sync and allow reads or writes from the polymorphic side.

Happy to learn and listen from alternatives approaches.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: