cayleygraph / cayley

An open-source graph database
https://cayley.io
Apache License 2.0
14.86k stars 1.25k forks source link

Virtual predicates #669

Open dennwc opened 6 years ago

dennwc commented 6 years ago

Use #668 to store queries in database. Next, allow to register virtual predicates that refer these queries. Shapes optimizer will run a rewrite pass to detect predicates that are registered as virtual and will add a specified subquery to the tree. Will require #667 to be implemented.

iddan commented 5 years ago

We can take notes from Postgres: https://pgdash.io/blog/postgres-12-generated-columns.html