etr2460 opened a new pull request #9019: [SQL Lab] Cache function names query
URL: https://github.com/apache/incubator-superset/pull/9019
 
 
   ### CATEGORY
   
   Choose one
   
   - [ ] Bug Fix
   - [x] 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
   <!--- Check any relevant boxes with "x" -->
   <!--- HINT: Include "Fixes #nnn" if you are fixing an existing issue -->
   - [ ] 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 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to