Auto-Refreshing Internal Stage Directory Tables

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current database platforms require manual commands to refresh directory tables for internal stages, which is inefficient and lacks automation, unlike external stages that automatically update when files are added.

Innovation Solution

Implementing an auto-ingest framework that uses Simple Queue Service (SQS) queues to automatically refresh directory tables for internal stages by processing S3 event notifications, ensuring files are automatically registered without manual intervention.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Extent of automation

If manual commands are used to refresh directory tables for internal stages, then the system structure remains simple, but the operational efficiency and automation level are reduced

Engineering Contradiction:
Improveautomation of directory table refreshVSAvoidsystem complexity
Core Design Contradiction:
Extent of automationVSDevice complexity

Solution Approach 1:

The system enables self-service by automatically refreshing directory tables for internal stages without requiring manual user commands. The auto-ingest framework monitors for file changes and autonomously updates the directory tables, allowing the system to serve itself rather than requiring user intervention for this specific function.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The implementation uses event notifications from S3 as feedback mechanisms. When files are added to or removed from internal stages, the system receives event notifications and automatically triggers directory table refresh operations, creating a closed-loop feedback system that responds to changes autonomously.

Inventive Principle:
Principle #23Feedback

2Productivity

If manual refresh commands are required, then the system complexity is lower, but the time consumption and productivity are reduced

Engineering Contradiction:
Improveefficiency of file registrationVSAvoidtime for manual refresh operations
Core Design Contradiction:
ProductivityVSLoss of time

Solution Approach 1:

The system performs preliminary action by pre-configuring the auto-ingest framework to automatically monitor and refresh directory tables. The framework is set up in advance with the necessary event subscriptions and processing logic, so when file changes occur, the refresh operation is already prepared to execute immediately without waiting for manual commands.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The implementation ensures continuity of useful action by maintaining continuous monitoring of internal stages for file changes. The auto-ingest framework operates continuously, ready to trigger directory table refresh operations as soon as file additions or removals are detected, eliminating interruptions caused by manual intervention requirements.

Inventive Principle:
Principle #20Continuity of useful action

3Reliability

If external stages automatically update directory tables, then the ease of operation is improved, but internal stages lacking this feature reduce overall system consistency

Engineering Contradiction:
Improveconsistency of file registrationVSAvoidoperational simplicity
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The implementation achieves universality by extending the automatic directory table refresh capability from external stages to internal stages as well. The auto-ingest framework provides a unified mechanism that works for both external and internal stages, ensuring consistent behavior across the entire system regardless of stage type, thereby eliminating operational differences and improving overall reliability.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS12099498B2Auto refresh of directory tables for stages
Publication Date: 2024.09.24 SNOWFLAKE INC
  • US12099498B2 patent drawing
  • US12099498B2 patent drawing
  • US12099498B2 patent drawing

AI summary

In one aspect, a method includes forming, at a database platform, a file stage in a user account on the database platform, the user account being associated with a client, forming, at the database platform, a hidden stage directory table and a data pipeline for the file stage, and binding the data pipeline to the file stage. The method also includes receiving a notification of an event of the file stage. The method also includes identifying the data pipeline corresponding to the file stage. The method also includes updating the hidden stage directory table of the identified data pipeline.