pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feedHow long does iteration over 4-5 million rows usually take?
8+ messages / 6 participants
[nested] [flat]
* How long does iteration over 4-5 million rows usually take?
@ 2022-04-02 01:34 Shaozhong SHI <shishaozhong@gmail.com>
0 siblings, 3 replies; 8+ messages in thread
From: Shaozhong SHI @ 2022-04-02 01:34 UTC (permalink / raw)
To: pgsql-general <pgsql-general@lists.postgresql.org>
I have a script running to iterate over 4-5 million rows. It keeps showing
up in red in PgAdmin. It remains active.
How long does iteration over 4-5 million rows usually take?
Regards,
David
^ permalink raw reply [nested|flat] 8+ messages in thread
* How long does iteration over 4-5 million rows usually take?
@ 2022-04-02 01:35 Shaozhong SHI <shishaozhong@gmail.com>
parent: Shaozhong SHI <shishaozhong@gmail.com>
2 siblings, 1 reply; 8+ messages in thread
From: Shaozhong SHI @ 2022-04-02 01:35 UTC (permalink / raw)
To: pgsql-sql <pgsql-sql@lists.postgresql.org>
I have a script running to iterate over 4-5 million rows. It keeps showing
up in red in PgAdmin. It remains active.
How long does iteration over 4-5 million rows usually take?
Regards,
David
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: How long does iteration over 4-5 million rows usually take?
@ 2022-04-02 01:47 Adrian Klaver <adrian.klaver@aklaver.com>
parent: Shaozhong SHI <shishaozhong@gmail.com>
2 siblings, 0 replies; 8+ messages in thread
From: Adrian Klaver @ 2022-04-02 01:47 UTC (permalink / raw)
To: Shaozhong SHI <shishaozhong@gmail.com>; pgsql-general <pgsql-general@lists.postgresql.org>
On 4/1/22 18:34, Shaozhong SHI wrote:
>
> I have a script running to iterate over 4-5 million rows. It keeps
> showing up in red in PgAdmin. It remains active.
>
> How long does iteration over 4-5 million rows usually take?
Given that there is no real information provided in the problem
description there is no chance for an answer more detailed then; as long
as it takes.
>
> Regards,
>
> David
--
Adrian Klaver
adrian.klaver@aklaver.com
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: How long does iteration over 4-5 million rows usually take?
@ 2022-04-02 02:18 Ron <ronljohnsonjr@gmail.com>
parent: Shaozhong SHI <shishaozhong@gmail.com>
2 siblings, 1 reply; 8+ messages in thread
From: Ron @ 2022-04-02 02:18 UTC (permalink / raw)
To: pgsql-general@lists.postgresql.org
On 4/1/22 20:34, Shaozhong SHI wrote:
>
> I have a script running to iterate over 4-5 million rows. It keeps
> showing up in red in PgAdmin. It remains active.
>
> How long does iteration over 4-5 million rows usually take?
What /*exactly*/ are you doing?
--
Angular momentum makes the world go 'round.
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: How long does iteration over 4-5 million rows usually take?
@ 2022-04-02 13:21 Rob Sargent <robjsargent@gmail.com>
parent: Ron <ronljohnsonjr@gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Rob Sargent @ 2022-04-02 13:21 UTC (permalink / raw)
To: Ron <ronljohnsonjr@gmail.com>; +Cc: pgsql-general@lists.postgresql.org
> On Apr 1, 2022, at 10:18 PM, Ron <ronljohnsonjr@gmail.com> wrote:
>
> On 4/1/22 20:34, Shaozhong SHI wrote:
>>
>> I have a script running to iterate over 4-5 million rows. It keeps showing up in red in PgAdmin. It remains active.
>>
>> How long does iteration over 4-5 million rows usually take?
4-5 million times as long as it takes to do one iteration ( if you’re doing it correctly)
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Re: How long does iteration over 4-5 million rows usually take?
@ 2022-04-02 14:16 Shaozhong SHI <shishaozhong@gmail.com>
parent: Rob Sargent <robjsargent@gmail.com>
0 siblings, 1 reply; 8+ messages in thread
From: Shaozhong SHI @ 2022-04-02 14:16 UTC (permalink / raw)
To: Karsten Hilbert <Karsten.Hilbert@gmx.net>; +Cc: Rob Sargent <robjsargent@gmail.com>; Ron <ronljohnsonjr@gmail.com>; pgsql-general <pgsql-general@lists.postgresql.org>
Thanks, Karsten,
I would like the information to work planning purpose.
Regards,
David
On Sat, 2 Apr 2022 at 14:47, Karsten Hilbert <Karsten.Hilbert@gmx.net>
wrote:
> > > On Apr 1, 2022, at 10:18 PM, Ron <ronljohnsonjr@gmail.com> wrote:
> > >
> > > On 4/1/22 20:34, Shaozhong SHI wrote:
> > >>
> > >> I have a script running to iterate over 4-5 million rows. It keeps
> showing up in red in PgAdmin. It remains active.
> > >>
> > >> How long does iteration over 4-5 million rows usually take?
> >
> > 4-5 million times as long as it takes to do one iteration ( if you’re
> doing it correctly)
>
> I may not take quite that long because setup/teardown times might not be
> needed for each iteration.
>
> Best,
> Karsten
>
>
>
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: Re: How long does iteration over 4-5 million rows usually take?
@ 2022-04-02 14:34 Benedict Holland <benedict.m.holland@gmail.com>
parent: Shaozhong SHI <shishaozhong@gmail.com>
0 siblings, 0 replies; 8+ messages in thread
From: Benedict Holland @ 2022-04-02 14:34 UTC (permalink / raw)
To: Shaozhong SHI <shishaozhong@gmail.com>; +Cc: Karsten Hilbert <Karsten.Hilbert@gmx.net>; Rob Sargent <robjsargent@gmail.com>; Ron <ronljohnsonjr@gmail.com>; pgsql-general <pgsql-general@lists.postgresql.org>
For work planning, create a temporary table, copy from a generated data
set, and test it out. It really depends. Normally, you don't iterate in SQL
since rows are assumed to be independent. You think about SQL in terms of
sets and let application code handle the data transfers. It also really
depends on the size of your tables, indexing, joins, and more. Basically,
there isn't really an answer but it isnt hard to test.
Thanks,
Ben
On Sat, Apr 2, 2022, 10:16 AM Shaozhong SHI <shishaozhong@gmail.com> wrote:
> Thanks, Karsten,
>
> I would like the information to work planning purpose.
>
> Regards,
>
> David
>
> On Sat, 2 Apr 2022 at 14:47, Karsten Hilbert <Karsten.Hilbert@gmx.net>
> wrote:
>
>> > > On Apr 1, 2022, at 10:18 PM, Ron <ronljohnsonjr@gmail.com> wrote:
>> > >
>> > > On 4/1/22 20:34, Shaozhong SHI wrote:
>> > >>
>> > >> I have a script running to iterate over 4-5 million rows. It keeps
>> showing up in red in PgAdmin. It remains active.
>> > >>
>> > >> How long does iteration over 4-5 million rows usually take?
>> >
>> > 4-5 million times as long as it takes to do one iteration ( if you’re
>> doing it correctly)
>>
>> I may not take quite that long because setup/teardown times might not be
>> needed for each iteration.
>>
>> Best,
>> Karsten
>>
>>
>>
^ permalink raw reply [nested|flat] 8+ messages in thread
* Re: How long does iteration over 4-5 million rows usually take?
@ 2022-04-02 16:38 Steve Midgley <science@misuse.org>
parent: Shaozhong SHI <shishaozhong@gmail.com>
0 siblings, 0 replies; 8+ messages in thread
From: Steve Midgley @ 2022-04-02 16:38 UTC (permalink / raw)
To: Shaozhong SHI <shishaozhong@gmail.com>; +Cc: pgsql-sql <pgsql-sql@lists.postgresql.org>
On Fri, Apr 1, 2022 at 6:35 PM Shaozhong SHI <shishaozhong@gmail.com> wrote:
>
>
> I have a script running to iterate over 4-5 million rows. It keeps
> showing up in red in PgAdmin. It remains active.
>
> How long does iteration over 4-5 million rows usually take?
>
>
Please share the SQL query, schema, and sample data. If you are using a
third party script with a db connector, then the answer is much harder to
answer.
^ permalink raw reply [nested|flat] 8+ messages in thread
end of thread, other threads:[~2022-04-02 16:38 UTC | newest]
Thread overview: 8+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-04-02 01:34 How long does iteration over 4-5 million rows usually take? Shaozhong SHI <shishaozhong@gmail.com>
2022-04-02 01:35 ` Shaozhong SHI <shishaozhong@gmail.com>
2022-04-02 16:38 ` Steve Midgley <science@misuse.org>
2022-04-02 01:47 ` Adrian Klaver <adrian.klaver@aklaver.com>
2022-04-02 02:18 ` Ron <ronljohnsonjr@gmail.com>
2022-04-02 13:21 ` Rob Sargent <robjsargent@gmail.com>
2022-04-02 14:16 ` Shaozhong SHI <shishaozhong@gmail.com>
2022-04-02 14:34 ` Benedict Holland <benedict.m.holland@gmail.com>
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