From: Sachin Kumar <sachinkumaras@gmail.com>
To: pgsql-sql@lists.postgresql.org
Subject: how to make query
Date: Thu, 7 Jan 2021 15:45:02 +0530
Message-ID: <CALg-PKBaGOBtLPD88JLuLkDFh6VarJraupdzOSCKxkAodyRT6w@mail.gmail.com> (raw)
Hi Team,
we are using Python Django and Postgresql. Our requirement is to search 10
Million Card data and bring specific records as a result after checking the
record every time.
We have to find data from a 2nd table that is related to the first one
which we are checking using the loop.
For Ex:-
10000 data - loop 10000 times
to find data from the 2nd table.
This makes our query too slower and it gets time out.
--
Best Regards,
Sachin Kumar
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sachinkumaras@gmail.com, pgsql-sql@lists.postgresql.org
Subject: Re: how to make query
In-Reply-To: <CALg-PKBaGOBtLPD88JLuLkDFh6VarJraupdzOSCKxkAodyRT6w@mail.gmail.com>
* 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