Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 24543 invoked from network); 17 Oct 2003 10:15:19 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 17 Oct 2003 10:15:19 -0000 Received: (qmail 35955 invoked by uid 500); 17 Oct 2003 10:14:59 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 35939 invoked by uid 500); 17 Oct 2003 10:14:58 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 35926 invoked from network); 17 Oct 2003 10:14:58 -0000 Received: from unknown (HELO charon.macalla.com) (213.105.178.163) by daedalus.apache.org with SMTP; 17 Oct 2003 10:14:58 -0000 Received: by CHARON with Internet Mail Service (5.5.2650.21) id <47GMCXF5>; Fri, 17 Oct 2003 11:15:01 +0100 Message-ID: <10F4BAF24D2FD511B3D600B0D039CEF4F3B82A@CHARON> From: Ashley Hayes To: "Torque-User (E-mail)" Subject: why does Torque select all the data of an object prior to a sav e ( update ) Date: Fri, 17 Oct 2003 11:14:56 +0100 Reply-By: Fri, 17 Oct 2003 10:00:00 +0100 X-Message-Flag: Follow up MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi, I was looking at the sql statements made by my torque application. I noticed that if you retrieve an object from storage, SELECT .... FROM ... WHERE ... then update an attribute and call save , the all the data is retrieved again and then the update statement executed e.g. SELECT * FROM ... WHERE ID=1280 UPDATE ... SET DATETIME = ?, STATUS_ID = ? WHERE ID = ? The torque code that is causing this in BasePeer: public static void doUpdate( Criteria selectCriteria, Criteria updateValues, Connection con) throws TorqueException { .... } Is this behaviour by torque design or the only way torque can update records via the village library? thanks A --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org