Skip to content
Snippets Groups Projects
Commit 99446597 authored by Arthur Ulfeldt's avatar Arthur Ulfeldt
Browse files

Don't do detailed analytics on hidden tables

When symcing a database filter out any tables that have been marked
"hidden" so we don't wast time looking at them.
parent df15b266
No related branches found
No related tags found
No related merge requests found
......@@ -247,9 +247,10 @@
(let [start-time-ns (System/nanoTime)
tables (db/select table/Table, :db_id database-id, :active true)
tables-count (count tables)
visible-tables (filter #(not= :hidden (:visibility_type %)) tables)
tables-count (count visible-tables)
finished-tables-count (atom 0)]
(doseq [{table-name :name, :as table} tables]
(doseq [{table-name :name, :as table} visible-tables]
(try
(analyze-table-data-shape! driver table)
(catch Throwable t
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment