Skip to content

Getting Started

Feature Comparison

How SQLLoad differs from dlt and ingestr: state, schema, types, and loading large data by bulk copy.

dlt and ingestr are both good tools: dlt has a large ecosystem of verified sources and a familiar Python API, and ingestr loads from many sources with one command, as a fast native binary. This page sets out where SQLLoad differs. Each claim about the other tools comes from their own docs or source at the versions SQLLoad’s benchmarks used: dlt 1.32.0 and ingestr 1.1.82.

SQLLoad is free and open source (Apache-2.0). To move a dlt pipeline to SQLLoad, see Coming from dlt.

SQLLoad dlt 1.32.0 ingestr 1.1.82
Schema Read from the live destination table every run, or from columns you declare A stored schema, kept locally and in _dlt_version at the destination Taken from the source each run
Incremental position The destination’s maximum of cursor_column Pipeline state, kept locally and in _dlt_pipeline_state Passed by you each run (--interval-start, --interval-end)
Positions the data can’t carry Opt-in, append-only run log, checked against the data Pipeline state Not kept for incremental loads
Local working directory None ~/.dlt/pipelines/<pipeline_name> None
Preview before changes sqlload plan: every table, column, type mapping, write strategy and route
Files already in S3, into Snowflake Snowflake reads them in place from an external stage Read and rewritten by dlt, then staged Read by ingestr, then staged
Parquet files into DuckDB DuckDB reads them itself Read by dlt Read by ingestr
Rows into Snowflake Parquet staged, then COPY Files staged, then COPY Parquet staged, then COPY
Benchmarks Fastest in every published scenario

SQLLoad keeps nothing outside your destination: drop a table, truncate it or add a column by hand, and the next run follows it. Only positions the data can’t carry, such as an API’s sync token, go in an opt-in run log, which is safe to delete.

dlt keeps a working directory per pipeline, by default in ~/.dlt/pipelines/<pipeline_name>, holding “extracted files, load packages, inferred schemas, execution traces, and the pipeline state” (pipeline.md). At the destination it writes _dlt_version, holding the schema as JSON, and _dlt_pipeline_state, holding the state, which includes incremental cursors (schema/utils.py). dlt restores the local copy from the destination on a clean start (state.md).

dlt compares its stored schema with the destination’s INFORMATION_SCHEMA only when the schema’s version changes, and then adds only missing tables and columns; “Any other changes like data types, hints, etc. are ignored” (job_client_impl.py). When a value can’t be coerced into a column’s type, dlt adds a variant column such as id__v_text (schema.md).

SQLLoad reads the live table’s columns on every run and diffs them with the source and your declarations. A value that doesn’t fit an inferred column fails the table with the column, both types and the fix, and never creates a second column. See Contracts.

SQLLoad reads Postgres with binary COPY and keeps numeric(p,s) at its precision and scale, jsonb as JSON, timestamps with and without time zones apart, and uuid and bytea as their own types. numeric without a precision fails plan until you pin a type such as decimal(38,18).

  • dlt reads databases with SQLAlchemy by default, and offers PyArrow, pandas and ConnectorX backends. Its docs say that with ConnectorX “decimals may be rounded” and Postgres JSON fields “are double-wrapped in strings” (sql_database configuration).
  • ingestr reads Postgres natively, and keeps numeric(p,s), timestamps, uuid, JSON and binary exactly. It maps numeric without a precision to DECIMAL(38,9) (mapper.go), so a value with more than 9 decimal places is cut to 9: in our test, 3.141592653589793238 loaded as 3.141592653.

The fastest load lets the warehouse copy files in bulk, straight from your bucket or folder, or from a stage of Parquet. SQLLoad takes that route wherever it loads the data exactly, and plan names it for every table.

  • Files already in S3 into Snowflake: Snowflake runs COPY from an external stage over the files’ bucket, so no row passes through SQLLoad. dlt’s filesystem source “reads the files’ content and yields the records”, and its Snowflake destination stages its own load files (filesystem, snowflake.md). ingestr writes Parquet and uploads it to the table’s stage (snowflake.md).
  • Parquet into DuckDB: DuckDB reads the files itself with read_parquet.
  • Rows into Snowflake: SQLLoad stages Parquet on an external or internal stage and runs COPY, committing large loads along the way.

A route that can’t be used fails at plan with the fix, never falling back to a slower one. See Load methods.

SQLLoad was fastest in every published scenario, into DuckDB and Snowflake, from Postgres, local Parquet and S3. Benchmarks has every figure with its versions, hardware and method.