Skip to content

fix(database): respect configured temp table limits - #1301

Open
whoalin1 wants to merge 1 commit into
nextcloud:masterfrom
whoalin1:devin/1795932921-tmp-table-limit-forkbase
Open

whoalin1 wants to merge 1 commit into
nextcloud:masterfrom
whoalin1:devin/1795932921-tmp-table-limit-forkbase

Conversation

@whoalin1

Copy link
Copy Markdown
Contributor

Fixes #1224

The on-disk temporary table warning now only fires when raising tmp_table_size or max_heap_table_size can still help. When both values already meet the 64 MB recommendation, disk-backed temporary tables caused by TEXT/BLOB content no longer produce an unactionable warning.

Validation

  • php -l lib/Database/RuleSet/Mysql.php
  • php -l tests/lib/Database/AdvisorTest.php
  • php vendor-bin/phpunit/vendor/bin/phpunit --bootstrap /tmp/serverinfo-test-bootstrap.php tests/lib/Database/AdvisorTest.php — 8 tests, 9 assertions
  • php-cs-fixer dry-run for both changed files

Not run: a live Nextcloud/MySQL instance. The focused PHPUnit test used a minimal local bootstrap because the app test suite expects placement inside a full Nextcloud server checkout.

Assisted-by: Devin:unknown

@whoalin1
whoalin1 force-pushed the devin/1795932921-tmp-table-limit-forkbase branch 2 times, most recently from 880a8b8 to 156ac0f Compare November 29, 2026 06:18
Temporary tables containing TEXT or BLOB values can be written to disk regardless of the configured memory limits. Warning about the ratio while already recommending values at or below the running configuration produced an action that could not resolve the warning.

Assisted-by: Devin:adaptive
Signed-off-by: Man Alin <whoalin414@gmail.com>
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@whoalin1
whoalin1 force-pushed the devin/1795932921-tmp-table-limit-forkbase branch from 156ac0f to 45c5b0f Compare November 29, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Created_tmp_disk_tables warning despite temporary table limits being set to 64 MB

1 participant