0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/plugins/discourse-ai/lib/translation
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
..
base_candidates.rb
base_translator.rb FIX: Control characters injected into AI translations (#41743) 2026-07-15 13:48:00 -03:00
category_candidates.rb FEATURE: Show progress of other translation targets in the AI translation admin page (#41983) 2026-07-24 12:24:51 +08:00
category_locale_detector.rb
category_localizer.rb PERF: Cache LlmModel lookups in backfill jobs (#36359) 2025-12-01 17:04:25 -03:00
content_splitter.rb DEV: Enable Style/RedundantParentheses rubocop rule (#40095) 2026-05-19 15:48:09 +02:00
entry_point.rb FIX: Retranslate topic excerpts and avoid using post versions to indicate change (#36382) 2025-12-02 22:45:11 +08:00
language_detector.rb DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
localizable_quota.rb FIX: Retranslate topic excerpts and avoid using post versions to indicate change (#36382) 2025-12-02 22:45:11 +08:00
post_candidates.rb PERF: Remove ai_translation_max_post_length setting (#42133) 2026-07-30 19:35:58 +08:00
post_detection_text.rb
post_locale_detector.rb
post_localizer.rb PERF: Remove ai_translation_max_post_length setting (#42133) 2026-07-30 19:35:58 +08:00
post_raw_translator.rb DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
progress.rb PERF: Remove ai_translation_max_post_length setting (#42133) 2026-07-30 19:35:58 +08:00
short_text_translator.rb DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
sidebar_section_candidates.rb FEATURE: Allow admins to localize custom sidebar section and links (#41795) 2026-07-21 21:45:50 +08:00
sidebar_section_locale_detector.rb FEATURE: Allow admins to localize custom sidebar section and links (#41795) 2026-07-21 21:45:50 +08:00
sidebar_section_localizer.rb FEATURE: Allow admins to localize custom sidebar section and links (#41795) 2026-07-21 21:45:50 +08:00
tag_candidates.rb FEATURE: Show progress of other translation targets in the AI translation admin page (#41983) 2026-07-24 12:24:51 +08:00
tag_locale_detector.rb FEATURE: Introduce tag localizations with API, without UI yet (#36754) 2025-12-18 18:25:58 +08:00
tag_localizer.rb FEATURE: Introduce tag localizations with API, without UI yet (#36754) 2025-12-18 18:25:58 +08:00
topic_candidates.rb UX: Convert AI translation's max days ago setting to a specific date setting instead (#42082) 2026-07-28 18:27:34 +08:00
topic_locale_detector.rb
topic_localizer.rb DEV: Add rake task to backfill localization excerpts which were empty (#36901) 2025-12-30 17:04:36 +08:00
topic_title_translator.rb DEV: AI persona to agent migration (#38319) 2026-03-10 15:59:45 +11:00
verbose_logger.rb