On Mon, Jul 22, 2013 at 4:00 PM, Manuel Gómez <tar...@gmail.com> wrote: > * I could sacrifice relational integrity and store the expression > serialized, perhaps as an AST represented in JSON or somesuch — > although the rest of the data model is a rather traditional, > normalized relational schema, so this is undesirable in my situation > if only for consistency.
A hybrid solution could be storing the expression as a string on an entity's field *and* creating a new entity for each foreign reference. In order words, instead of storing the whole AST in the database, store it as a list on the database and the whole thing again in a field. -- Felipe. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe