Database Sync State Management via Dynamic Tombstone Purging

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

The management of tombstone data in a database is inefficient, as it occupies storage space, increases processing costs, and risks premature purging, leading to incomplete sync state representations on remote devices.

Innovation Solution

A system where a provider maintains a list of changes associated with a sync token, adds tombstones for deleted data, and deletes them only when all consumers are aware of the deletion, ensuring accurate sync state representation without unnecessary storage bloat.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If tombstone data is retained in the database, then sync state accuracy is maintained, but storage space increases and processing costs increase

Engineering Contradiction:
Improvesync state accuracyVSAvoidstorage space
Core Design Contradiction:
ReliabilityVSQuantity of substance

Solution Approach 1:

The patent implements dynamic tombstone management by tracking consumer sync state and dynamically purging tombstones when no longer needed. The system monitors which consumers have synced with which tombstones and automatically removes them after a predetermined period or when all consumers are caught up, transforming static retention into dynamic, demand-driven retention.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system uses feedback from consumer sync requests to determine when tombstones can be safely purged. By tracking which consumers have received which tombstone information and monitoring their sync state, the system gets feedback about actual consumer needs and adjusts tombstone retention accordingly, preventing unnecessary storage while ensuring accuracy.

Inventive Principle:
Principle #23Feedback

2Reliability

If tombstone data is retained in the database, then sync state accuracy is maintained, but processing costs increase

Engineering Contradiction:
Improvesync state accuracyVSAvoidprocessing cost
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent implements dynamic tombstone management by tracking consumer sync state and dynamically purging tombstones when no longer needed. The system monitors which consumers have synced with which tombstones and automatically removes them after a predetermined period or when all consumers are caught up, transforming static retention into dynamic, demand-driven retention.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system uses feedback from consumer sync requests to determine when tombstones can be safely purged. By tracking which consumers have received which tombstone information and monitoring their sync state, the system gets feedback about actual consumer needs and adjusts tombstone retention accordingly, preventing unnecessary processing.

Inventive Principle:
Principle #23Feedback

3Quantity of substance

If an expiration timer is used to purge tombstones, then storage space is reduced, but sync state holes may occur and network transfer costs increase

Engineering Contradiction:
Improvestorage spaceVSAvoidsync state completeness
Core Design Contradiction:
Quantity of substanceVSReliability

Solution Approach 1:

The system uses feedback from consumer sync requests to determine when tombstones can be safely purged. By tracking which consumers have received which tombstone information and monitoring their sync state, the system gets feedback about actual consumer needs and adjusts tombstone retention accordingly, preventing unnecessary processing.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent implements preliminary tracking of consumer sync state before purging tombstones. The system maintains records of which consumers have synced with which tombstones and only purges tombstones after confirming all consumers are caught up, preventing sync state holes before they occur rather than reacting after problems arise.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS9990378B2Opportunistic clearing of sync states associated with a database
Publication Date: 2018.06.05 MICROSOFT TECHNOLOGY LICENSING LLC
  • US9990378B2 patent drawing
  • US9990378B2 patent drawing
  • US9990378B2 patent drawing

AI summary

Systems and techniques of the management of the metadata of a database are presented. A provider is in communication with a database and a set of consumers of the database. Data may be changed by addition, editing or deletion from the database and such changes are recorded and/or maintained by the provider on a list of changes. The changes on this list may be associated with a sync token. The provider may also maintain a list of consumers and associate with each consumer a last sync token which describes when the last sync request and update on the database was made with the consumer. Data which is deleted from the database is recorded with a tombstone. The tombstone is maintained on the list of changes until all consumers have been made aware of the deletion—then the tombstone may be deleted from the list of changes.