pg.ddx.io pgsql-general@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Chris Withers <chris@withers.org>
To: Gavin Flower <GavinFlower@archidevsys.co.nz>
To: Stephen Frost <sfrost@snowman.net>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: surprising query optimisation
Date: Wed, 5 Dec 2018 11:42:15 +0000
Message-ID: <6ba91527-e19e-d6f1-8273-1561cdaba2ad@withers.org> (raw)
In-Reply-To: <9a952022-82b1-a88d-07fb-72c47bc0f875@archidevsys.co.nz>
References: <03a0af57-3ebc-5501-10ef-6a639c7c34b8@withers.org>
<20181128224950.GS3415@tamriel.snowman.net>
<5d7f8d97-32f3-fd88-44cc-948673579a71@withers.org>
<20181130153327.GA3415@tamriel.snowman.net>
<9a952022-82b1-a88d-07fb-72c47bc0f875@archidevsys.co.nz>
On 30/11/2018 22:10, Gavin Flower wrote:
>
> I once optimised a very complex set queries that made extensive use of
> indexes. However, with the knowledge I have today, I would have most
> likely had fewer and smaller indexes. As I now realize, that some of my
> indexes were probably counter productive, especially as I'd given no
> thought to how much RAM would be required to host the data plus
> indexes! Fortunately, while the objective was to run all those queries
> within 24 hours, they actually only took a couple of hours.
So, interestingly, this box has 250GB memory in it, and even though I've
set effective_cache_size to 200GB, I only see 9G of memory being used.
How can I persuade postgres to keep more in memory?
cheers,
Chris
view thread (19+ messages) latest in thread
Message-ID: <6ba91527-e19e-d6f1-8273-1561cdaba2ad@withers.org> Permalink: ../6ba91527-e19e-d6f1-8273-1561cdaba2ad@withers.org/ Also on: postgresql.org/message-id/6ba91527-e19e-d6f1-8273-1561cdaba2ad@withers.org ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-general@postgresql.org Cc: chris@withers.org, GavinFlower@archidevsys.co.nz, sfrost@snowman.net Subject: Re: surprising query optimisation In-Reply-To: <6ba91527-e19e-d6f1-8273-1561cdaba2ad@withers.org> References: <03a0af57-3ebc-5501-10ef-6a639c7c34b8@withers.org> <20181128224950.GS3415@tamriel.snowman.net> <5d7f8d97-32f3-fd88-44cc-948673579a71@withers.org> <20181130153327.GA3415@tamriel.snowman.net> <9a952022-82b1-a88d-07fb-72c47bc0f875@archidevsys.co.nz> <6ba91527-e19e-d6f1-8273-1561cdaba2ad@withers.org> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox