Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: increase the size limit to 2M (#14331)

rebelicef30e43a18c17
diff --git a/backend/common/util.go b/backend/common/util.go
index 0ce4db87f2..8e9ec264c2 100644
--- a/backend/common/util.go
+++ b/backend/common/util.go
@@ -21,10 +21,10 @@ import (
)
const (
- // MaxSheetSize is the maximum size (1M) of a sheet for displaying.
- MaxSheetSize = 1024 * 1024
+ // MaxSheetSize is the maximum size (2M) of a sheet for displaying.
+ MaxSheetSize = 2 * 1024 * 1024
// MaxSheetCheckSize is the maximum size of a sheet for checking changes.
- MaxSheetCheckSize = 1024 * 1024
+ MaxSheetCheckSize = 2 * 1024 * 1024
// The maximum number of bytes for sql results in response body.
// 100 MB.
DefaultMaximumSQLResultSize = 100 * 1024 * 1024
diff --git a/frontend/src/components/SQLCheck/SQLCheckButton.vue b/frontend/src/components/SQLCheck/SQLCheckButton.vue
index 40d6746b90..9153b4a329 100644
--- a/frontend/src/components/SQLCheck/SQLCheckButton.vue
+++ b/frontend/src/components/SQLCheck/SQLCheckButton.vue
@@ -127,7 +127,7 @@ const emit = defineEmits<{
const { t } = useI18n();
// SKIP_CHECK_THRESHOLD is the MaxSheetCheckSize in the backend.
-const SKIP_CHECK_THRESHOLD = 1024 * 1024;
+const SKIP_CHECK_THRESHOLD = 2 * 1024 * 1024;
const isRunning = ref(false);
const showDetailPanel = ref(false);
const allowForceContinue = ref(true);