Von: "Flávio W. Brasil" <fwbra...@gmail.com>
Datum: Sat, 10 Nov 2012 12:10:44 -0200
Lokal: Sa 10 Nov. 2012 09:10
Betreff: Re: [scala-user] Scala ORM: Activate & MapperDao
Yes, it's faster. Optimistic locking with efficient memory usage scales very well.
--
On Saturday, 10 de November de 2012 at 10:33, Konstantinos Kougios wrote:
> are you sure that this is faster than managing the sync in the database/transaction level? What if you have 3 or 10 servers connecting with the same database? > On 09/11/12 12:33, Flávio W. Brasil wrote:
> > https://github.com/fwbrasil/activate/blob/master/activate-tests/src/t...
> > Obs.: The test uses the great gfork (http://code.google.com/p/gfork/) framework to create multiple VMs.
> > -- > > On Friday, 9 de November de 2012 at 10:10, Konstantinos Kougios wrote:
> > > Flavio, thanks for the sample code. I'll have a better look later on but from a quick look I had, here is the question:
> > > how does activate solve this issue when you have multiple application servers accessing 1 database (or a set of them) ?
> > > On 09/11/12 11:53, Flávio W. Brasil wrote:
> > > > -- > > > > On Friday, 9 de November de 2012 at 09:29, Tim Pigden wrote:
> > > > > ah - but for me it's important that "website" is an immutable object and a case class. In that case would I not have to implement a secondary layer on top and we've conceptually just moved the problem from the database | application interface into a activate | rest-of-application interface?
> > > > > On 9 November 2012 11:12, Flávio W. Brasil <fwbra...@gmail.com (mailto:fwbra...@gmail.com)> wrote:
> > > > > > Example on why Mapperdao has a veiled mutability:
> > > > > > https://github.com/fwbrasil/consistency/blob/master/src/test/scala/ma...
> > > > > > The Activate counterpart:
> > > > > > https://github.com/fwbrasil/consistency/blob/master/src/test/scala/ac...
> > > > > > Entity declaration is also much simpler using Activate:
> > > > > > https://github.com/fwbrasil/consistency/blob/master/src/main/scala/ac...
> > > > > > Than using Mapperdao:
> > > > > > https://github.com/fwbrasil/consistency/blob/master/src/main/scala/ma...
> > > > > > -- > > > > > > On Tuesday, 6 de November de 2012 at 20:32, Kostas kougios wrote:
> > > > > > > Ok, to continue the discussion in this separate thread from https://groups.google.com/forum/?fromgroups=#!topic/scala-user/TNG6KG... (https://groups.google.com/forum/?fromgroups=#%21topic/scala-user/TNG6...)
> > > > > > > ...
> > > > > --
Sie müssen sich anmelden, bevor Sie Nachrichten veröffentlichen können.
Bevor Sie eine Nachricht posten können, müssen Sie zunächst dieser Gruppe beitreten.
Bitte aktualisieren Sie vor dem Posten in den Abonnementeinstellungen Ihren Spitznamen.
Sie haben nicht die erforderliche Berechtigung zum Posten.
| ||||||||||||||