SELECTIVE DATA MIRRORING FOR IN-MEMORY DATABASES
First Claim
1. A computer-implemented method comprising:
- maintaining, by a database server, a database on persistent storage;
wherein the database includes a data portion that has been designated as eligible for mirroring within volatile memory;
performing an evaluation, by the database server, of one or more factors relating to the data portion;
based on the evaluation, generating eligibility data that corresponds to the data portion;
wherein the eligibility data (a) reflects an estimated benefit of having the data portion mirrored in the volatile memory and (b) is determined by the database server based on the one or more factors;
based on the eligibility data, automatically changing a mirror status of the data portion;
wherein automatically changing the mirror status of the data portion includes one of;
when the data portion is not currently mirrored in the volatile memory, causing the data portion to be mirrored within the volatile memory, orwhen the data portion is currently mirrored in the volatile memory, causing the data portion to be removed from the volatile memory.
0 Assignments
0 Petitions
Accused Products
Abstract
Techniques are provided for maintaining data persistently in one format, but making that data available to a database server in more than one format. For example, one of the formats in which the data is made available for query processing is based on the on-disk format, while another of the formats in which the data is made available for query processing is independent of the on-disk format. Data that is in the format that is independent of the disk format may be maintained exclusively in volatile memory to reduce the overhead associated with keeping the data in sync with the on-disk format copies of the data. Selection of data to be maintained in the volatile memory may be based on various factors. Once selected the data may also be compressed to save space in the volatile memory. The compression level may depend on one or more factors that are evaluated for the selected data. The factors for the selection and compression level of data may be periodically evaluated, and based on the evaluation, the selected data may be removed from the volatile memory or its compression level changed accordingly.
6 Citations
20 Claims
-
1. A computer-implemented method comprising:
-
maintaining, by a database server, a database on persistent storage; wherein the database includes a data portion that has been designated as eligible for mirroring within volatile memory; performing an evaluation, by the database server, of one or more factors relating to the data portion; based on the evaluation, generating eligibility data that corresponds to the data portion; wherein the eligibility data (a) reflects an estimated benefit of having the data portion mirrored in the volatile memory and (b) is determined by the database server based on the one or more factors; based on the eligibility data, automatically changing a mirror status of the data portion; wherein automatically changing the mirror status of the data portion includes one of; when the data portion is not currently mirrored in the volatile memory, causing the data portion to be mirrored within the volatile memory, or when the data portion is currently mirrored in the volatile memory, causing the data portion to be removed from the volatile memory. - View Dependent Claims (2, 3, 4, 5, 6, 6, 8, 9, 10, 11, 12, 13, 14)
-
-
15. One or more non-transitory storage media storing instructions, which when executed by one or more hardware processors, cause:
-
maintaining, by a database server, a database on persistent storage; wherein the database includes a data portion that has been designated as eligible for mirroring within volatile memory; performing an evaluation, by the database server, of one or more factors relating to the data portion; based on the evaluation, generating eligibility data that corresponds to the data portion; wherein the eligibility data (a) reflects an estimated benefit of having the data portion mirrored in the volatile memory and (b) is determined by the database server based on the one or more factors; based on the eligibility data, automatically changing a mirror status of the data portion; wherein automatically changing the mirror status of the data portion includes one of; when the data portion is not currently mirrored in the volatile memory, causing the data portion to be mirrored within the volatile memory, or when the data portion is currently mirrored in the volatile memory, causing the data portion to be removed from the volatile memory. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification