   "Get metrics based on questions
   TODO characterize by # executions and avg latency"
   []
-  (let [questions (db/select 'Card)]
+  (let [questions (db/select ['Card :id :query_type])]
     {:questions (apply add-summaries (map question-dims questions))}))
 
 (defn- dashboard-metrics
   "Get metrics based on dashboards
   TODO characterize by # of revisions, and created by an admin"
   []
-  (let [dashboards (db/select 'Dashboard)
-        dashcards (db/select 'DashboardCard)]
+  (let [dashboards (db/select ['Dashboard :id :creator_id])
+        dashcards (db/select ['DashboardCard :id :card_id :dashboard_id])]
     {:dashboards (count dashboards)
      :num_dashs_per_user (medium-histogram dashboards :creator_id)
      :num_cards_per_dash (medium-histogram dashcards :dashboard_id)

(defn- label-metrics
  "Get metrics based on labels"
  []
  (let [labels (db/select 'CardLabel)]
    {:labels (count labels)
     :num_labels_per_card (micro-histogram labels :card_id)
     :num_cards_per_label (medium-histogram labels :label_id)}))

;; Metadata Metrics
(defn- database-dims

  "Get metrics based on groups:
  TODO characterize by # w/ sql access, # of users, no self-serve data access"
  []
  (let [groups (db/select ['PermissionsGroup :id])]
    {:groups (count groups)}))

;; Artifact Metrics
