Mastering Alteryx Designer for Data Analysts & ETL AutomationLesson 26 of 41
Lesson 26 of 41

In-Database (In-DB) Architecture: Connect, Filter & Select In-DB

Overview & Learning Objectives

When datasets scale into hundreds of millions or billions of rows in enterprise cloud data warehouses (Snowflake, Databricks, Google BigQuery), transferring records across the network into local Alteryx RAM crashes client workstations. The In-Database (In-DB) tool suite uses pushdown query optimization, building underlying SQL statements visually on the canvas and executing compute entirely within the database engine.

  • Understand the fundamental architecture of In-Database (In-DB) pushdown computing.
  • Establish enterprise warehouse connections using the Connect In-DB tool.
  • Filter and select fields using Filter In-DB and Select In-DB without pulling data into local memory.

Industry Standard

Standard: Enterprise cloud analytics standards at Snowflake and PwC mandate using In-DB tools for all initial filtering, joining, and aggregation passes on datasets exceeding 10 million rows to eliminate network egress costs and client memory bottlenecks.

Real-World Example: ScoopCraft Ice Cream 100-Million Row Snowflake Ingestion

ScoopCraft queries 100 million order rows stored in Snowflake, filtering for active year-to-date orders without moving raw data over the VPN.

Processing StageStandard In-Memory IngestionIn-Database (In-DB) PushdownPerformance Advantage
Data TransferDownloads 100M rows over network (18 GB)0 bytes transferred over network!Instant network response
Filter ExecutionLocal CPU evaluates 100M records in RAMExecuted in Snowflake warehouseCompletes in 1.2 seconds
Memory FootprintConsumes 16 GB client workstation RAMConsumes < 50 MB local RAMZero workstation slowdown

Configuration & Core Workflow

-- Connect In-DB Configuration
Connection Type: Snowflake / Databricks / SQL Server
Connection Name: Enterprise_Snowflake_DW
Table or Query: FACT_ZEPTO_DELIVERIES

-- Under the Hood: Alteryx dynamically builds and pushes down SQL:
SELECT store_id, order_id, order_total, delivery_status
FROM FACT_ZEPTO_DELIVERIES
WHERE delivery_status = 'Delivered' 
  AND order_total > 500;

Parameters Breakdown

  • Connect In-DB: Establishes persistent connection to cloud warehouse or database without pulling records.
  • Filter In-DB: Appends a SQL `WHERE` clause dynamically to the pushed-down database query.
  • Select In-DB: Renames, reorders, or drops columns by generating SQL `SELECT col AS alias` statements.
  • In-DB Connection Wire (Grey): Visual indicator: In-DB connections display as thick grey wires (standard data is thin green).

Sample Walkthrough (Q&A)

Question: Can you connect a standard green-anchor tool (like a standard Formula tool) directly to a grey In-DB anchor?

Formula / Action: Filter In-DB (Grey Anchor) -> Standard Formula Tool (Green Anchor)

Result: Cannot connect! Alteryx will prevent the connection.

Explanation: In-DB tools communicate via query fragments (grey wires). To transition into standard in-memory tools, you must place a `Data Stream Out` tool.

Common Mistakes & Limitations

  • Attempting to connect standard tools directly to In-DB tools without a Data Stream Out bridge.
  • Using non-standard SQL functions inside Filter In-DB that the target database engine does not support.

Keyboard Shortcuts

ActionWindowsMac
View Pushed SQLClick "View Query" in In-DB tool propertiesView Query
Bridge to MemoryIn/Out Palette -> Data Stream OutData Stream Out

Pro Tips & Modern Alternatives

  • Use `Dynamic Output In-DB` to extract the generated SQL query text directly into a string for auditing.
  • Use standard tools with `Record Limit` if data volume is under 1 million rows and client compute is sufficient.