Skip to content

GitLab

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    • Menu
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • thehub thehub
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • Flowee
  • thehubthehub
  • Merge requests
  • !14

Added MySQL speed improvement

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged justBCHit requested to merge justBCHit/thehub:master into master May 11, 2020
  • Overview 2
  • Commits 1
  • Pipelines 1
  • Changes 1

Two-to-three orders of magnitude speed improvement in the queryTableExists function for MySQL databases.

mysql> select count(*) from AddressUsage_0;
+----------+
| count(*) |
+----------+
| 38033514 |
+----------+
1 row in set (8.99 sec)

mysql> SELECT address_row IS NOT NULL AS tableexists FROM AddressUsage_0 LIMIT 1;
+-------------+
| tableexists |
+-------------+
|           1 |
+-------------+
1 row in set (0.01 sec)

mysql> SELECT table_name FROM information_schema.tables WHERE table_schema=DATABASE() AND table_name="AddressUsage_0";
+----------------+
| TABLE_NAME     |
+----------------+
| AddressUsage_0 |
+----------------+
1 row in set (0.00 sec)

The first option was used before. The third option is now implemented.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: master