Skip to content

Commit 94604df

Browse files
authored
fix(search): limit description for search (#18443)
If a release description is larger than the transport size, the indexing will fail, as it cannot pass more than a single 10MB request. Fixes WAREHOUSE-PRODUCTION-29W Signed-off-by: Mike Fiedler <[email protected]>
1 parent f0c574a commit 94604df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

warehouse/search/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def _project_docs(db, project_name: str | None = None):
4040
)
4141
projects_to_index = (
4242
select(
43-
Description.raw.label("description"),
43+
func.left(Description.raw, 5_000_000).label("description"),
4444
Release.author,
4545
Release.author_email,
4646
Release.maintainer,

0 commit comments

Comments
 (0)