On 2015-04-17 16:21, Casey Sybrandy wrote:
I was thinking something a bit more specific without having to manually
generate the structs.

For example, let's say I have a JSON document that has a number of
fields in it.  Some are numbers, some are strings, etc.  What I'm
thinking either a) based of the JSON structure or b) based on a schema
that describes the JSON, the objects and/or indices are defined at
compile-time and done so in an optimal manner.  For example, if based on
the schema we know that a field is an enumeration, instead of a inverted
index a simple associative array that contains arrays of matching
document IDs is used instead.  This way, if I search on that specific
field, it can be done in the most efficient way possible.  Also, the
documents themselves would be stored more optimally.

I think this is similar how the D implementation of Thrift works.

--
/Jacob Carlborg

Reply via email to