IP Library Granted Patent US 12,443,624
Granted Patent B2
US 12,443,624 · App. 18/573,942 · Granted Oct 14, 2025

Data processing method, system, device, computer program product, and storage medium

Inventor: Zechao Zhuang (Hangzhou, CN)
Assignee: HANGZHOU ALICLOUD FEITIAN INFORMATION TECHNOLOGY CO., LTD.
G06F16/275G06F16/2358G06F16/2474
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,443,624
App. No.
18/573,942
Granted
Oct 14, 2025
Kind
B2
Abstract

A data processing method, a database system, and an electronic device are disclosed. The method includes: generating a copy page when a data page does not satisfy a condition for writing into a disk; wherein the copy page includes: a first sequence identifier of a log corresponding to modification of the data page at a first time, a second sequence identifier of a log corresponding to modification of the data page at a second time, and data information of the data page after multiple modifications over a period from the first time to the second time, the first time being earlier than the second time; and executing an operation of updating the first sequence identifier corresponding to the data page in the disk to the second sequence identifier when the copy page satisfies the condition for writing into the disk.

Claims (50)

1. A data processing method, the method comprising, by a read-write node of a database system:

generating a temporary copy page when a data page does not satisfy a condition for writing into a disk; wherein the copy page comprises: a first sequence identifier of a log corresponding to modification of the data page at a first time, a second sequence identifier of a log corresponding to modification of the data page at a second time, and data information of the data page after a plurality of modifications over a period from the first time to the second time, the first time being earlier than the second time, and the second sequence identifier in the copy page being fixed without variation;

executing an operation of updating the first sequence identifier corresponding to the data page in the disk to the second sequence identifier in the copy page when the copy page satisfies the condition for writing into the disk, and

replacing the data page in the disk with the copy page to complete a data information update operation; and

wherein the data information update operation comprises an operation of replacing data information comprised in the data page in the disk with the data information comprised in the copy page.

2. The method according to claim 1 , further comprising:

acquiring sequence identifiers of logs applied by at least one read-only node;

determining a safe sequence identifier according to the sequence identifiers of the logs applied by the at least one read-only node; and

the copy page satisfying the condition for writing into the disk when the second sequence identifier is less than or equal to the safe sequence identifier.

3. The method according to claim 2 , wherein determining the safe sequence identifier according to the sequence identifiers of the logs applied by the at least one read-only node comprises:

determining a minimum sequence identifier according to the sequence identifiers of the logs applied by the at least one read-only node; and

using the minimum sequence identifier as the safe sequence identifier.

4. The method according to claim 2 , further comprising:

periodically sending read log position information to the at least one read-only node, the read log position information comprising a maximum sequence identifier among sequence identifiers of logs readable by the at least one read-only node from a shared storage; and

periodically receiving apply log position information fed back from the at least one read-only node, the apply log position information comprising sequence identifiers of logs applied by the at least one read-only node.

5. The method according to claim 1 , further comprising:

receiving a write request for the data page;

modifying the data page in a memory and generating a corresponding log according to the write request;

assigning a sequence identifier to the log; and

sending the log to a disk of a shared storage for storage.

6. The method according to claim 5 , wherein the data page is a hot page with a write request frequency greater than a preset frequency.

7. A non-transitory computer-readable storage medium that stores a computer program that, when executed by a computer, is capable of implementing steps of the method of claim 1 .

8. A data processing method, the method comprising, by a read-only node of a database system:

reading logs from a shared storage;

storing the read logs in a memory;

deleting, from the memory, logs respectively corresponding to a plurality of modifications of a data page over a period from a first time to a second time, after determining that a first sequence identifier corresponding to the data page is updated to a second sequence identifier comprised in a temporary copy page; and

wherein the copy page is generated when the data page does not satisfy a condition for writing into a disk, the copy page comprising: the first sequence identifier of a log corresponding to modification of the data page at the first time, the second sequence identifier of a log corresponding to modification of the data page at the second time, and data information of the data page after the plurality of modifications over the period from the first time to the second time, the first time being earlier than the second time, and the second sequence identifier in the copy page being fixed without variation;

wherein the data page in the disk is replaced with the copy page when the copy page satisfies the condition for writing into the disk, to complete a data information update operation; and

