Skip to content

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

@Khadreal

Description

@Khadreal

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions