From: Jehan-Guillaume de Rorthais <jgdr@dalibo.com>
To: Atul Kumar <akumar14871@gmail.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: query issue
Date: Tue, 15 Jun 2021 16:46:54 +0200
Message-ID: <20210615164654.18c79454@firost> (raw)
In-Reply-To: <CA+ONtZ7GRQkHFK2j6XFsJR8hjKES4gAaxf1ieSnt9FWWYL9tDg@mail.gmail.com>
References: <CA+ONtZ760jt+57hDYKHqU60t0CPHw5nHizAvqwMBVH8snBN6qw@mail.gmail.com>
<20210615134151.0e54b642@firost>
<CA+ONtZ7GRQkHFK2j6XFsJR8hjKES4gAaxf1ieSnt9FWWYL9tDg@mail.gmail.com>
On Tue, 15 Jun 2021 19:16:41 +0530
Atul Kumar <akumar14871@gmail.com> wrote:
> hi,
>
> I have an RDS instance with 2GB of RAM, 1 CPU, instance class - t2.small.
>
> If you need any more info please let me know.
>
> and as you shared I need to tweak
> random_page_cost/seq_page_cost/effective_cache_size So please suggest
> which parameter value I need to increase or decrease as I am known
> well with these parameters.
First, did you test with "SELECT _id" instead of "SELECT *" ?
About rand_page_costs/effective_cache_size, the fine manual already give some
explanations and tips:
https://www.postgresql.org/docs/current/runtime-config-query.html
With such a low setup, I'm not sure what you can expect though. What is the
concurrency? How many lines in total? The table size?
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: jgdr@dalibo.com, akumar14871@gmail.com
Subject: Re: query issue
In-Reply-To: <20210615164654.18c79454@firost>
References: <CA+ONtZ760jt+57hDYKHqU60t0CPHw5nHizAvqwMBVH8snBN6qw@mail.gmail.com> <20210615134151.0e54b642@firost> <CA+ONtZ7GRQkHFK2j6XFsJR8hjKES4gAaxf1ieSnt9FWWYL9tDg@mail.gmail.com> <20210615164654.18c79454@firost>
* 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