train of thoughts about how to implement the SQL VIEW/MATERIALIZED VIEW concept in rethinkDB