Skip to content
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

Option to limit tables/fields that are synced to specific schemas #2591

Closed
parkotron opened this issue May 12, 2016 · 6 comments
Closed

Option to limit tables/fields that are synced to specific schemas #2591

parkotron opened this issue May 12, 2016 · 6 comments

Comments

@parkotron
Copy link

parkotron commented May 12, 2016

We're working on a relatively small system in redshift that uses a shared redshift cluster. There are lots of schemas most of which are not ours (and we don't have permission to read) but our local postgres is becoming unnecessarily heavy due to the automatic caching of fields in all schemas into metabase_field (it would likely be a few hundred rows, but is getting towards a hundred thousand).

A possible enhancement would be to have the option to limit field caching to schemas that have been viewed rather than crawling all schemas up front.

⬇️ Please click the 👍 reaction instead of leaving a +1 or update? comment

@rafaelveloso
Copy link

rafaelveloso commented May 12, 2016

Being able to configure which schemas we want to be scanned by metabase would be very helpful. In PostgreSQL we can define permissions per schema but that doesn't prevent any role from seeing all schemas tables structure. If we have multiple schemas in one database and create a specific role (to be used by metabase) with read permissions in one schema, it won't be able to pull data from any schema other than the one it has permissions to, but metabase will still sync metadata for all of them.

@MrMauricioLeite
Copy link

Same problem here. Our redshift schemas show up but I can only run querys on my schema.

Other thing that sucks is that all those schemas have lots of tables and we have to hide one by one, since there is no "Hide All" option anywere.

@robinfrick
Copy link

+1 this would be taking #2086 a step further. For me hiding would already be a great step forward. Completely disabling the syncing of the schema is even better 👍

@camsaul camsaul changed the title Option to limit schema caching in metabase_field to specific schemas Option to limit tables/fields that are synced to specific schemas Jul 26, 2016
@justin-yan
Copy link

justin-yan commented Nov 28, 2016

Would love to see this as well. We create a new schema when we load data into our warehouse so that we can atomically publish the new day's data all at once by doing an ALTER SCHEMA RENAME TO. We then keep the old schemas around for a few days with a date suffixed so that we have an audit trail.

Hiding would actually not solve our problem, since each audit schema has a unique suffix, but being able to limit imports to specific schema names would be a big usability win for us!

@camsaul camsaul mentioned this issue Aug 3, 2017
15 tasks
@toybaelescione
Copy link

toybaelescione commented May 24, 2018

An option to pick which schema to be scanned by metabase will be very helpful for us as well. We have Oracle for our Data Warehouse and we have hundreds of schema and hundred thousands of tables, and not all tables are used for analysis.

[Update on Jun 6, 2018]
We have Metabase runs on PROD, and we think it is wonderful, but we need to kill the service then turn it on, every single day. Due to very high buffer gets on our Oracle DWH that came from queries from Metabase sync job.

The database killer query was running on top of view that contains complex queries. Unfortunately, deleting the view is not one of our option now,

@camsaul
Copy link
Member

camsaul commented Oct 7, 2020

Fixed by #10139

@camsaul camsaul closed this as completed Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants