String written into GOODS as class KKObjectProxy

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

String written into GOODS as class KKObjectProxy

Yar Hwee Boon-3
When writing Strings to a GOODS database using Sebastián Sastre's GOODS  
client  
(http://gatekeeper.dynalias.org:8888/GoodsST/uploads/4/GOODS_Client.7.zip),  
I'm observing some puzzling behavoir. Evaluate the code below and observe  
that the class is KKObjectProxy. Now change the number 209 to 20. And try  
again. This time the class should be String. I'm not sure if the numbers,  
20, 209 etc are specific to my particular machine, but I'm quite sure that  
once you "discover" the right numbers you can reproduce it. Seems this is  
not happening with Avi Bryant's original code. Anyone have any idea what's  
happening? Thanks.

==============
stream := String writeStream.
1 to: 209 do: [:x | stream nextPut: $y].
s := stream contents.

list := OrderedCollection new.
1 to: 20 do: [:x | list add: s].

db2 root at: #abc put: list.
db2 commit.

db2 := KKDatabase onHost: 'localhost' port: 6104.
(db2 root at: #abc) first inspect
=============

--
Regards
HweeBoon
MotionObj


Reply | Threaded
Open this post in threaded view
|

Re: String written into GOODS as class KKObjectProxy

Yar Hwee Boon-3
On Sat, 11 Dec 2004 22:02:43 +0800, Yar Hwee Boon <[hidden email]>  
wrote:

> When writing Strings to a GOODS database using Sebastián Sastre's GOODS  
> client  
> (http://gatekeeper.dynalias.org:8888/GoodsST/uploads/4/GOODS_Client.7.zip),  
> I'm observing some puzzling behavoir. Evaluate the code below and  
> observe that the class is KKObjectProxy. Now change the number 209 to  
> 20. And try again. This time the class should be String. I'm not sure if

I forgot to mention, I'm guessing that you need a large String size/many  
instances to see the problem, eg. 209 vs. 20.

--
Regards
HweeBoon
MotionObj


Reply | Threaded
Open this post in threaded view
|

Re: String written into GOODS as class KKObjectProxy

Yar Hwee Boon-3
In reply to this post by Yar Hwee Boon-3
On Sat, 11 Dec 2004 22:02:43 +0800, Yar Hwee Boon <[hidden email]>  
wrote:

> When writing Strings to a GOODS database using Sebastián Sastre's GOODS  
> client  
> (http://gatekeeper.dynalias.org:8888/GoodsST/uploads/4/GOODS_Client.7.zip),  
> I'm observing some puzzling behavoir. Evaluate the code below and  
> observe that the class is KKObjectProxy. Now change the number 209 to

Sorry, it turns out that it might be a bug in my code. Please ignore this.

--
Regards
HweeBoon
MotionObj


Reply | Threaded
Open this post in threaded view
|

Re: String written into GOODS as class KKObjectProxy

Sebastián Sastre
> Sorry, it turns out that it might be a bug in my code. Please ignore this.

Good to know..

best regards,

Sebastián