I don't really grasp what you're trying to do, but 2 things comeHmm, on metakit 2.4.9.3 this returns a Read only view. vw.copy() returns an in-memory view.
to mind: 1) view.rename("value", "newvalue") might help
2) tmp = vw[:] will turn a ROViewer into a (in memory) View, so you
could add a column.
As Gordon was saying, you could try this.
prop = metakit.property("S", "type")
t = vw.flatten(vw.new).copy()
t.addproperty(prop)
for row in t:
row.type = "new"t2 = vw.flatten(vw.old).copy()
t2.addproperty(prop)
for row in t2:
row.type = "old"metakit.dump(t.union(t2).project(t.id, t.key, t.val, t.type))
I wouldn't worry too much about processing time - what you're doing is already pretty intensive.
-- Gordon
_____________________________________________
Metakit mailing list - [EMAIL PROTECTED]
http://www.equi4.com/mailman/listinfo/metakit
_____________________________________________ Metakit mailing list - [EMAIL PROTECTED] http://www.equi4.com/mailman/listinfo/metakit
