Just tried ManagedEsent

Mar 3, 2011 at 9:11 PM

I am a fan now!

I think this idea is very sweet indeed.

A quick question. I experimented with a simple schema that had 2 string fields and populated a persistentdictionary. I then extended the schema with an int field and reopened.

That seemed to work. That made me very happy but I wonder how does it work under the hood? Is a new column added to all records like SQL databases or is it storedmore like a key-value pairs?

Once again I am pretty excited about this (I love simple deployment!)

Regards,

Mårten

 

 

 

 

Mar 3, 2011 at 9:31 PM
Edited Mar 4, 2011 at 3:04 AM

The record format and meta-data representation allow new columns to be added on-the-fly without modifying existing records. When you retrieve the new column from an existing record you will get back NULL (or the default value). Default values are stored separately so it is possible to add a new column with a default value without touching all the records in the table.