diff --git a/example/benchmark/read-native/main.go b/example/benchmark/read-native/main.go index 1a3b94b..2a4728a 100644 --- a/example/benchmark/read-native/main.go +++ b/example/benchmark/read-native/main.go @@ -6,7 +6,6 @@ import ( "time" "github.com/uptrace/go-clickhouse/ch" - "github.com/uptrace/go-clickhouse/chdebug" ) const query = ` @@ -40,11 +39,10 @@ func benchmark(ctx context.Context, db *ch.DB) error { func main() { ctx := context.Background() - db := ch.Connect(ch.WithDatabase("test")) - db.AddQueryHook(chdebug.NewQueryHook( - chdebug.WithEnabled(false), - chdebug.FromEnv(""), - )) + db := ch.Connect( + ch.WithDatabase("test"), + ch.WithCompression(false), + ) start := time.Now() if err := benchmark(ctx, db); err != nil { diff --git a/example/benchmark/write-native-columnar/main.go b/example/benchmark/write-native-columnar/main.go index 73849c4..3c71f50 100644 --- a/example/benchmark/write-native-columnar/main.go +++ b/example/benchmark/write-native-columnar/main.go @@ -6,7 +6,6 @@ import ( "time" "github.com/uptrace/go-clickhouse/ch" - "github.com/uptrace/go-clickhouse/chdebug" ) type Model struct { @@ -35,11 +34,10 @@ func benchmark(ctx context.Context, db *ch.DB) error { func main() { ctx := context.Background() - db := ch.Connect(ch.WithDatabase("test")) - db.AddQueryHook(chdebug.NewQueryHook( - chdebug.WithEnabled(false), - chdebug.FromEnv(""), - )) + db := ch.Connect( + ch.WithDatabase("test"), + ch.WithCompression(false), + ) if err := db.ResetModel(ctx, (*Model)(nil)); err != nil { panic(err)