Skip to main content

Nested subquery limits / Max length for queries?

  • May 30, 2018
  • 2 replies
  • 7 views

Forum|alt.badge.img+2

I have some customer feedback asking if there are limits to the number of nested subqueries or limits to the number of characters in a query. The bottom of this page seems to indicate no.

Can anyone confirm that?

Thanks,

Sarah

2 replies

Jim_Knicely
Forum|alt.badge.img+2
  • Participating Frequently
  • May 30, 2018

@SarahL,

Are you referring to the "System Limits" page in the Online Doc where it says:

Query length: No limit
Depth of nesting subqueries: Unlimited in FROM, WHERE, and HAVING clause

See:
https://my.vertica.com/docs/9.1.x/HTML/index.htm#Authoring/SQLReferenceManual/SystemLimits.htm

As the doc says, there are no limits :)

Although, there is a DB parameter that limits the max memory allowed for parsing:

dbadmin=> \x
Expanded display is on.

dbadmin=> SELECT default_value, current_value, description FROM configuration_parameters WHERE parameter_name = 'MaxParsedQuerySizeMB';
-[ RECORD 1 ]-+--------------------------------------------------------------------------------------------------------------------------------------
default_value | 1024
current_value | 512
description   | Maximum amount of memory allowed for parsing a single request; Increasing this value may help with 'Request size too big' errors (MB)

Forum|alt.badge.img+2
  • Author
  • Participating Frequently
  • May 31, 2018

I wanted to check and make sure the doc was correct because a customer brought this up.