You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- ON summaries.component_summary_digest = serialized.component_summary_digest AND summaries.component_hash_id = serialized.component_hash_id
48
48
-- ON CONFLICT DO NOTHING;
49
49
50
+
51
+
--- Sanity Checks
52
+
-- SELECT COUNT(*) FROM migrate_serialized_queue_sandboxed;
53
+
-- SELECT COUNT(*) FROM migrate_serialized_queue_unsandboxed;
54
+
55
+
-- SELECT c.id FROM causals c WHERE NOT EXISTS(SELECT FROM serialized_causals sc WHERE sc.causal_id = c.id);
56
+
-- SELECT n.namespace_hash_id FROM namespaces n WHERE NOT EXISTS(SELECT FROM serialized_namespaces sn WHERE sn.namespace_hash_id = n.namespace_hash_id);
57
+
-- SELECT p.id FROM patches p WHERE NOT EXISTS(SELECT FROM serialized_patches sp WHERE sp.patch_id = p.id);
58
+
-- SELECT st.user_id, t.component_hash_id
59
+
-- FROM sandboxed_terms st
60
+
-- JOIN terms t ON st.term_id = t.id
61
+
-- WHERE NOT EXISTS(SELECT FROM serialized_components sc WHERE sc.user_id = st.user_id AND sc.component_hash_id = t.component_hash_id);
62
+
-- SELECT st.user_id, t.component_hash_id
63
+
-- FROM sandboxed_types st
64
+
-- JOIN types t ON st.type_id = t.id
65
+
-- WHERE NOT EXISTS(SELECT FROM serialized_components sc WHERE sc.user_id = st.user_id AND sc.component_hash_id = t.component_hash_id);
0 commit comments