Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YMiV8-0001cQ-3D for pgsql-performance@arkaria.postgresql.org; Sat, 14 Feb 2015 19:35:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YMiV7-0006po-Ib for pgsql-performance@arkaria.postgresql.org; Sat, 14 Feb 2015 19:35:37 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YMiV5-0006pZ-A5 for pgsql-performance@postgresql.org; Sat, 14 Feb 2015 19:35:35 +0000 Received: from relay-pt1.poste.it ([62.241.4.164]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YMiUw-00020k-MY for pgsql-performance@postgresql.org; Sat, 14 Feb 2015 19:35:33 +0000 Received: from localhost.localdomain (151.61.236.20) by relay-pt1.poste.it (8.5.142) (authenticated as nicola.sabbi@poste.it) id 54B70384009CC718 for pgsql-performance@postgresql.org; Sat, 14 Feb 2015 20:35:24 +0100 Message-ID: <54DFA522.4020407@poste.it> Date: Sat, 14 Feb 2015 20:42:26 +0100 From: Nico Sabbi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: "pgsql-performance@postgresql.org" Subject: Re: Configuration tips for very large database References: <54DD2872.3070603@poste.it> <2034701464.2446674.1423780681188.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org On 02/13/2015 12:19 AM, Claudio Freire wrote: > I have a table with ~800M rows, wide ones, that runs reporting queries > quite efficiently (usually seconds). > > Of course, the queries don't traverse the whole table. That wouldn't > be efficient. That's probably the key there, don't make you database > process the whole thing every time if you expect it to be scalable. > > What kind of queries are you running that have slowed down? > > Post an explain analyze so people can diagnose. Possibly it's a > query/indexing issue rather than a hardware one. > Thanks everybody for the answers. At the moment I don't have the queries at hand (saturday:-) ). I'll post them next week. I'd really like to avoid data partitioning if possible. It's a thing that gives me a strong stomach ache. -- Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-performance