Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Maybe optimize lookups of tables in DB to stop using SHOW TABLES LIKE #165

Closed
Khadreal opened this issue Sep 12, 2024 · 2 comments
Closed
Assignees

Comments

@Khadreal
Copy link
Contributor

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.

public function exists() {

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

@alexstandiford
Copy link
Collaborator

I'm actually going to be working with BerlinDB for a project sometime soon. While I've got it cloned I'll take a look at the PR, too.

Thanks for sharing!

@wordpressfan
Copy link

@JJJ can we please do a release of berlindb/core with all of those merged changes? the last release date was from 2 years or more :D and we use composer to update ur package.
Thanks Boss.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants