Prepared statements discarded

Prepared statements discarded because cache limit was reached.

The DataStax Enterprise Help Center also provides troubleshooting information.

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