Skip to content

Schema introspection (SHOW FULL COLUMNS ...) became very slow #961

Open
@gregsh

Description

@gregsh

In gitbase 0.20 schema introspection is fast and full.

MySQL Connector/J JDBC metadata call that gets all columns for all tables at once
metaData.getColumns("gitbase", "", "%", "%")
is converted to calls like the following for each table
SHOW FULL COLUMNS FROM `commit_trees` FROM `gitbase` LIKE '%'"

In 0.23 and 0.24-rc the above queries are very slow (several minutes) and even fail for some tables completely in 0.23 (0.24 seems to fix that).

The above prevents from using gitbase in DB tools like JetBrains DataGrip.

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedSome other issue is blocking thisbugSomething isn't workingperformancePerformance improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions