Skip to content

Commit

Permalink
remove custom temp directory
Browse files Browse the repository at this point in the history
  • Loading branch information
k-anshul committed Dec 13, 2024
1 parent 56f4e0b commit f45c379
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions runtime/drivers/duckdb/duckdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,13 +493,8 @@ func (c *connection) reopenDB(ctx context.Context) error {
// We want to set preserve_insertion_order=false in hosted environments only (where source data is never viewed directly). Setting it reduces batch data ingestion time by ~40%.
// Hack: Using AllowHostAccess as a proxy indicator for a hosted environment.
if !c.config.AllowHostAccess {
tempDir, err := c.storage.TempDir()
if err != nil {
return err
}
bootQueries = append(bootQueries,
"SET preserve_insertion_order TO false",
fmt.Sprintf("SET temp_directory = %s", safeSQLString(tempDir)),
fmt.Sprintf("SET secret_directory = %s", safeSQLString(filepath.Join(dataDir, ".duckdb", "secrets"))),
)
}
Expand Down

0 comments on commit f45c379

Please sign in to comment.