Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-18 Thread olivier auverlot
Hi, This morning, I arrived early at office because I was impatient to test the proposed solutions. Thank for your help, my problem is solved and I understand better the usage of Voyage and Mongo. We learn something each day and it's cool ! Best regards Olivier ;-) 2014-04-17 21:56 GMT+02:00 p

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread pharo4s...@free.fr
esteban you should do a pass on the voyage documentation chapter and add this kind of infomration. We can pair write if you want. stef On 17/4/14 17:56, Esteban Lorenzano wrote: On 17 Apr 2014, at 15:18, Norbert Hartl > wrote: Am 17.04.2014 um 15:05 schrieb ol

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Norbert Hartl
Am 17.04.2014 um 18:05 schrieb Esteban Lorenzano : > > On 17 Apr 2014, at 16:26, Norbert Hartl wrote: > >> >> Am 17.04.2014 um 15:52 schrieb Sabine Knöfel : >> >>> Hi Norbert, >>> >>> for me the gain within smalltalk is huge because I want to navigate from >>> person to trip and from trip

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Esteban Lorenzano
On 17 Apr 2014, at 16:26, Norbert Hartl wrote: > > Am 17.04.2014 um 15:52 schrieb Sabine Knöfel : > >> Hi Norbert, >> >> for me the gain within smalltalk is huge because I want to navigate from >> person to trip and from trip to person by the attributes without asking >> mongo for the corre

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Esteban Lorenzano
On 17 Apr 2014, at 15:18, Norbert Hartl wrote: > > Am 17.04.2014 um 15:05 schrieb olivier auverlot : > >> thanks Robert for the explications. >> > It’s Norbert btw. :) > >> I agree with you that's the best way to remove a book is to delete the >> reference in ComicsCollection. >> >> But h

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Norbert Hartl
Am 17.04.2014 um 15:52 schrieb Sabine Knöfel : > Hi Norbert, > > for me the gain within smalltalk is huge because I want to navigate from > person to trip and from trip to person by the attributes without asking mongo > for the correspondent object via indexes. > > Don't you think that this i

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Sabine Knöfel
Hi Norbert, for me the gain within smalltalk is huge because I want to navigate from person to trip and from trip to person by the attributes without asking mongo for the correspondent object via indexes. Don't you think that this is a question of design of the object model and should not be deci

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Norbert Hartl
Sabine, I read the case now the first time. Just one note. Having references in both directions is probably not the best idea if using a non-object store. For navigating the graph it might be good but for persisting it is not. The serialization is a lot more complex if you do and the gain is no

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Sabine Knöfel
Hi Olivier, possibly the option VOMongoContainer>>enableMissingContent; is useful to avoid http://forum.world.st/Voyage-image-freeze-VOMongoError-Lazy-reference-not-found-td4703739.html Here is an example: http://esug.org/data/ESUG2013/4-Thu/03-ESUG2013%20-%20VoyageTutorial.pdf Regards Sabine

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread olivier auverlot
Norbert, Sorry for my mistake ;-) 2014-04-17 15:18 GMT+02:00 Norbert Hartl : > > Am 17.04.2014 um 15:05 schrieb olivier auverlot < > olivier.auver...@gmail.com>: > > thanks Robert for the explications. > > It’s Norbert btw. :) > > I agree with you that's the best way to remove a book is to del

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Norbert Hartl
Am 17.04.2014 um 15:05 schrieb olivier auverlot : > thanks Robert for the explications. > It’s Norbert btw. :) > I agree with you that's the best way to remove a book is to delete the > reference in ComicsCollection. > > But how to do that ? Must I simply remove the reference in the ordered

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread olivier auverlot
thanks Robert for the explications. I agree with you that's the best way to remove a book is to delete the reference in ComicsCollection. But how to do that ? Must I simply remove the reference in the ordered collection ? Voyage will syncronize automatically the data in memory with the content o

Re: [Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread Norbert Hartl
Am 17.04.2014 um 13:53 schrieb olivier : > Hi, > > I'm using Voyage in a Pharo application. > > I have two MongoDB collections which are ComicsCollection and ComicsBook. > Each book is attached to a instance of ComicsCollection. The reference of > each book is stored in an ordered collection

[Pharo-users] Voyage: how to delete references to objects.

2014-04-17 Thread olivier
Hi, I'm using Voyage in a Pharo application. I have two MongoDB collections which are ComicsCollection and ComicsBook. Each book is attached to a instance of ComicsCollection. The reference of each book is stored in an ordered collection (in the instance of ComicsCollection). The problem is th