A LIKE pattern starts with a wildcard, so no index on the column helps

tx0/sql:leading-wildcard-likestrictwarningperformance/algorithmicdepth fastperformance

What it finds

name LIKE '%abc': a pattern that starts with a wildcard cannot use an index on the column, so every row is read. A full-text or trigram index serves such searches.

From the rule's source, leading_wildcard_like.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:leading-wildcard-like" = "warning"

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

tx0 explain tx0/sql:leading-wildcard-like shows the same in the terminal. Found a false positive? Report it.