etr2460 opened a new pull request #11069:
URL: https://github.com/apache/incubator-superset/pull/11069


   ### SUMMARY
   The `latest_partition` function results shouldn't change from second to 
second, yet it could be called many times simultaneously if a dashboard has 
many charts dependent on the same table. Conservatively memoize the result of 
this function for 60 seconds to prevent an extra roundtrip to the Presto db. 
Perhaps this could be extended to 5 minutes in the future, but wanted to start 
out conservatively
   
   ### TEST PLAN
   CI, add print statements to the function and see that the function isn't 
called when run for the 2nd or 3rd time in a minute
   
   ### 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
   
   to: @villebro @john-bodley @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]



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

Reply via email to