-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf(sqllab): reduce bootstrap data delay by queries #27488
perf(sqllab): reduce bootstrap data delay by queries #27488
Conversation
cb67955
to
17be1ac
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #27488 +/- ##
==========================================
+ Coverage 69.73% 69.74% +0.01%
==========================================
Files 1909 1910 +1
Lines 74692 74719 +27
Branches 8325 8335 +10
==========================================
+ Hits 52086 52115 +29
Misses 20556 20556
+ Partials 2050 2048 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
/testenv up FEATURE_SQLLAB_BACKEND_PERSISTENCE=true |
@justinpark Ephemeral environment spinning up at http://35.87.7.33:8080. Credentials are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ephemeral environment shutdown and build artifacts deleted. |
(cherry picked from commit f4bdcb5)
SUMMARY
The SQL Lab bootstrap data, which includes all queries associated with every open editor tab, is quite large in size.
This has been causing a noticeable delay in the initial loading time for SQL Lab. It's important to note that these queries are solely used for maintaining a query history, so this update is designed to bypass these queries in the bootstrap data.
Instead, we will use the Query API to fetch the same results when the Query History component loads, making the process more efficient.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
After:
paginated-editor-queries.mov
TESTING INSTRUCTIONS
Go to SQL Lab and run some queries in a tab and then switch the query history tab
ADDITIONAL INFORMATION