[Haskell-cafe] Expression problem in the database?
Felipe Almeida Lessa
felipe.lessa at gmail.com
Wed Jul 24 17:23:57 CEST 2013
On Mon, Jul 22, 2013 at 4:00 PM, Manuel Gómez <targen at 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
More information about the Haskell-Cafe