Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B4B14DCD1 for ; Thu, 10 Jan 2013 10:28:27 +0000 (UTC) Received: (qmail 90794 invoked by uid 500); 10 Jan 2013 10:28:27 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 90709 invoked by uid 500); 10 Jan 2013 10:28:27 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 90682 invoked by uid 99); 10 Jan 2013 10:28:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2013 10:28:26 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of srivatsav.prasanna@gmail.com designates 209.85.216.46 as permitted sender) Received: from [209.85.216.46] (HELO mail-qa0-f46.google.com) (209.85.216.46) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2013 10:28:16 +0000 Received: by mail-qa0-f46.google.com with SMTP id r4so1479895qaq.12 for ; Thu, 10 Jan 2013 02:27:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=zQEn6Q3AgqonH0nI95n64M83TwiGDl7V3DqE9kzU6Yw=; b=ZA9iEVQwnHf/Kogw0rE8AKORUR6OHIxIPVU1hXo1R60fhe/CfNItWIO53NJg75Nny3 YY77fwd/4hxZmamgGIrR+EsmRcrHubB2gENkPiP/hfqyYFPnXoJiY9YaCuWz3K+a28cU htRtw2uQersDb8czQji0IzOf9VpdG2pR4syVLZuO/ndI/Y9k2LF0The1TwJNhYoRt1Cj ynQaS7SvM2mYwOu1DehtGcu0XW7m4Xu6gVURGxGcwgTWd3DIY0Jyi6m4C1wWx8/lG8kq APH6xGaeBcbmrlce38LuSvaZ8Kh6TK0enCP9sT6Fvlx15E6YmqQtQZgB9mVUcFL5TGye +dkw== X-Received: by 10.224.177.143 with SMTP id bi15mr38449270qab.14.1357813676282; Thu, 10 Jan 2013 02:27:56 -0800 (PST) Received: from localhost ([202.75.201.5]) by mx.google.com with ESMTPS id fl1sm1361298qab.14.2013.01.10.02.27.53 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 10 Jan 2013 02:27:55 -0800 (PST) Sender: prasanna Date: Thu, 10 Jan 2013 15:57:49 +0530 From: Prasanna Santhanam To: "cloudstack-dev@incubator.apache.org" Subject: Re: [MERGE] Merge request: api_refactoring on master Message-ID: <20130110102749.GB13309@cloud-2.local> Mail-Followup-To: "cloudstack-dev@incubator.apache.org" References: <920FB93F-BECA-495C-8B07-CB8A46160E60@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Jan 09, 2013 at 05:45:03PM -0500, Min Chen wrote: > Hi Marcus, > > To answer your question below: > "Does this mean we won't see 10 "SELECT uuid FROM `vm_instance` > WHERE id=3079 OR uuid='3079'" type calls for every VM we have when > doing listVirtualMachines and such?" > Yes, that is exactly one item we have fixed in api_refactoring in > removing all IdentityProxy fields from all Response class, which > will not invoke such select during JSON serialization phase for each > VM. > Min, speaking about the IdentityProxy it appears that all the BaseAsyncCreateCmds right now refer back to the IdentityProxy via the getEntityTable() method. This table is referred back in the ApiResponseSerializer to execute the 'select id or uuid' stmt when building response type in XML. JSON doesn't refer to this however. Can we remove the IdentityProxy in these cases too? Also the method getEntityTable() also should probably go away to remove any traces of direct references back to the underlying db entity? -- Prasanna.,