@@ -133,8 +133,8 @@ def transform_bigquery(config: Dict[str, Any]):
133
133
"project" : config ["project_id" ],
134
134
"dataset" : config ["dataset_id" ],
135
135
"priority" : config .get ("transformation_priority" , "interactive" ),
136
- "threads" : 32 ,
137
- "retries" : 1 ,
136
+ "threads" : 8 ,
137
+ "retries" : 3 ,
138
138
}
139
139
if "credentials_json" in config :
140
140
dbt_config ["method" ] = "service-account-json"
@@ -161,7 +161,7 @@ def transform_postgres(config: Dict[str, Any]):
161
161
"port" : config ["port" ],
162
162
"dbname" : config ["database" ],
163
163
"schema" : config ["schema" ],
164
- "threads" : 32 ,
164
+ "threads" : 8 ,
165
165
}
166
166
167
167
# if unset, we assume true.
@@ -182,7 +182,7 @@ def transform_redshift(config: Dict[str, Any]):
182
182
"port" : config ["port" ],
183
183
"dbname" : config ["database" ],
184
184
"schema" : config ["schema" ],
185
- "threads" : 32 ,
185
+ "threads" : 4 ,
186
186
}
187
187
return dbt_config
188
188
@@ -202,9 +202,13 @@ def transform_snowflake(config: Dict[str, Any]):
202
202
"database" : config ["database" ].upper (),
203
203
"warehouse" : config ["warehouse" ].upper (),
204
204
"schema" : config ["schema" ].upper (),
205
- "threads" : 32 ,
205
+ "threads" : 5 ,
206
206
"client_session_keep_alive" : False ,
207
207
"query_tag" : "normalization" ,
208
+ "retry_all" : True ,
209
+ "retry_on_database_errors" : True ,
210
+ "connect_retries" : 3 ,
211
+ "connect_timeout" : 15 ,
208
212
}
209
213
return dbt_config
210
214
@@ -259,7 +263,7 @@ def transform_mssql(config: Dict[str, Any]):
259
263
"database" : config ["database" ],
260
264
"user" : config ["username" ],
261
265
"password" : config ["password" ],
262
- "threads" : 32 ,
266
+ "threads" : 8 ,
263
267
# "authentication": "sql",
264
268
# "trusted_connection": True,
265
269
}
0 commit comments