db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From philipina <sono_...@hotmail.com>
Subject RE: AW: Torque is very slow to do a .copy of an object :( Why?
Date Fri, 13 Apr 2007 17:55:44 GMT

Not sure... I can confirm that I do not have the copy(boolean) function but
torque is doing a deep copy because when I save my copied object I also get
a new entry in the table linked to the original objet.

Alain




Greg Monroe wrote:
> 
> Hmm, are you using a non-default build option of:
> 
> torque.complexObjectModel=false 
> 
> That's the only way that the copy( boolean deepcopy) method
> would not be created in your BaseRecord object.  If you are
> generating your OM layer with this set to false, then doing
> an OM object .copy() is just a simple memory to memory copy.
> And all the discusion of deepcopy isn't valid for you.
> 
>> -----Original Message-----
>> From: philipina [mailto:sono_uhr@hotmail.com] 
>> Sent: Friday, April 13, 2007 4:22 AM
>> To: torque-user@db.apache.org
>> Subject: Re: AW: Torque is very slow to do a .copy of an 
>> object :( Why?
>> 
>> 
>> I tried to use the function .copy(false) but apparently this 
>> one does not
>> exists (I'm using torque 3.2-rc2) :( 
>> 
>> Alain 
>> 
>> 
>> Thoralf Rickert wrote:
>> > 
>> > Hi!
>> > 
>> > Could you try a myObject1.copy(false) to avoid making a deepcopy.
>> > 
>> > bye
>> > Thoralf
>> > 
>> >> I'm using torque to connect to my Mysql database.
>> >> I'm trying to improve performence of my application and I saw 
>> >> that torque is taking more than 600 ms to execute a command like:
>> >> ---------------------------------------------
>> >> Object1 myCopiedObject1 = myObject1.copy();
>> >> ---------------------------------------------
>> >> 
>> >> Torque is only slow if I have a lots of data in my DB. I 
>> >> cannot understand this! a copy should only do the work in 
>> >> memory and not access the DB.
>> > 
>> > 
>> > 
>> > 
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
>> > For additional commands, e-mail: torque-user-help@db.apache.org
>> > 
>> > 
>> > 
>> 
>> -- 
>> View this message in context: 
>> http://www.nabble.com/Torque-is-very-slow-to-do-a-.copy-of-an-
>> object-%3A%28-Why--tf3565099.html#a9974840
>> Sent from the Apache DB - Torque Users mailing list archive 
>> at Nabble.com.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
>> For additional commands, e-mail: torque-user-help@db.apache.org
>> 
>> 
> 
> Duke CE Privacy Statement
> Please be advised that this e-mail and any files transmitted with it are
> confidential communication or may otherwise be privileged or confidential
> and are intended solely for the individual or entity to whom they are
> addressed.  If you are not the intended recipient you may not rely on the
> contents of this email or any attachments, and we ask that you  please not
> read, copy or retransmit this communication, but reply to the sender and
> destroy the email, its contents, and all copies thereof immediately.  Any
> unauthorized dissemination, distribution or copying of this communication
> is strictly prohibited.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
> For additional commands, e-mail: torque-user-help@db.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Torque-is-very-slow-to-do-a-.copy-of-an-object-%3A%28-Why--tf3565099.html#a9983668
Sent from the Apache DB - Torque Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message