Alteryx Database File Format

Version:
2022.1
Last modified: May 04, 2022

The Alteryx database file format YXDB is a file type that can hold data fields, values, and spatial objects. The YXDB format is the most efficient file type for reading and writing in Alteryx because it has no size limit, is compressed for maximum speed, and includes additional metadata that references the source of the data and how the data was created. While there is no limit to the number of rows or file size, there is a size limit of 2 GB for a single cell in a 64-bit environment. All Alteryx products have read and write support for YXDB files.

Why is a YXDB file the most efficient input/output file type?

A YXDB file uses the exact same column types, structures, and formats as Alteryx does internally, so it works best with the program. There is no row limit so you can have greater than 2 billion rows. There is not any other file format, other than text, that supports as many rows.

Is a YXDB file compressed?

Yes, they are minimally compressed for maximum speed, not maximum compression. If you have a spatial index, the compression is not very noticeable. Without a spatial index, the compression can be quite good at times.

If I want to transform data in a file containing a spatial object, but do not interact with the spatial object, is it still most efficient to use a YXDB?

Yes, but in this case, you would want to turn off the Spatial Index in the advanced options so you don't waste any time and space creating it.

What other information is stored in a YXDB file?

When Alteryx writes to a YXDB file, the data in the Source and Description columns are saved in the file so you will always know how a field was created or what vintage of the underlying data values are. See the Field Info Tool for an example of this metadata.

Example Use Case

Problem

I have 2 SQL queries and a few workflows where the second dataset stays the same and has 3 million records. Is there a way I can reuse the second dataset in the same workflow or in different workflows so that it won't have to execute the select statement again and again?

Solution

If you need intermediate storage of data in your workflow, use an Output Data tool and write to YXDB format. You can have your first workflow write to the YXDB file which stores all of the data from your query. Then use that YXDB as the input data for your other workflows. This way you can work off of the static dataset for development. If you ever want to switch the workflow to a live data connection you can just copy the Input Data tool from the other workflow. 

Alternatively, if you only need to reuse data within one workflow, consider the Cache and Run Workflow feature. 
Cache and Run Workflow UI

Was This Page Helpful?

Running into problems or issues with your Alteryx product? Visit the Alteryx Community or contact support. Can't submit this form? Email us.