transactions

Chris Muller asqueaker at gmail.com
Mon Dec 19 18:55:35 UTC 2011


In magma, #begin performs an implicit #refresh, not an implicit #abort.

See:

  http://wiki.squeak.org/squeak/2636



On Mon, Dec 19, 2011 at 11:00 AM, Milan Mimica <milan.mimica at gmail.com> wrote:
> 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?
>
> What is the difference between modifying an object inside and outside
> transaction? This two code snippets don't show any difference.
>
> session := ...
> model := session root model.
> model firstName: 'foo'.
> session begin.
> model lastName: 'bar'.
> session commit.
>
> session := ...
> model := session root model.
> session begin.
> model firstName: 'foo'.
> model lastName: 'bar'.
> session commit.
>
>
> 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?
>
>
> --
> Milan Mimica
> http://sparklet.sf.net
>
> _______________________________________________
> Magma mailing list
> Magma at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/magma
>


More information about the Magma mailing list