From 5413784c33116db51dcf875e8bb387499da4e921 Mon Sep 17 00:00:00 2001 From: Tim Meehan Date: Fri, 31 Oct 2025 12:22:04 -0400 Subject: [PATCH] Add documentation about header size limits --- presto-docs/src/main/sphinx/troubleshoot/query.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/presto-docs/src/main/sphinx/troubleshoot/query.rst b/presto-docs/src/main/sphinx/troubleshoot/query.rst index 3232454d8697d..af51240d6b040 100644 --- a/presto-docs/src/main/sphinx/troubleshoot/query.rst +++ b/presto-docs/src/main/sphinx/troubleshoot/query.rst @@ -44,4 +44,7 @@ Edit ``config.properties`` for the Presto coordinator, and set the value of the http-server.max-request-header-size=5MB -See :ref:`admin/properties:\`\`http-server.max-request-header-size\`\``. \ No newline at end of file +See :ref:`admin/properties:\`\`http-server.max-request-header-size\`\``. + +Alternatively, avoid using prepared statements for large queries. Prepared statements +place the SQL template in request headers, which can exceed the header size limit. \ No newline at end of file