Prepared statements discarded
Prepared statements discarded because cache limit was reached.
If you repeatedly see messages about prepared statements being discarded because cache
limit have been reached:
- Investigate the root cause of these messages and check whether prepared statements are used correctly by using bind markers for variable parts.
- Only change the default value of prepared_statements_cache_size_mb when there are more prepared statements than fit in the cache. In most cases it is not necessary to change this value.