Skip to content

[SQL Lab] Cache function names query#9019

Merged
etr2460 merged 1 commit into
apache:masterfrom
etr2460:erik-ritter--cache-function-names
Jan 25, 2020
Merged

[SQL Lab] Cache function names query#9019
etr2460 merged 1 commit into
apache:masterfrom
etr2460:erik-ritter--cache-function-names

Conversation

@etr2460
Copy link
Copy Markdown
Member

@etr2460 etr2460 commented Jan 24, 2020

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

As I tested this further, I realized that this was making a query to every presto and hive db whenever you open SQL Lab or open a new SQL Lab tab. This PR caches the result of the show function query as we don't expect it to change often.

TEST PLAN

Add a print statement to the function, see it the first time I open SQL Lab, but then when opening subsequent SQL Lab tabs, don't see the print statement again

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

REVIEWERS

to: @john-bodley @villebro @betodealmeida

@etr2460 etr2460 merged commit 922eec2 into apache:master Jan 25, 2020
john-bodley pushed a commit to airbnb/superset-fork that referenced this pull request Jan 25, 2020
@dpgaspar dpgaspar mentioned this pull request Jan 25, 2020
12 tasks
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.36.0 First shipped in 0.36.0 labels Feb 28, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 0.36.0 First shipped in 0.36.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants