Hello,
I've have a question about deleting millions of rows of partitioned table.
There are 12 table partitions for storing specific customer data.
Each partition holds up data for 3 months, so that these 12 partitions
store data for the last 3 years. I want to delete all records of the
4 oldest partitions and use them then as the paritions for thew newest
customer data coming in. It's like a ring buffer, that holds data for the
past 3 years.
Locking the 4 partitions and deleting all corresponding rows takes too much time
and would prevend new customer data from beeing stored.
I have two ideas how to delete the corresponding records.
1) delete/remove old partitions, create new partitions
2) delete a creatin amount of records of the partitions block wise on a daily basis.
Is there a better way how to delete the old partitions very fast ? What about idea 1. Could that work ?
kind regards,
bob harris
strategy: partitioned table, delete millions of rows
-
- Posts: 17
- Joined: Fri Jul 08, 2022 7:29 pm
- Skillset: leblesmoutilabiskouti
- Referer: leblesmoutilabiskouti
Re: strategy: partitioned table, delete millions of rows
Hello
A LOAD DUMMY with "LOG NO" option takes less than one second, even if there are millions or billions of rows !
That's the best way to remove all records from a partition or a table
A LOAD DUMMY with "LOG NO" option takes less than one second, even if there are millions or billions of rows !
That's the best way to remove all records from a partition or a table
-
- Similar Topics
- Replies
- Views
- Last post
-
- 6
- 4524
-
by MemoPerez
View the latest post
Tue Oct 24, 2023 10:07 pm
-
- 1
- 2506
-
by enrico-sorichetti
View the latest post
Fri Apr 02, 2021 6:56 pm
-
- 3
- 1586
-
by sergeyken
View the latest post
Thu May 13, 2021 1:07 am
-
- 5
- 1784
-
by willy jensen
View the latest post
Fri Dec 03, 2021 8:16 pm
-
- 3
- 3832
-
by sergeyken
View the latest post
Thu Mar 25, 2021 7:12 pm