--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.
> > > To post to this group, send email to play-framework@googlegroups.com.
> > > To unsubscribe from this group, send email to
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/Ae1bpoyalwwJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
By the way, is there any risk (corruption/too much casts ...) using this feature ? ( morphia.id.type=Long + getId(Long.class))
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/Ixq1__woY6IJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
"
Using sequence numbers in a sharded / distributed environment is not
scalable because you require a single central node to hand out those
sequence numbers. At some point, you'll reach the limit of that node
to hand out ID's. Since ObjectIDs are generated by clients without
coordination, there is no bottleneck as you scale your system up.
"
From Jared Rosoff working at 10gen
One thing to note is that the ObjectIDs are actually created by the
client. If you have multiple clients (potentially on multiple
machines) you will be less likely to have "_id" collisions using
ObjectIDs because of the structure of an ObjectID. In the context of
sharding specifically (ignoring all the other issues previously
mentioned in this thread) an ObjectID won't necessarily work better
than a sequence and obviously isn't more compact than an int64.
"
From Bernie Hackett
source: http://groups.google.com/group/mongodb-user/browse_thread/thread/5b3794e1fc8b77b8
Thanks for your time and effort Green :)