RE: Torque is very slow to do a .copy of an object :( Why?

2007-04-13 Thread philipina
Thanks a lot for all of your answers. Now I understand wh I had duplicate entries in another table ;) I tried to use the function .copy(false) but apparently this one does not exists (I'm using torque 3.2-rc2) :( Alain Greg Monroe wrote: I remember there was a discussion a while back on

Re: Torque is very slow to do a .copy of an object :( Why?

2007-04-12 Thread philipina
Hi, One other object has a reference to the object I want to copy but the object I want to copy has no reference (foreign key) to any other object. Alain Hidde Boonstra [Us Media]-2 wrote: Hi Alain, does your object have many relations (foreign key constraints)? I just looked into

Re: Torque is very slow to do a .copy of an object :( Why?

2007-04-12 Thread Hidde Boonstra [Us Media]
Hi Alain, does your object have many relations (foreign key constraints)? I just looked into the copy method and I see it does a deep copy, so if you have many relations, or many related entries in your database, these will all be copied into your copy. This might explain why it gets slower

Re: Torque is very slow to do a .copy of an object :( Why?

2007-04-12 Thread Hidde Boonstra [Us Media]
Hi, sorry, but I think that's what I mean:-) So if you have object1 and object2 which references to object1 and you do a copy on object1 it will also copy and add all object2 instances that refer to object1. It looks like this is recursive, because objects that refer to object2 will probably

Re: Torque is very slow to do a .copy of an object :( Why?

2007-04-12 Thread Federico Fissore
Hidde Boonstra [Us Media] ha scritto: Hi, sorry, but I think that's what I mean:-) So if you have object1 and object2 which references to object1 and you do a copy on object1 it will also copy and add all object2 instances that refer to object1. It looks like this is recursive, because