The proposed solution
Changed the query to below, we could see improved performance when we do this. we've forked the repo but before creating a PR we thought opening a ticket here to know if there are other things we aren't considering with the solution.
SELECT table_name FROM information_schema.tables WHERE table_name = '%s' LIMIT 1
One of our customers reported a performance issue related to berlindb especially for sites with large tables. This is related to
SHOW TABLES...
query in. https://github.com/berlindb/core/blob/9c4d1fe588b4bff7b9f45091d7890bbbef9c0bc4/src/Database/Table.php#L351The proposed solution Changed the query to below, we could see improved performance when we do this. we've forked the repo but before creating a PR we thought opening a ticket here to know if there are other things we aren't considering with the solution.
SELECT table_name FROM information_schema.tables WHERE table_name = '%s' LIMIT 1