Atomic Category Deletion via Counter Comparison

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Database management systems face challenges in efficiently managing data deletion across categories, particularly in scenarios where data items are associated with categories that have been previously deleted, leading to inconsistencies and inefficiencies in garbage collection processes.

Innovation Solution

Implementing a counter value system that tracks the number of times a category has been deleted, allowing for selective deletion of data items based on the comparison between the current deletion count and the stored count, ensuring atomic deletion of categories and efficient garbage collection.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If traditional deletion methods are used in database management systems, then data items can be deleted from the database, but data consistency and integrity cannot be ensured when categories are deleted multiple times or concurrently

Engineering Contradiction:
Improvedata consistencyVSAvoiddeletion management complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent introduces a category deletion counter as an intermediary mechanism between the deletion request and the actual data item deletion. This counter acts as a mediator that tracks the deletion state of categories and coordinates the deletion of associated data items, ensuring consistency even under concurrent or repeated deletion operations. The counter serves as a synchronization mechanism that prevents inconsistent states without requiring complex transaction management.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent implements a feedback mechanism where the category deletion counter provides continuous information about the deletion state back to the deletion process. When a deletion request is received, the system checks the counter value to determine whether the category is actually deleted, and only then proceeds to delete associated data items. This feedback loop ensures that deletion operations are performed atomically and consistently, preventing partial or duplicate deletions.

Inventive Principle:
Principle #23Feedback

2Loss of substance

If garbage collection is performed frequently to remove deleted data items, then database storage efficiency is improved, but system performance and productivity deteriorate due to continuous scanning and processing

Engineering Contradiction:
Improvestorage efficiencyVSAvoidsystem performance
Core Design Contradiction:
Loss of substanceVSProductivity

Solution Approach 1:

The patent performs preliminary action by marking categories as deleted through the counter mechanism before actually removing associated data items. When a category deletion is requested, the counter is updated immediately to reflect the deleted state, while the actual data item deletion is deferred until garbage collection occurs. This allows the system to maintain storage efficiency without requiring immediate, performance-intensive cleanup operations.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent implements periodic garbage collection instead of continuous or frequent deletion operations. The garbage collection process runs at scheduled intervals to scan for data items associated with deleted categories (identified by the counter mechanism) and remove them. This periodic approach significantly reduces system performance overhead compared to continuous garbage collection, while still maintaining storage efficiency over time.

Inventive Principle:
Principle #19Periodic action

3Reliability

If all data items associated with a category are deleted immediately when the category is deleted, then data integrity is maintained, but the deletion process becomes complex when handling concurrent transactions and repeated deletion requests

Engineering Contradiction:
Improvedata integrityVSAvoidtransaction management complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The patent extracts the deletion coordination logic from the complex transaction management process and places it in the category deletion counter. Instead of managing deletion complexity through intricate transaction protocols, the system simply updates the counter when a category is deleted. The actual data item deletion is then automatically determined by comparing the counter value with the item's stored deletion count, greatly simplifying transaction management while maintaining data integrity.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent implements self-service deletion where data items automatically determine their own deletion status by comparing their stored category deletion count with the current counter value. Each data item essentially manages its own deletion fate based on the counter state, eliminating the need for complex centralized deletion management. This self-service approach maintains data integrity while reducing transaction management complexity.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS8478797B2Atomic deletion of database data categories
Publication Date: 2013.07.02 PULSE SECURE LLC
  • US8478797B2 patent drawing
  • US8478797B2 patent drawing
  • US8478797B2 patent drawing

AI summary

A device maintains, in a database, a plurality of data items, each data item of the plurality of data items being associated with a respective category. The device associates, in the database, a first counter value with each data item, the first counter value indicating a number of times the respective category has been deleted from the database at a time when the data item was stored in the database. The device associates, in the database or another database, a second counter value with the respective category, the second counter value indicating a current value for a number of times the respective category has been deleted from the database. The device selectively deletes, from the database, one or more data items of the plurality of data items from the database based on the first counter values and the second counter value.