Override metabase function in docker image

75 Views Asked by At

So metabase does select true from table limit 0 against every table/view in the database to see if they are readable. Problem is when a redshift view has references enough spectrum tables that can take multiple minutes per view, causing high cpu usage and eventually a timeout in the sync process. I want to override this function so it just returns true for everything, doesn't try to query the database. However, I want to keep using the default metabase dockerhub distributable so I don't need to fork or do anything else crazy. Can I somehow embed a clojure with-redefs into a external plugin so that metabase will load the plugin and it'll override that function?

0

There are 0 best solutions below