wohali opened a new issue #1525: Schema extraction
URL: https://github.com/apache/couchdb/issues/1525
 
 
   @janl:
   > I have half an (old) patch that extracts top level fields from a document 
and stores them with a hash in an “attachment” to the database header. So we 
only end up storing doc values and the schema hash. First of all this trades 
storage for CPU time (I haven’t measured anything yet), but more interestingly, 
we could use that schema data to do smart things like auto-generating a 
validation function / mango expression based on the data that is already in the 
database. And other fun things like easier schema migration operations that are 
native in CouchDB and thus a lot faster than external ones. For the curious 
ones, I’ve got the idea from [V8’s property access 
optimisation](https://github.com/v8/v8/wiki/Design%20Elements#fast-property-access)
 strategy.
   
   @kocolosk:
   > Cloudant has some work on a metadata system that computes the schemas for 
various clusters of documents in a database. First use case for us was 
schlepping the data into a relational data warehouse for analytics. Not sure if 
we can open source the code but agreeing on a schema format would be good.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to