-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
[sql lab] option to disable cross schema search #4551
[sql lab] option to disable cross schema search #4551
Conversation
34bc5a1
to
ca38933
Compare
Codecov Report
@@ Coverage Diff @@
## master #4551 +/- ##
==========================================
- Coverage 71.17% 71.16% -0.02%
==========================================
Files 187 187
Lines 14809 14824 +15
Branches 1085 1086 +1
==========================================
+ Hits 10540 10549 +9
- Misses 4266 4272 +6
Partials 3 3
Continue to review full report at Codecov.
|
superset/views/core.py
Outdated
@@ -256,6 +258,10 @@ class DatabaseView(SupersetModelView, DeleteMixin, YamlExportMixin): # noqa | |||
'If Hive and hive.server2.enable.doAs is enabled, will run the queries as ' | |||
'service account, but impersonate the currently logged on user ' | |||
'via hive.server2.proxy.user property.'), | |||
'allow_multi_schema_metadata_fetch': _( | |||
'Allow SQL Lab to fetch a list of all table and all views across ' |
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.
nit: list of all tables
🚢 |
This is killing our metastore as people type it emits large all-table-dump as they hit the keystroke. It never returns as it times out and hammers the poor metastore. Also some improvements around the disabling the table select on the left panel and having the table name not be sticky.
ca38933
to
a57dd87
Compare
* [sql lab] disable cross schema search This is killing our metastore as people type it emits large all-table-dump as they hit the keystroke. It never returns as it times out and hammers the poor metastore. Also some improvements around the disabling the table select on the left panel and having the table name not be sticky. * typo (cherry picked from commit d522292)
* [sql lab] disable cross schema search This is killing our metastore as people type it emits large all-table-dump as they hit the keystroke. It never returns as it times out and hammers the poor metastore. Also some improvements around the disabling the table select on the left panel and having the table name not be sticky. * typo (cherry picked from commit d522292)
@mistercrunch it seems after the Alembic upgrade the
|
@john-bodley do you think I should write a db migration script to handle this? |
Because it’s a fairly recent migration how do you feel about augmenting the existing migration? Alternatively you could make the default in the code False (thus making it a breaking change) which evaluates the same as None (NULL). I think for us, having this disabled is preferred. |
@mistercrunch my other concern is if one sets |
Sorry @mistercrunch I'm mistaken, the |
If caching is off it's pretty brutal on the poor database as it hits the endpoint multiple times as users type. A confused user trying to get this to work could results in dozens of stuck calls that scan the metadata tables. On large databases it's not great. Given that, Also if you haven't run that migration, I suggest you schedule downtime for this one. It locked up on our side... |
@mistercrunch this migration didn't cause a lock on our end. I wonder whether there's also merit in caching when someone chooses a schema. I think there's plan for us to analyze the Presto logs to see the frequency of |
* [sql lab] disable cross schema search This is killing our metastore as people type it emits large all-table-dump as they hit the keystroke. It never returns as it times out and hammers the poor metastore. Also some improvements around the disabling the table select on the left panel and having the table name not be sticky. * typo
* [sql lab] disable cross schema search This is killing our metastore as people type it emits large all-table-dump as they hit the keystroke. It never returns as it times out and hammers the poor metastore. Also some improvements around the disabling the table select on the left panel and having the table name not be sticky. * typo
This is killing our metastore as people type it emits large
all-table-dump as they hit the keystroke. It never returns as it times
out and hammers the poor metastore.
Also some improvements around the disabling the table select on the left
panel and having the table name not be sticky.