Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-09-02 Thread Sven Van Caekenberghe
On 02 Sep 2013, at 10:34, Henrik Johansen wrote: > > On Aug 31, 2013, at 3:30 , Sven Van Caekenberghe wrote: > >> >> On 31 Aug 2013, at 13:47, Stéphane Ducasse wrote: >> >>> Sabine >>> what we could do is to propose a "subclass of UUID" and to group several >>> UUID generators. >>> Like

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-09-02 Thread Henrik Johansen
On Aug 31, 2013, at 3:30 , Sven Van Caekenberghe wrote: > > On 31 Aug 2013, at 13:47, Stéphane Ducasse wrote: > >> Sabine >> what we could do is to propose a "subclass of UUID" and to group several >> UUID generators. >> Like that with a couple of classes, we could get a better eco system w

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-09-02 Thread Henrik Johansen
On Aug 30, 2013, at 4:35 , Esteban Lorenzano wrote: > > On Aug 29, 2013, at 5:08 PM, Sven Van Caekenberghe wrote: > >> >> On 29 Aug 2013, at 16:51, Esteban Lorenzano wrote: >> >>> hi >>> >>> well... I've never been happy on using the UUID generator for my keys, but >>> is the fastest opt

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-31 Thread Sven Van Caekenberghe
On 31 Aug 2013, at 13:47, Stéphane Ducasse wrote: > Sabine > what we could do is to propose a "subclass of UUID" and to group several UUID > generators. > Like that with a couple of classes, we could get a better eco system where > people can pick the one they want. > > stef I just made my

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-31 Thread Stéphane Ducasse
Sabine what we could do is to propose a "subclass of UUID" and to group several UUID generators. Like that with a couple of classes, we could get a better eco system where people can pick the one they want. stef On Aug 31, 2013, at 11:49 AM, Sabine Knöfel wrote: > Hi Esteban, > > yes, Mongo

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-31 Thread Sabine Knöfel
Hi Esteban, yes, Mongo is not very communicative ;-) I replaced OID>>nextOID with my own RKAOIDGenerator nextOID ^self value: (RKAOIDGenerator getNextOID) instead of nextOID ^self value: (UUIDGenerator default makeSeed) RKAOIDGenerator uses Time>>primMillisecondClock at startup and adds +1

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-30 Thread Sabine Knöfel
So, I will wait and till then, use the solution of Jan. Thank you, Jan for the file in. Sabine -- View this message in context: http://forum.world.st/voyage-mongo-randomly-wrong-OIDs-tp4705396p4705821.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-30 Thread Sven Van Caekenberghe
On 30 Aug 2013, at 16:35, Esteban Lorenzano wrote: > > On Aug 29, 2013, at 5:08 PM, Sven Van Caekenberghe wrote: > >> >> On 29 Aug 2013, at 16:51, Esteban Lorenzano wrote: >> >>> hi >>> >>> well... I've never been happy on using the UUID generator for my keys, but >>> is the fastest opti

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-30 Thread Esteban Lorenzano
Hi, One idea (not sure if it will work) You can take Time primUTCMicrosecondsClock when system start, then increase it sequentially. most probably that will ensure uniqueness while providing fast ids. but of course, that depends, you need to check in your system. I'm thinking on provide

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-30 Thread Sabine Knöfel
"Sorry for the discussion" for me, this discussion is interesting and important because I need a solution. :-) Thank you for the discussion! I tried following ideas but they have been up to 4 times slower than the original: 1) I tried to remember the last seed in an inst var of UUIDGenerator and

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-30 Thread Esteban Lorenzano
yes, is a conversation geeky enough to be fun :) unix: https://github.com/pharo-project/pharovm/blob/master/platforms/unix/plugins/UUIDPlugin/sqUnixUUID.c mac: https://github.com/pharo-project/pharovm/blob/master/platforms/iOS/plugins/UUIDPlugin/sqMacUUID.c win: https://github.com/pharo-proj

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-30 Thread Esteban Lorenzano
On Aug 30, 2013, at 4:49 PM, Sven Van Caekenberghe wrote: > > On 30 Aug 2013, at 16:35, Esteban Lorenzano wrote: > >> >> On Aug 29, 2013, at 5:08 PM, Sven Van Caekenberghe wrote: >> >>> >>> On 29 Aug 2013, at 16:51, Esteban Lorenzano wrote: >>> hi well... I've never been

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-30 Thread Sven Van Caekenberghe
On 30 Aug 2013, at 16:54, Esteban Lorenzano wrote: > > On Aug 30, 2013, at 4:49 PM, Sven Van Caekenberghe wrote: > >> >> On 30 Aug 2013, at 16:35, Esteban Lorenzano wrote: >> >>> >>> On Aug 29, 2013, at 5:08 PM, Sven Van Caekenberghe wrote: >>> On 29 Aug 2013, at 16:51, Esteb

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-30 Thread Esteban Lorenzano
On Aug 29, 2013, at 5:08 PM, Sven Van Caekenberghe wrote: > > On 29 Aug 2013, at 16:51, Esteban Lorenzano wrote: > >> hi >> >> well... I've never been happy on using the UUID generator for my keys, but >> is the fastest option I found. >> There are, of course, alternatives: >> >> 1) Usin

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-29 Thread Esteban A. Maringolo
They're certainly more "unique" than before :) Thanks!

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-29 Thread Sven Van Caekenberghe
On 29 Aug 2013, at 16:51, Esteban Lorenzano wrote: > hi > > well... I've never been happy on using the UUID generator for my keys, but is > the fastest option I found. > There are, of course, alternatives: > > 1) Using your own number generator (sequential, or whatever). Problem with > tha

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-29 Thread jan.struz
ok, here again: Fix-Mongo-OID.cs :) EstebanLM wrote > file not found :)On Aug 29, 2013, at 2:44 PM, jan.struz < > public+pharo@ > > wrote:> Hi,> feel free to use & integrate the following fix:> > > Fix-Mongo-OID.cs >

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-29 Thread Esteban Lorenzano
hi well... I've never been happy on using the UUID generator for my keys, but is the fastest option I found. There are, of course, alternatives: 1) Using your own number generator (sequential, or whatever). Problem with that is that is image based, then you need a persistence strategy... then

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-29 Thread Esteban Lorenzano
file not found :) On Aug 29, 2013, at 2:44 PM, jan.struz wrote: > Hi, > feel free to use & integrate the following fix: > > Fix-Mongo-OID.cs > > Jan > > > Sabine Knöfel wrote >> Hi Esteban, All, >> >> I was proceeding to seach for the

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-29 Thread jan.struz
Hi, feel free to use & integrate the following fix: Fix-Mongo-OID.cs Jan Sabine Knöfel wrote > Hi Esteban, All, > > I was proceeding to seach for the reason of the problem I described > yesterday. > > I added some debugging code into VO

Re: [Pharo-users] voyage/mongo randomly wrong OIDs

2013-08-29 Thread Sabine Knöfel
Hi Esteban, All, I was proceeding to seach for the reason of the problem I described yesterday. I added some debugging code into VOMongoSerializer>>ensurePersisted: and the problem I described, did NOT occur. That made the whole process slower...and I had an idea I was looking into >>UUIDGe