Skip to content
This repository has been archived by the owner on Mar 3, 2021. It is now read-only.

Commit

Permalink
Fixed issue #4.
Browse files Browse the repository at this point in the history
dbt's default batch size of 10,000 rows is far too long for SQL Server. I tried setting it to 800 rows, but the issues persisted. Dropping the batch size to 200 seems to have resolved the issue satisfactorally.
  • Loading branch information
jacobm001 committed Aug 7, 2019
1 parent fffbdde commit 1b91eb9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions dbt/include/mssql/macros/materializations/seed/seed.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@
{# Return SQL so we can render it out into the compiled files #}
{{ return(statements[0]) }}
{% endmacro %}

{% macro mssql__load_csv_rows(model) %}
{{ return(basic_load_csv_rows(model, 200) )}}
{% endmacro %}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from distutils.core import setup

package_name = "dbt-mssql"
package_version = "1.0.2"
package_version = "1.0.3"
description = """The mssql adpter plugin for dbt (data build tool)"""

setup(
Expand Down

0 comments on commit 1b91eb9

Please sign in to comment.