Transaction Lock Wait History via Telemetry Events

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing data systems face challenges in efficiently managing transaction locks and constructing transaction lock wait history, particularly in identifying blocker queries that cause delays.

Innovation Solution

The proposed solution involves a method for constructing a transaction lock wait history by generating telemetry events for lock waits and grants, which are then used to identify blocker queries and optimize lock management.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If transaction lock wait history is constructed using traditional methods, then complete lock information can be captured, but the system complexity and processing overhead increase significantly

Engineering Contradiction:
Improvelock wait history accuracyVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system pre-assigns unique transaction IDs to transactions before they acquire locks, and pre-configures event listeners to monitor lock events. This preliminary setup eliminates the need for complex post-processing and reduces system complexity while maintaining complete lock wait history accuracy.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent introduces an intermediary component (lock event listener/monitor) that sits between the transaction processing system and the history recording system. This intermediary captures lock events in real-time and formats them for storage, simplifying both the transaction processing system and the history analysis system while ensuring complete and accurate lock wait history.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Loss of information

If detailed telemetry events are generated for every lock wait and grant, then complete troubleshooting information is available, but the data processing and storage requirements increase

Engineering Contradiction:
Improvetroubleshooting information completenessVSAvoiddata volume
Core Design Contradiction:
Loss of informationVSQuantity of substance

Solution Approach 1:

The system extracts only the essential troubleshooting information from lock events (transaction IDs, lock timestamps, blocker relationships) and stores them in a structured format. Non-essential data is excluded, reducing storage requirements while maintaining complete troubleshooting capability.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The patent transforms raw lock event data into standardized parameters with specific formats (timestamps, transaction IDs, event types). This parameterization allows efficient storage and retrieval while maintaining complete information for troubleshooting, reducing data volume through consistent formatting and indexing.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS12222923B2Event driven technique for constructing transaction lock wait history
Publication Date: 2025.02.11 SNOWFLAKE INC
  • US12222923B2 patent drawing
  • US12222923B2 patent drawing
  • US12222923B2 patent drawing

AI summary

Techniques for constructing transaction lock wait history showing blocker queries are described. A first transaction referencing a resource saved in a network-based data warehouse is received where the first transaction being blocked due to second transaction accessing the resource. A first telemetry event based on the first transaction being blocked is transmitted. After acquiring lock ownership of the resource by the first transaction, a second telemetry event based on acquiring lock ownership by the first transaction is transmitted.