Computer System and Database Management Method
First Claim
1. A computer system for managing a database, the computer system comprising:
- a processor having a plurality of processor cores configured to execute a plurality of threads in parallel; and
a storage unit having one or more dedicated log buffers and one or more shared log buffers;
wherein the processor is configured to;
(A) select, for a thread that updates a database region from a plurality of database regions associated with the database and that cannot be updated by two or more threads, a dedicated log buffer as a log buffer to which a log relating to an update of the database region is to be written, and(B) select, for a thread that updates a database region that is among the plurality of database regions and that can be updated by two or more threads, a shared log buffer as a log buffer to which a log relating to an update of the database region is to be written,each dedicated log buffer is a log buffer that can store one or more logs associated with one thread but cannot store two or more logs associated with two or more threads, andeach shared log buffer is a log buffer that can store two or more logs associated with two or more threads.
1 Assignment
0 Petitions
Accused Products
Abstract
A computer system according to the present invention has a plurality of processor cores that execute a plurality of threads in a parallel manner. When one of the threads updates a database (DB) region that is among a plurality of database regions associated with a database (DB), and that cannot be updated by more than one thread, the computer system selects one of one or more dedicated log buffers as a log buffer to which a log relating to the update of the database region is to be written. In contrast, when one of the threads updates a database region that is among the plurality of database regions, and that can be updated by more than one thread, the computer system selects one of one or more shared log buffers as a log buffer to which a log relating to the update of the database region is to be written. Each dedicated log buffer is a log buffer that can store one or more logs associated with only one thread and that cannot store two or more logs associate with two or more threads. Each shared log buffer is a log buffer that can store two or more logs associated with two or more threads.
-
Citations
13 Claims
-
1. A computer system for managing a database, the computer system comprising:
-
a processor having a plurality of processor cores configured to execute a plurality of threads in parallel; and a storage unit having one or more dedicated log buffers and one or more shared log buffers; wherein the processor is configured to; (A) select, for a thread that updates a database region from a plurality of database regions associated with the database and that cannot be updated by two or more threads, a dedicated log buffer as a log buffer to which a log relating to an update of the database region is to be written, and (B) select, for a thread that updates a database region that is among the plurality of database regions and that can be updated by two or more threads, a shared log buffer as a log buffer to which a log relating to an update of the database region is to be written, each dedicated log buffer is a log buffer that can store one or more logs associated with one thread but cannot store two or more logs associated with two or more threads, and each shared log buffer is a log buffer that can store two or more logs associated with two or more threads. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A method for managing a database, the method comprising:
-
(A) selecting, for a thread that updates a database region from a plurality of database regions associated with the database and that cannot be updated by two or more threads, a dedicated log buffer as a log buffer to which a log relating to an update of the database region is to be written; and (B) selecting, for a thread that updates a database region from a plurality of database regions and that can be updated by two or more threads, a shared log buffer as a log buffer to which a log relating to an update of the database region is to be written; each dedicated log buffer is a log buffer that can store one or more logs associated with one thread but cannot store two or more logs associated with two or more threads; and each shared log buffer is a log buffer that can store two or more logs associated with two or more threads.
-
Specification