Skip to content

Commit 4c4fe4f

Browse files
committed
fix: update default max query chars
1 parent 964b174 commit 4c4fe4f

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SET SEARCH_PATH TO {SCHEMA_NAME};
2+
3+
UPDATE connections
4+
SET max_query_chars = 20000
5+
WHERE max_query_chars = 9000;

testgen/ui/components/frontend/js/components/connection_form.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const ConnectionForm = (props, saveButton) => {
106106
const connectionFlavor = van.state(connection?.sql_flavor_code);
107107
const connectionName = van.state(connection?.connection_name ?? '');
108108
const connectionMaxThreads = van.state(connection?.max_threads ?? 4);
109-
const connectionQueryChars = van.state(connection?.max_query_chars ?? 9000);
109+
const connectionQueryChars = van.state(connection?.max_query_chars ?? 20000);
110110
const privateKeyFile = van.state(getValue(props.cachedPrivateKeyFile) ?? null);
111111
const serviceAccountKeyFile = van.state(getValue(props.cachedServiceAccountKeyFile) ?? null);
112112

@@ -131,7 +131,7 @@ const ConnectionForm = (props, saveButton) => {
131131
sql_flavor_code: connectionFlavor.rawVal ?? '',
132132
connection_name: connectionName.rawVal ?? '',
133133
max_threads: connectionMaxThreads.rawVal ?? 4,
134-
max_query_chars: connectionQueryChars.rawVal ?? 9000,
134+
max_query_chars: connectionQueryChars.rawVal ?? 20000,
135135
});
136136
const dynamicConnectionUrl = van.state(props.dynamicConnectionUrl?.rawVal ?? '');
137137

@@ -337,7 +337,7 @@ const ConnectionForm = (props, saveButton) => {
337337
hint: 'Some tests are consolidated into queries for maximum performance. Default values should be retained unless test queries are failing.',
338338
value: connectionQueryChars.rawVal,
339339
min: 500,
340-
max: 14000,
340+
max: 50000,
341341
onChange: (value) => connectionQueryChars.val = value,
342342
}),
343343
),

0 commit comments

Comments
 (0)