wherein the data information update operation comprises an operation of replacing data information comprised in the data page in the disk with the data information comprised in the copy page.

9. The method according to claim 8 , further comprising:

receiving a read request for the data page;

applying a log stored in the memory corresponding to modification of the data page at a third time to modify the data page, wherein the third time is later than the second time; and

providing, in response to the read request, feedback on the modified data page.

10. An electronic device comprising:

a processor; and

a memory comprising at least one instruction, at least one program, a code set, or an instruction set wherein the at least one instruction, the at least one program, the code set, or the instruction set is configured to be loaded and executed by the processor to implement the data processing method of claim 8 .

11. A non-transitory computer-readable storage medium that stores a computer program that, when executed by a computer, is capable of implementing steps of the method of claim 8 .

12. A database system, comprising:

a read-write node configured for:

generating a temporary copy page when a data page does not satisfy a condition for writing into a disk, wherein the copy page comprises: a first sequence identifier of a log corresponding to modification of the data page at a first time, a second sequence identifier of a log corresponding to modification of the data page at a second time, and data information of the data page after a plurality of modifications over a period from the first time to the second time, the first time being earlier than the second time, and the second sequence identifier in the copy page being fixed without variation;

executing an operation of updating the first sequence identifier corresponding to the data page in the disk to the second sequence identifier in the copy page when the copy page satisfies the condition for writing into the disk; and

replacing the data page in the disk with the copy page to complete a data information update operation; and wherein the data information update operation comprises an operation of replacing data information comprised in the data page in the disk with the data information comprised in the copy page;

a shared storage, having the disk, and configured for storing data pages and logs; and

a read-only node, configured for:

reading logs from the shared storage,

storing the read logs in a memory, and

deleting, from the memory, logs respectively corresponding to the plurality of modifications of the data page over the period from the first time to the second time after determining that the first sequence identifier corresponding to the data page is updated to the second sequence identifier comprised in the copy page.

13. An electronic device, comprising:

a processor; and

a memory comprising at least one instruction, at least one program, a code set, or an instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is configured to be loaded and executed by the processor to implement the data processing method of claim 1 .

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 30, 2026
From: HANGZHOU ALICLOUD FEITIAN INFORMATION TECHNOLOGY CO., LTD.
To: CLOUD INTELLIGENCE ASSETS HOLDING (SINGAPORE) PRIVATE LIMITED
Reel/Frame 075366/0376 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 2, 2024
From: ZHUANG, ZECHAO
To: HANGZHOU ALICLOUD FEITIAN INFORMATION TECHNOLOGY CO., LTD.
Reel/Frame 065993/0347 →
Priority Claims (1)
CN 202110751374.7 · Jul 2, 2021 · national
Continuity (1)
Related Publication 20240289352A1 · Aug 29, 2024
References Cited (18)
US 5897660A · Reinders · 1999 [cited by examiner]
US 8086580B2 · Sachedina · 2011 [cited by examiner]
US 11182372B1 · Jain · 2021 [cited by examiner]
US 11494408B2 · Chainani · 2022 [cited by examiner]
US 20150347289A1 · Ma · 2015 [cited by examiner]
US 20190370124A1 · Sadavarte · 2019 [cited by examiner]
US 20200226100A1 · Li · 2020 [cited by examiner]
US 20200249878A1 · Bismuth · 2020 [cited by examiner]
US 20210089556A1 · Chainani · 2021 [cited by examiner]
US 20210109665A1 · Thimbleby · 2021 [cited by examiner]
US 20210141770A1 · Wang · 2021 [cited by examiner]
CN 109313637 · 2019 [cited by applicant]
CN 110019066 · 2019 [cited by applicant]
CN 112182010 · 2021 [cited by applicant]
CN 112506941 · 2021 [cited by applicant]
CN 112835528 · 2021 [cited by applicant]
English Translation of International Search Report for International PCT Patent Application No. PCT/SG2022/050457 issued Feb. 16, 2023 (3 pages). [cited by applicant]
Notification of the First Office Action issued Mar. 29, 2025 in corresponding Chinese Patent Application No. 202110751374.7 (16 pages). [cited by applicant]