An IN list holds more values than the configured maximum

tx0/sql:large-in-liststrictwarningperformance/algorithmicdepth fastperformance

What it finds

An IN list with hundreds of literals is slow to parse and plan, and is usually data that belongs in a table or a parameter array. The maximum is the parameter max, 200 by default.

From the rule's source, large_in_list.rs.

Turn it on, off or suppress it

The rule runs from the strict tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/sql:large-in-list" = "warning"

To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.

tx0 explain tx0/sql:large-in-list shows the same in the terminal. Found a false positive? Report it.