Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkvNH-00014G-6F for pgadmin-hackers@arkaria.postgresql.org; Fri, 16 Sep 2016 15:48:23 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bkvNG-0006su-Oz for pgadmin-hackers@arkaria.postgresql.org; Fri, 16 Sep 2016 15:48:22 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bkvN3-0006ef-Lh for pgadmin-hackers@postgresql.org; Fri, 16 Sep 2016 15:48:09 +0000 Received: from mail-it0-x22c.google.com ([2607:f8b0:4001:c0b::22c]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bkvN0-0007uu-SC for pgadmin-hackers@postgresql.org; Fri, 16 Sep 2016 15:48:08 +0000 Received: by mail-it0-x22c.google.com with SMTP id 15so10854843ita.1 for ; Fri, 16 Sep 2016 08:48:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ywkhDAyNyQPg4AR8Y+6IOZAW1LjM31tlM6lccycskcc=; b=0oQleNk0F3hvl+BcK6sWAdm2yVrzY2n/N29d+vLegHx7BUbmj8E6bJdHJ1eX7pkj9M cv5EvvVoytrFAGkhmEccoQLJpLyhrZ8xFkP/Oz4YL1zUT0mghZMeEeOO3H8zuiWbmpPa 8vSSZaZ+azZqHkacBAkykIhH6qEqp0S1Qc/17Gm270EIS3WpJmnjOSocp8O+67JdUroS VJfj3O55uTt/Qlf8/12573b11A5fZDkbBzZOROL2N8Ohfo7luyrn+IeaIcU2Y5iuq3pi NgeuZM645m2PqJOdbL8JmtQgHwn1VrYnzg6IvOa4PTcOjLz+Bkrf9hFY02kCHqCHue23 Xupw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ywkhDAyNyQPg4AR8Y+6IOZAW1LjM31tlM6lccycskcc=; b=U7MlrjpD5Y49Ct3g2gJ+mkOlzfz/6mYWx5/bR4UfXsAEv9zjTgs6BQudcU5XnJk8vT QFZkCL7x8CIBeMElDI4dbYeVzQ3RoDLMDNcRYTzUbvd61M1ucjo9ThSRs0O1lqybt+r9 x2h7BbmDRnhupvrT4L+7JfPNE+yYVfaL2xM+hNUFyhIqRIUScOaB1lDNOaFz4IaSwJ/2 lRxX+zXA+huRM56nGj1uAT/7/AO6sbSXC1Tdh8Wbzety0JWHN1FO8aeupJBBkJWMQBNa AoYqI5v7IgnmvJd05Y/Il/DadCHELDjl//37b9EjqGQ+QlPg7KhgBmbiFr7+WcoYo7o9 D99A== X-Gm-Message-State: AE9vXwO6FEFkqmzUAk/xPBx0YVnu8PkcLnJzD8ibLU0fYLCR82IHgZ0DtwulkksOJGTenIlhGj6I5nnMdaZeBw== X-Received: by 10.36.127.87 with SMTP id r84mr6258525itc.4.1474040885815; Fri, 16 Sep 2016 08:48:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.1.203 with HTTP; Fri, 16 Sep 2016 08:48:05 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Fri, 16 Sep 2016 16:48:05 +0100 Message-ID: Subject: Re: PATCH: To fix the performance of delete operation (pgAdmin4) To: Murtuza Zabuawala Cc: pgadmin-hackers Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org Thanks - committed with a couple of changes: - I re-formatted the SQL - s/lables/labels Awesome speedup BTW - deleting 25K rows went from >10 minutes to virtually instant. Good work. On Fri, Sep 16, 2016 at 12:34 PM, Murtuza Zabuawala wrote: > Hi Dave, > > Please find updated patch. > > > Regards, > Murtuza > > -- > Regards, > Murtuza Zabuawala > EnterpriseDB: http://www.enterprisedb.com > The Enterprise PostgreSQL Company > > On Fri, Sep 16, 2016 at 3:31 PM, Dave Page wrote: >> >> Can you rebase this please? >> >> Thanks. >> >> On Thu, Sep 15, 2016 at 11:08 AM, Murtuza Zabuawala >> wrote: >> > Hi, >> > >> > PFA patch to fix the issue of slow performance while deleting rows from >> > grid. >> > RM#1696 >> > >> > Issue: >> > As per logic implemented for Backgrid, we were deleting individual rows, >> > means If user selects 100 rows to delete then we were rendering sql >> > template >> > 100 times to generate sql for each individual rows and then execute all >> > 100 >> > delete statements one by one due to which we were getting poor >> > performance. >> > >> > Please review. >> > >> > -- >> > Regards, >> > Murtuza Zabuawala >> > EnterpriseDB: http://www.enterprisedb.com >> > The Enterprise PostgreSQL Company >> > >> > >> > -- >> > Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) >> > To make changes to your subscription: >> > http://www.postgresql.org/mailpref/pgadmin-hackers >> > >> >> >> >> -- >> Dave Page >> Blog: http://pgsnake.blogspot.com >> Twitter: @pgsnake >> >> EnterpriseDB UK: http://www.enterprisedb.com >> The Enterprise PostgreSQL Company > > -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers