Skip to content

Commit 9ddb7cf

Browse files
goffrieConvex, Inc.
authored andcommitted
Reduce FALLBACK_PAGE_SIZE some more (#43138)
GitOrigin-RevId: 2796c920f4a4700ed846526dccd43d919e5f1c8d
1 parent 540b64d commit 9ddb7cf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

crates/mysql/src/lib.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,10 @@ use crate::{
129129
};
130130

131131
// Vitess limits query results to 64MiB.
132-
// As documents can be up to 1MiB (plus some overhead), we may need to fall back
133-
// to a much smaller page size if we hit the limit while loading documents.
134-
const FALLBACK_PAGE_SIZE: u32 = 10;
132+
// As documents can be up to 1MiB (plus some overhead) and system documents can
133+
// be larger still, we may need to fall back to a much smaller page size if we
134+
// hit the limit while loading documents.
135+
const FALLBACK_PAGE_SIZE: u32 = 5;
135136

136137
#[derive(Clone, Debug)]
137138
pub struct MySqlInstanceName {

0 commit comments

Comments
 (0)