Database fragment cloning and management
First Claim
1. One or more device-readable storage media with device-executable instructions for performing steps comprising:
- creating a primary cloned fragment associated with a subset of records in a database table, the primary cloned fragment having a first plurality of records;
adding a first plurality of update identifiers to the primary cloned fragment, wherein each of the first plurality of update identifiers is a member of one of the first plurality of records;
in response to a secondary cloned fragment being offline during an update, preserving an update in the primary cloned fragment;
identifying the secondary cloned fragment corresponding to the primary cloned fragment, the secondary cloned fragment being stale relative to the primary cloned fragment and the secondary cloned fragment having a second plurality of records and a second plurality of update identifiers, wherein each of the second plurality of update identifiers is a member of one of the second plurality of records;
refreshing the stale secondary cloned fragment with the preserved update when the stale secondary cloned fragment returns online by performing a database operation, wherein the refreshing step further comprises;
identifying a first update identifier of a first record in the first plurality of records included in the primary cloned fragment;
identifying a second update identifier of a second record in the second plurality of records in the stale secondary cloned fragment, the second record corresponding to the first record; and
determining whether the first record and second record with identical cloned record identifiers are consistent based, at least in part, on whether the first update identifier and the second update identifier are equal and while refreshing the stale secondary cloned fragment;
performing an update to the primary cloned fragment; and
updating the stale secondary cloned fragment in response to the performing the update on the primary cloned fragment.
2 Assignments
0 Petitions
Accused Products
Abstract
Mechanisms and techniques for database fragment cloning and management are provided. A database object, such as a table, rowset or index, is divided into fragments. Each fragment is cloned to create cloned fragments, which operationally are substantially identical to one another. One or more of the cloned fragments may be designated as a primary cloned fragment for performing database operations or as a secondary cloned fragment for serving as backup. Updates to each fragment are implemented on the primary cloned fragment and are then propagated from the primary cloned fragment to the corresponding secondary cloned fragments. A cloned fragment can go offline, becoming unavailable to be updated. When the cloned fragment returns online, the cloned fragment is refreshed with data included in the primary cloned fragment. While being refreshed, the cloned fragment may continue to be updated. The cloned fragment is eligible to be designated as a primary cloned fragment when the refreshing process has been completed.
-
Citations
7 Claims
-
1. One or more device-readable storage media with device-executable instructions for performing steps comprising:
creating a primary cloned fragment associated with a subset of records in a database table, the primary cloned fragment having a first plurality of records;
adding a first plurality of update identifiers to the primary cloned fragment, wherein each of the first plurality of update identifiers is a member of one of the first plurality of records;
in response to a secondary cloned fragment being offline during an update, preserving an update in the primary cloned fragment;
identifying the secondary cloned fragment corresponding to the primary cloned fragment, the secondary cloned fragment being stale relative to the primary cloned fragment and the secondary cloned fragment having a second plurality of records and a second plurality of update identifiers, wherein each of the second plurality of update identifiers is a member of one of the second plurality of records;
refreshing the stale secondary cloned fragment with the preserved update when the stale secondary cloned fragment returns online by performing a database operation, wherein the refreshing step further comprises;
identifying a first update identifier of a first record in the first plurality of records included in the primary cloned fragment;
identifying a second update identifier of a second record in the second plurality of records in the stale secondary cloned fragment, the second record corresponding to the first record; and
determining whether the first record and second record with identical cloned record identifiers are consistent based, at least in part, on whether the first update identifier and the second update identifier are equal and while refreshing the stale secondary cloned fragment;
performing an update to the primary cloned fragment; and
updating the stale secondary cloned fragment in response to the performing the update on the primary cloned fragment.- View Dependent Claims (2, 3, 4, 5, 6, 7)
Specification