I have spent some time trying to use Magma properly, hoping that some things that weren&#39;t clear at the beginning will eventually come clear. But one thing I still don&#39;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&#39;t show any difference.</div><div><br></div><div>session := ...</div><div>model := session root model.</div>
<div>model firstName: &#39;foo&#39;.</div><div>session begin.</div><div>model lastName: &#39;bar&#39;.</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: &#39;foo&#39;.</div><div>model lastName: &#39;bar&#39;.</div><div>session commit.</div></div><div><br></div><div><br></div><div>They both commit both firstName and lastName properties, so I don&#39;t see any use of opening and ending a transaction. Couldn&#39;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>