Skip to content

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

chore: change size to 1M (#6812)

Danny Xu40d7b72766c5
diff --git a/backend/common/util.go b/backend/common/util.go
index e616d7011a..9d1821b410 100644
--- a/backend/common/util.go
+++ b/backend/common/util.go
@@ -18,8 +18,8 @@ import (
)
const (
- // MaxSheetSize is the maximum size of a sheet for displaying.
- MaxSheetSize = 500 * 10240
+ // MaxSheetSize is the maximum size (1M) of a sheet for displaying.
+ MaxSheetSize = 1024 * 1024
// MaxSheetSizeForTaskCheck is the maximum size of a sheet for task check to run.
MaxSheetSizeForTaskCheck = 10 * 1024 * 1024
// MaxSheetSizeForRollback is the maximum size of a sheet for rollback generator to run.
diff --git a/backend/store/instance_change_history.go b/backend/store/instance_change_history.go
index 7a84e451a7..75ddebc70f 100644
--- a/backend/store/instance_change_history.go
+++ b/backend/store/instance_change_history.go
@@ -49,8 +49,8 @@ type InstanceChangeHistoryMessage struct {
IssueProjectID string
}
-// instanceChangeHistoryTruncateLength is the maximum size of a sheet for displaying.
-const instanceChangeHistoryTruncateLength = 500 * 1024
+// instanceChangeHistoryTruncateLength is the maximum size (1M) of a sheet for displaying.
+const instanceChangeHistoryTruncateLength = 1024 * 1024
// FindInstanceChangeHistoryMessage is for listing a list of instance change history.
type FindInstanceChangeHistoryMessage struct {