Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make batch sizes configurable #4149

Merged
merged 22 commits into from
Mar 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Simplify
  • Loading branch information
AlekSi committed Mar 19, 2024
commit 0a86ac7665481490adb2eab4b899b54e20b7f2ad
9 changes: 0 additions & 9 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,6 @@ tasks:
-postgresql-url='postgres://username@127.0.0.1:5432/ferretdb?search_path='
-compat-url='mongodb://username:password@127.0.0.1:47018/?tls=true&tlsCertificateKeyFile=../build/certs/client.pem&tlsCaFile=../build/certs/rootCA-cert.pem&replicaSet=rs0'
-disable-pushdown={{.DISABLE_PUSHDOWN}}
-batch-size=100

test-integration-sqlite:
desc: "Run integration tests for `sqlite` backend"
Expand All @@ -245,7 +244,6 @@ tasks:
-target-tls
-compat-url='mongodb://username:password@127.0.0.1:47018/?tls=true&tlsCertificateKeyFile=../build/certs/client.pem&tlsCaFile=../build/certs/rootCA-cert.pem&replicaSet=rs0'
-disable-pushdown={{.DISABLE_PUSHDOWN}}
-batch-size=1000

test-integration-mysql:
desc: "Run integration tests for `mysql` handler"
Expand Down Expand Up @@ -366,7 +364,6 @@ tasks:
--handler=pg
--postgresql-url='postgres://username@127.0.0.1:5432/ferretdb?search_path='
--test-records-dir=tmp/records
--test-batch-size=100

run-sqlite:
desc: "Run FerretDB with `sqlite` backend"
Expand All @@ -381,7 +378,6 @@ tasks:
--handler=sqlite
--sqlite-url=file:tmp/sqlite/
--test-records-dir=tmp/records
--test-batch-size=1000

run-mysql:
desc: "Run FerretDB with `mysql` backend"
Expand All @@ -408,7 +404,6 @@ tasks:
--mode=diff-normal
--handler=hana
--test-records-dir=tmp/records
--test-batch-size=100

run-secured:
desc: "Run FerretDB with `postgresql` backend (TLS, auth required)"
Expand All @@ -426,7 +421,6 @@ tasks:
--handler=pg
--postgresql-url='postgres://127.0.0.1:5433/ferretdb?search_path='
--test-records-dir=tmp/records
--test-batch-size=100

run-proxy:
desc: "Run FerretDB in diff-proxy mode"
Expand All @@ -440,7 +434,6 @@ tasks:
--handler=pg
--postgresql-url='postgres://username@127.0.0.1:5432/ferretdb?search_path='
--test-records-dir=tmp/records
--test-batch-size=100

run-sqlite-proxy:
desc: "Run FerretDB with `sqlite` handler in diff-proxy mode"
Expand All @@ -455,7 +448,6 @@ tasks:
--handler=sqlite
--sqlite-url=file:tmp/sqlite/
--test-records-dir=tmp/records
--test-batch-size=1000

run-proxy-secured:
desc: "Run FerretDB in diff-proxy mode (TLS, auth required)"
Expand All @@ -476,7 +468,6 @@ tasks:
--handler=pg
--postgresql-url='postgres://username@127.0.0.1:5433/ferretdb?search_path='
--test-records-dir=tmp/records
--test-batch-size=100

lint:
desc: "Run linters"
Expand Down
2 changes: 1 addition & 1 deletion integration/setup/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var (
mysqlURLF = flag.String("mysql-url", "", "in-process FerretDB: MySQL URL for 'mysql' handler.")
hanaURLF = flag.String("hana-url", "", "in-process FerretDB: Hana URL for 'hana' handler.")

batchSizeF = flag.Int("batch-size", 100, "number of maximum insertion batch size")
batchSizeF = flag.Int("batch-size", 100, "maximum insertion batch size")

compatURLF = flag.String("compat-url", "", "compat system's (MongoDB) URL for compatibility tests; if empty, they are skipped")

Expand Down
Loading