{"id":230053,"date":"2021-07-19T16:29:14","date_gmt":"2021-07-19T08:29:14","guid":{"rendered":"https:\/\/magicalbits.net\/?p=230053"},"modified":"2021-07-19T16:29:14","modified_gmt":"2021-07-19T08:29:14","slug":"using-postgresql-as-a-data-warehouse","status":"publish","type":"post","link":"https:\/\/magicalbits.net\/?p=230053","title":{"rendered":"Using PostgreSQL as a Data Warehouse"},"content":{"rendered":"<p><img decoding=\"async\" src=\"http:\/\/ifttt.com\/images\/no_image_card.png\"><\/p>\n<p>&#8211; Instead of updating tables build their replacements under a different name then rename them. This makes updating heavy-to-compute table instant. Works even for schemas: rebuild a schema as schemaname_next rename the current to schemaname_old then rename schemaname_next to schemaname.<\/p>\n<p><a href=\"https:\/\/news.ycombinator.com\/item?id=27109960\">Read more<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8211; Instead of updating tables build their replacements under a different name then rename them. This makes updating heavy-to-compute table instant. Works even for schemas: rebuild a schema as schemaname_next rename the current to schemaname_old then rename schemaname_next to schemaname. Read more<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[54],"class_list":["post-230053","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-pocket"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/230053","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=230053"}],"version-history":[{"count":1,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/230053\/revisions"}],"predecessor-version":[{"id":230054,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/230053\/revisions\/230054"}],"wp:attachment":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=230053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=230053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=230053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}