I have spent some time trying to use Magma properly, hoping that some things that weren't clear at the beginning will eventually come clear. But one thing I still don't get: transactions. I understand transaction semantics in RDMS, but what does it mean in magma?<br clear="all">
<div><br></div><div>What is the difference between modifying an object inside and outside transaction? This two code snippets don't show any difference.</div><div><br></div><div>session := ...</div><div>model := session root model.</div>
<div>model firstName: 'foo'.</div><div>session begin.</div><div>model lastName: 'bar'.</div><div>session commit.</div><div><br></div><div><div>session := ...</div><div>model := session root model.</div><div>
session begin.</div><div>model firstName: 'foo'.</div><div>model lastName: 'bar'.</div><div>session commit.</div></div><div><br></div><div><br></div><div>They both commit both firstName and lastName properties, so I don't see any use of opening and ending a transaction. Couldn't there just be a commit message, so that you are always in a transaction, as that is how it apparently works?</div>
<div><br></div><div><br></div>-- <br>Milan Mimica<br><a href="http://sparklet.sf.net">http://sparklet.sf.net</a><br>