0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/db
Rafael dos Santos Silva 5b6d87a4c9
PERF: Remove ai_translation_max_post_length setting (#42133)
Previously, every SQL query finding translation candidates (admin
progress report and backfill jobs) filtered on `LENGTH(posts.raw)`,
which forced detoasting `raw` for every scanned row and made those
queries slow, while the limit itself no longer guarded anything — long
posts are already split into chunks sized to the model's
`max_output_tokens`, and core's `max_post_length` bounds raw size.

This change removes the setting and its query filters, deletes any
stored override via a post-deploy migration, and bumps the translation
progress cache versions since eligibility counts change.

Note for review: on existing sites, posts previously excluded by the
limit become eligible for backfill, so pending counts (and translation
spend on long-form content) will increase accordingly.
2026-07-30 19:35:58 +08:00
..
fixtures FIX: Do not notify new sites or plugins enabled of old upcoming changes (#42045) 2026-07-30 09:51:08 +10:00
migrate FEATURE: Allow selection of multiple content languages when viewing topics and posts (#42128) 2026-07-30 12:19:44 +08:00
post_migrate FEATURE: Make the message send shortcut a core user option (#42105) 2026-07-28 13:58:12 -07:00
api_test_seeds.rb
structure.sql PERF: Remove ai_translation_max_post_length setting (#42133) 2026-07-30 19:35:58 +08:00