I have a little large database application using PHP and MariaDB 10.3.
I have about 100 tables, and then about 3,000 views.
When exceeding something like 1,000 views, the database schema breaks down and stops being accessible. The tables are stil fine, but all the views break down. When query any of the views it gives different error messages like "prepared statements need to be re-prepared" or "lost connection".
The primary problem is not about table cache as extending this does not solve the problem. It is not either about how to emulate the prepared statements. I have tried those strategies already.
Someone knows this problem and how to solve it?