Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 388B6B5DBD9 for ; Wed, 17 Aug 2011 19:40:20 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 86170-01 for ; Wed, 17 Aug 2011 22:40:13 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 25D79B5DBC4 for ; Wed, 17 Aug 2011 19:40:12 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QtomR-0002k7-Jn for pgsql-performance@postgresql.org; Wed, 17 Aug 2011 15:40:11 -0700 Date: Wed, 17 Aug 2011 15:40:11 -0700 (PDT) From: hyelluas To: pgsql-performance@postgresql.org Message-ID: <1313620811606-4710245.post@n5.nabble.com> Subject: tunning strategy needed MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.778 tagged_above=-10 required=5 tests=BAYES_00=-1.9, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201108/220 X-Sequence-Number: 44667 Hello, I have an old application that was written on Postgres 8.1. There are a few hundreds tables, 30-40 columns per table, hundreds of views, and all the sql is inside java code. We are moving it to 8.4, it seems to be VERY slow. There are 20-30 tables transactions - the objects are spread acrross multiple tables and some tables have data from different objects. I need a short term tuning strategy minimizing rewrite & redesign. Should I start with replacing the sql with procedures? Should I start with replacing the views with the procedures to save time on recreating an execution plan and parsing? Should I start with tuning server parameters ? all your suggestions are greatly appreciated! thank you. Helen -- View this message in context: http://postgresql.1045698.n5.nabble.com/tunning-strategy-needed-tp4710245p4710245.html Sent from the PostgreSQL - performance mailing list archive at Nabble.com.