{"id":475698,"date":"2026-04-13T09:20:24","date_gmt":"2026-04-13T09:20:24","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=475698"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=475698","title":{"rendered":"DuckDB \u043a\u0430\u043a \u043c\u0438\u043a\u0440\u043e-\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435: \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c \u00abETL + Postgres\u00bb \u043e\u0434\u043d\u0438\u043c \u0444\u0430\u0439\u043b\u043e\u043c, \u043e\u0434\u043d\u0438\u043c \u0434\u0432\u0438\u0436\u043a\u043e\u043c"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0427\u0430\u0441\u0442\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f: \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u043a\u0443\u0434\u0430-\u0442\u043e, \u0434\u0436\u043e\u0431 \u0438\u0445 \u0447\u0438\u0441\u0442\u0438\u0442, Postgres \u0445\u0440\u0430\u043d\u0438\u0442 \u0438\u0445 \u00ab\u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438\u00bb  \u0438 \u0432\u0434\u0440\u0443\u0433 \u0432\u044b \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442\u0435 ETL-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0438 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u044b\u043b\u0430 \u0440\u0430\u0434\u0430 OLAP-\u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0435. \u041f\u043e \u043c\u043e\u0435\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e, \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 \u044d\u0442\u043e \u043b\u0438\u0448\u043d\u0438\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0438\u043b\u0430 DuckDB \u043d\u0435 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d \u0431\u044b\u0441\u0442\u0440\u044b\u0439 (\u0445\u043e\u0442\u044f \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u0434\u0430). \u041e\u043d\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u0438\u043a\u0440\u043e-\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435: \u043e\u0434\u0438\u043d <code>.duckdb<\/code>-\u0444\u0430\u0439\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0435\u0434\u0451\u0442 \u0441\u0435\u0431\u044f \u043a\u0430\u043a \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0432\u0438\u0436\u043e\u043a, \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0440\u044f\u0434\u043e\u043c \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u044b, \u0430\u0443\u0434\u0438\u0442\u044b \u0438 \u0435\u0436\u0435\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0442\u0447\u0451\u0442\u044b \u0431\u0435\u0437 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0432\u0435\u0440\u0445\u0435\u0434\u0430.<\/p>\n<h3>\u041a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f \u043c\u0438\u043a\u0440\u043e-\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430<\/h3>\n<p>\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 warehouse-\u0441\u0442\u0435\u043a \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u044b \u0440\u0435\u0448\u0430\u0435\u0442\u0435 \u0437\u0430\u0434\u0430\u0447\u0438:<\/p>\n<ul>\n<li>\n<p>\u043c\u043d\u043e\u0433\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439,<\/p>\n<\/li>\n<li>\n<p>\u043e\u0431\u0449\u0435\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u043c\u0438,<\/p>\n<\/li>\n<li>\n<p>\u0434\u043e\u043b\u0433\u043e\u0436\u0438\u0432\u0443\u0449\u0438\u0435 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b,<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043c\u0435\u043d\u043e\u0432, \u043f\u0438\u0442\u0430\u044e\u0449\u0438\u0445 \u043e\u0434\u043d\u0443 \u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c.<\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u0438\u043a\u0440\u043e-\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0435\u0447\u0442\u043e \u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u0441\u0442\u043d\u043e\u0435:<\/p>\n<ul>\n<li>\n<p>\u043e\u0434\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u043b\u0430\u0434\u0435\u0435\u0442 \u0438\u043c,<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u00ab\u0437\u043e\u043b\u043e\u0442\u044b\u0445\u00bb \u0442\u0430\u0431\u043b\u0438\u0446 \u0438 \u0432\u044c\u044e\u0445 \u0438\u043c\u0435\u044e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435,<\/p>\n<\/li>\n<li>\n<p>\u0441\u0432\u0435\u0436\u0435\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0430\u0436\u043d\u0435\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u0430,<\/p>\n<\/li>\n<li>\n<p>\u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u2014 \u043d\u0430\u0434\u0451\u0436\u043d\u044b\u0435 \u043e\u0442\u0432\u0435\u0442\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>DuckDB \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u043c\u0438\u0440, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044d\u0442\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u043c\u0435\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b (Parquet\/CSV\/JSON), \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0438 \u0434\u0430\u0436\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u2014 \u0431\u0435\u0437 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0441\u0442\u0435\u043a\u0430 \u0432 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u043d\u0430\u0443\u0447\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442.<\/p>\n<hr\/>\n<h3>\u041f\u043e\u0447\u0435\u043c\u0443 \u00abETL + Postgres\u00bb \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f (\u0438 \u0442\u0438\u0445\u043e \u0441\u0436\u0438\u0433\u0430\u0435\u0442 \u043d\u0435\u0434\u0435\u043b\u0438)<\/h3>\n<p>Postgres \u2014 \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442. \u041d\u043e \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u043c\u0435\u0440\u0442\u044c \u043e\u0442 \u0442\u044b\u0441\u044f\u0447\u0438 \u043c\u0435\u043b\u043a\u0438\u0445 \u043f\u043e\u0440\u0435\u0437\u043e\u0432.<\/p>\n<p><strong>OLAP-\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u00ab\u043c\u0435\u043b\u043e\u0447\u0438\u00bb<\/strong><\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0448\u044c \u0438\u043d\u0434\u0435\u043a\u0441\u044b, \u043f\u043e\u0442\u043e\u043c \u0435\u0449\u0451, \u043f\u043e\u0442\u043e\u043c vacuum \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0440\u0438\u0442\u0443\u0430\u043b\u043e\u043c. \u0417\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0435\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u0433\u043e\u0440\u0442 \u043a\u043e\u043d\u043a\u0443\u0440\u0438\u0440\u0443\u044e\u0442 \u0441 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439. \u0412\u0441\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u0440\u0435\u0430\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u00ab\u0434\u0430\u0448\u0431\u043e\u0440\u0434 \u0442\u043e\u0440\u043c\u043e\u0437\u0438\u0442\u00bb. ETL-\u0434\u0436\u043e\u0431\u044b \u0441\u0446\u0435\u043f\u043b\u044f\u044e\u0442\u0441\u044f \u0441 \u043f\u0440\u0430\u0432\u043a\u0430\u043c\u0438 \u0441\u0445\u0435\u043c\u044b \u0438 \u0440\u0430\u0437\u043e\u0432\u044b\u043c\u0438 \u0444\u0438\u043a\u0441\u0430\u043c\u0438.<\/p>\n<p>\u041d\u0438\u0447\u0435\u0433\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0432\u0437\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0435\u0440\u0432\u044b\u0439 \u0434\u0435\u043d\u044c. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0432 \u0448\u0442\u0430\u0442\u043d\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 DuckDB \u043f\u0440\u044f\u043c\u043e\u043b\u0438\u043d\u0435\u0439\u043d\u043e: \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u044c \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043c\u0438\u043d\u0438-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0433\u0434\u0430 \u0442\u0435\u0431\u0435 \u0431\u044b\u043b \u043d\u0443\u0436\u0435\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u0447\u0438\u0441\u0442\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u043b\u043e\u0439.<\/p>\n<hr\/>\n<h3>\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430: \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b, \u043e\u0434\u0438\u043d \u0434\u0432\u0438\u0436\u043e\u043a, \u043c\u0435\u043d\u044c\u0448\u0435 \u0442\u043e\u0447\u0435\u043a \u043e\u0442\u043a\u0430\u0437\u0430<\/h3>\n<p>\u0412\u043e\u0442 \u0444\u043e\u0440\u043c\u0430 \u043c\u0438\u043a\u0440\u043e-\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0445:<\/p>\n<pre><code>[\u0411\u0414 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \/ \u0441\u043e\u0431\u044b\u0442\u0438\u044f]    [\u0424\u0430\u0439\u043b\u044b \u0432 S3\/GCS]       [CSV \u0432\u0440\u0443\u0447\u043d\u0443\u044e]          |                         |                      |          | (\u0440\u0430\u0437\u043e\u0432\u0430\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0430)      | (\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e)    | (\u0440\u0430\u0437\u043e\u0432\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430)          v                         v                      v   (\u0441\u043d\u0430\u043f\u0448\u043e\u0442 \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e)   \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b\/\u0432\u044c\u044e\u0445\u0438    staging-\u0442\u0430\u0431\u043b\u0438\u0446\u044b               \\             \/             \/                \\           \/             \/                 v         v             v                +---------------------------+                |        DuckDB-\u0444\u0430\u0439\u043b        |                |  bronze -&gt; silver -&gt; gold |                +---------------------------+                           |                           | (\u044d\u043a\u0441\u043f\u043e\u0440\u0442\u044b, BI, API)                           v                   \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u044b \/ \u043e\u0442\u0447\u0451\u0442\u044b<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>DuckDB \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u00ab\u0438\u0441\u0442\u0438\u043d\u043d\u044b\u043c\u00bb \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0441\u043b\u043e\u0435\u043c, \u043d\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043b\u0451\u0433\u043a\u043e\u0439. \u00ab\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u00bb \u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e:<\/p>\n<ul>\n<li>\n<p>\u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e,<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u044c\u044e\u0445,<\/p>\n<\/li>\n<li>\n<p>\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u044b\u0439 \u044d\u043a\u0441\u043f\u043e\u0440\u0442.<\/p>\n<\/li>\n<\/ul>\n<p>\u0418 \u0434\u0430, \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c SLA.<\/p>\n<hr\/>\n<h3>\u041d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u0447\u0438\u0441\u0442\u044b\u0439 SLA, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c<\/h3>\n<p><strong>\u0428\u0430\u0431\u043b\u043e\u043d \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e SLA<\/strong><\/p>\n<ul>\n<li>\n<p><strong>\u0421\u0432\u0435\u0436\u0435\u0441\u0442\u044c:<\/strong> \u00ab\u0414\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0435 15 \u043c\u0438\u043d\u0443\u0442 (\u0438\u043b\u0438 \u0440\u0430\u0437 \u0432 \u0447\u0430\u0441), \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043c\u0435\u0442\u043a\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043b\u043e\u0433\u0438\u0440\u0443\u0435\u0442\u0441\u044f.\u00bb<\/p>\n<\/li>\n<li>\n<p><strong>\u041a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u044c:<\/strong> \u00ab\u0417\u043e\u043b\u043e\u0442\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0432 \u0432\u0435\u0440\u0441\u0438\u043e\u043d\u0438\u0440\u0443\u0435\u043c\u044b\u0445 SQL-\u0432\u044c\u044e\u0445\u0430\u0445; \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0440\u0435\u0432\u044c\u044e.\u00bb<\/p>\n<\/li>\n<li>\n<p><strong>\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c:<\/strong> \u00ab\u0414\u0430\u0448\u0431\u043e\u0440\u0434\u044b p95 &lt; 2\u0441 \u0434\u043b\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432 \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 90 \u0434\u043d\u0435\u0439.\u00bb<\/p>\n<\/li>\n<li>\n<p><strong>\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435:<\/strong> \u00ab\u041f\u0440\u0438 \u0441\u0431\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u0437 Parquet-\u0441\u043d\u0430\u043f\u0448\u043e\u0442\u043e\u0432 \u043c\u0435\u043d\u0435\u0435 \u0447\u0435\u043c \u0437\u0430 30 \u043c\u0438\u043d\u0443\u0442.\u00bb<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c\/ops:<\/strong> \u00ab\u041d\u0435\u0442 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430. \u041e\u0434\u0438\u043d \u0434\u0436\u043e\u0431 \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043f\u043b\u044e\u0441 \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b.\u00bb<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u043e\u0442 \u0433\u0434\u0435 \u0432\u0430\u0436\u0435\u043d \u00ab\u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b\u00bb: \u0432\u0430\u0448\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u2014 \u043d\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u0435 \u0432 2 \u043d\u043e\u0447\u0438. \u042d\u0442\u043e \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0431\u044d\u043a\u0430\u043f\u0438\u0442\u044c, \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c.<\/p>\n<hr\/>\n<h3>\u0420\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d: \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u0430\u044f \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u0431\u0435\u0437 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430\u043b\u043e\u0433\u0430<\/h3>\n<p>\u0422\u0438\u043f\u0438\u0447\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u2014 B2B SaaS-\u043a\u043e\u043c\u0430\u043d\u0434\u0430:<\/p>\n<ul>\n<li>\n<p>\u043d\u0443\u0436\u043d\u044b \u0435\u0436\u0435\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, adoption \u0444\u0438\u0447, \u043a\u043e\u0433\u043e\u0440\u0442\u044b \u0443\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f,<\/p>\n<\/li>\n<li>\n<p>\u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0411\u0414, \u043b\u043e\u0433\u0438 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435,<\/p>\n<\/li>\n<li>\n<p>\u00ab\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u00bb \u0441\u0435\u0439\u0447\u0430\u0441 \u2014 ETL + Postgres + \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u044b,<\/p>\n<\/li>\n<li>\n<p>\u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f, \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0435, \u0441\u0442\u0435\u043a \u0442\u044f\u0436\u0451\u043b\u044b\u0439.<\/p>\n<\/li>\n<\/ul>\n<p>\u0421 DuckDB \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<ol>\n<li>\n<p>\u0415\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u044b\u0439 \u0441\u043d\u0430\u043f\u0448\u043e\u0442 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u0432 Parquet.<\/p>\n<\/li>\n<li>\n<p>\u0421\u043e\u0431\u044b\u0442\u0438\u044f \u043a\u0430\u043a Parquet, \u0440\u0430\u0437\u0431\u0438\u0442\u044b\u0439 \u043f\u043e \u0434\u0430\u0442\u0435.<\/p>\n<\/li>\n<li>\n<p>\u0417\u043e\u043b\u043e\u0442\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043a\u0430\u043a \u0432\u044c\u044e\u0445\u0438 \u0432 DuckDB.<\/p>\n<\/li>\n<li>\n<p>\u0412\u044b\u0433\u0440\u0443\u0437\u043a\u0430 curated-\u0442\u0430\u0431\u043b\u0438\u0446 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 Parquet \u0434\u043b\u044f BI-\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432.<\/p>\n<\/li>\n<\/ol>\n<p>DuckDB \u0447\u0438\u0442\u0430\u0435\u0442 Parquet \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u043a\u0430\u043a \u043e\u0434\u043d\u0443 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043b\u0435\u0436\u0430\u0442 \u0432 S3-\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435, \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 <code>httpfs<\/code> \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0444\u0430\u0439\u043b\u0430\u043c, \u0432\u043a\u043b\u044e\u0447\u0430\u044f S3 API.<\/p>\n<hr\/>\n<h3>\u0420\u0430\u0431\u043e\u0447\u0438\u0435 \u0441\u043d\u0438\u043f\u043f\u0435\u0442\u044b: \u0434\u0436\u043e\u0431 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u00ab\u0437\u043e\u043b\u043e\u0442\u043e\u0439\u00bb \u0441\u043b\u043e\u0439<\/h3>\n<h4>1. \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f (Python)<\/h4>\n<pre><code class=\"python\">import duckdbfrom datetime import datetimeDB = \"micro_warehouse.duckdb\"con = duckdb.connect(DB)# \u041e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 (\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432)con.execute(\"INSTALL httpfs;\")con.execute(\"LOAD httpfs;\")# \u0427\u0438\u0442\u0430\u0435\u043c \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 Parquet \u043a\u0430\u043a \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443con.execute(\"\"\"CREATE OR REPLACE VIEW bronze_events ASSELECT *FROM read_parquet('data\/events\/date=*\/events-*.parquet');\"\"\")# Silver: \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f + \u043e\u0447\u0438\u0441\u0442\u043a\u0430con.execute(\"\"\"CREATE OR REPLACE VIEW silver_events ASSELECT  CAST(event_time AS TIMESTAMP) AS event_time,  user_id,  team_id,  event_name,  NULLIF(properties, '') AS propertiesFROM bronze_eventsWHERE user_id IS NOT NULL;\"\"\")# Gold: \u043c\u0435\u0442\u0440\u0438\u043a\u0438 (\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441)con.execute(\"\"\"CREATE OR REPLACE VIEW gold_weekly_active_teams ASSELECT  date_trunc('week', event_time) AS week,  COUNT(DISTINCT team_id) AS weekly_active_teamsFROM silver_eventsGROUP BY 1ORDER BY 1;\"\"\")# \u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c curated-\u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u043b\u044f BIcon.execute(\"\"\"COPY (SELECT * FROM gold_weekly_active_teams)TO 'exports\/gold_weekly_active_teams.parquet' (FORMAT PARQUET);\"\"\")con.execute(\"CREATE OR REPLACE TABLE ops_refresh_log AS SELECT 1 AS dummy;\")con.execute(\"\"\"INSERT INTO ops_refresh_logSELECT 1\"\"\")print(\"\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 OK:\", datetime.utcnow().isoformat(), \"DB:\", DB)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u042d\u0442\u043e \u043d\u0435 \u00ab\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0434\u0430\u043d\u043d\u044b\u0445\u00bb. \u042d\u0442\u043e \u043d\u0430\u0434\u0451\u0436\u043d\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430.<\/p>\n<h4>2. \u0418\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0438 \u043d\u0443\u0436\u043d\u044b<\/h4>\n<p>\u0415\u0441\u043b\u0438 \u00ab\u0437\u043e\u043b\u043e\u0442\u044b\u0435\u00bb \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e, DuckDB \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 <code>MERGE<\/code> \u2014 \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u043b\u044f upsert \u0432 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043f\u043e \u043a\u043b\u044e\u0447\u0443.<\/p>\n<p>\u0421\u0445\u0435\u043c\u0430:<\/p>\n<ul>\n<li>\n<p>\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0435 \u0441\u044b\u0440\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f,<\/p>\n<\/li>\n<li>\n<p>\u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0441\u043a\u043e\u043b\u044c\u0437\u044f\u0449\u0435\u0435 \u043e\u043a\u043d\u043e,<\/p>\n<\/li>\n<li>\n<p><code>MERGE<\/code> \u0432 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0437\u043e\u043b\u043e\u0442\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043f\u043e \u043a\u043b\u044e\u0447\u0443 <code>(week, team_id)<\/code>.<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<h3>\u041f\u0440\u0438\u0451\u043c \u0434\u043b\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438: \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c Postgres, \u043d\u043e \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0437\u043b\u043e\u0443\u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0442\u044c \u0438\u043c<\/h3>\n<p>\u0418\u043d\u043e\u0433\u0434\u0430 \u0441\u0430\u043c\u0430\u044f \u0431\u044b\u0441\u0442\u0440\u0430\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u2014 \u043d\u0435 \u0436\u0451\u0441\u0442\u043a\u043e\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435, \u0430 \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u044b\u0439 \u0441\u0434\u0432\u0438\u0433:<\/p>\n<ul>\n<li>\n<p>OLTP \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0432 Postgres,<\/p>\n<\/li>\n<li>\n<p>OLAP-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u044e\u0442 \u0432 DuckDB.<\/p>\n<\/li>\n<\/ul>\n<p>\u0423 DuckDB \u0435\u0441\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f Postgres, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0443\u043c\u0435\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 Postgres-\u0438\u043d\u0441\u0442\u0430\u043d\u0441 \u2014 \u043c\u043e\u0436\u043d\u043e \u0444\u0435\u0434\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u0437\u0430 \u043e\u0434\u0438\u043d \u0443\u0438\u043a-\u044d\u043d\u0434.<\/p>\n<p>\u0414\u043b\u044f \u043a\u043e\u043c\u0430\u043d\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043d\u0443\u0436\u043d\u044b \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u0441\u043f\u0440\u0438\u043d\u0442\u0435, \u044d\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e.<\/p>\n<hr\/>\n<h3>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f: \u043a\u043e\u0433\u0434\u0430 DuckDB \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043a\u0430\u043a \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435<\/h3>\n<p>\u041c\u0438\u043a\u0440\u043e-\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u2014 \u043d\u0435 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442. \u0412\u0430\u0436\u043d\u043e \u0447\u0435\u0441\u0442\u043d\u043e \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u0433\u0440\u0430\u043d\u0438\u0446\u044b.<\/p>\n<p><strong>DuckDB \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u043a\u043e\u0433\u0434\u0430:<\/strong><\/p>\n<ul>\n<li>\n<p>\u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0435\u043c\u043d\u043e\u0433\u043e (\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e, BI-\u044d\u043a\u0441\u043f\u043e\u0440\u0442\u044b),<\/p>\n<\/li>\n<li>\n<p>\u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e append-only \u0438\u043b\u0438 \u0441\u043d\u0430\u043f\u0448\u043e\u0442-based,<\/p>\n<\/li>\n<li>\n<p>\u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 Parquet \u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u043c\u0438 \u0432\u043e\u0440\u043a\u0444\u043b\u043e\u0443,<\/p>\n<\/li>\n<li>\n<p>\u043d\u0443\u0436\u043d\u044b \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0438 \u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c.<\/p>\n<\/li>\n<\/ul>\n<p><strong>DuckDB \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u043a\u043e\u0433\u0434\u0430:<\/strong><\/p>\n<ul>\n<li>\n<p>\u043d\u0443\u0436\u043d\u0430 \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439,<\/p>\n<\/li>\n<li>\n<p>\u043d\u0443\u0436\u043d\u044b \u0442\u044f\u0436\u0451\u043b\u044b\u0435 OLTP-\u0437\u0430\u043f\u0438\u0441\u0438 \u0438 \u0441\u0442\u0440\u043e\u0433\u0430\u044f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0430 \u0434\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439,<\/p>\n<\/li>\n<li>\n<p>\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0441 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430\u043c\u0438 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0441\u0442\u0440\u043e\u043a \u0434\u043b\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0430\u0440\u0435\u043d\u0434\u0430\u0442\u043e\u0440\u043e\u0432,<\/p>\n<\/li>\n<li>\n<p>\u00ab\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u00bb \u2014 \u044d\u0442\u043e \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0441 \u0434\u0435\u0441\u044f\u0442\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u0434\u044e\u0441\u0435\u0440\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u043e\u0441\u0442\u044c \u0441\u0442\u0435\u043a\u0430. \u0415\u0441\u043b\u0438 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u2014 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435.<\/p>\n<hr\/>\n<h3>\u0418\u0442\u043e\u0433\u043e: \u043c\u0435\u043d\u044c\u0448\u0438\u0439 \u0441\u0442\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043e\u0449\u0443\u0449\u0430\u0435\u0442\u0441\u044f \u00ab\u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c\u00bb<\/h3>\n<p>\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u0432 \u043f\u043e\u0434\u0445\u043e\u0434\u0435 \u043c\u0438\u043a\u0440\u043e-\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u2014 \u043f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435: \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u043d\u043e\u0432\u0430 \u043e\u0449\u0443\u0449\u0430\u0435\u0442\u0441\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0439.<\/p>\n<p>\u041e\u0434\u0438\u043d \u0444\u0430\u0439\u043b. \u041e\u0434\u0438\u043d \u0434\u0432\u0438\u0436\u043e\u043a. \u0414\u0436\u043e\u0431 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f. \u041c\u0435\u0442\u0440\u0438\u043a\u0438, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u0432 SQL, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0440\u0435\u0432\u044c\u044e\u0438\u0442\u044c. \u042d\u043a\u0441\u043f\u043e\u0440\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438. SLA, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0435\u0437 \u0440\u0430\u0441\u043f\u043b\u044b\u0432\u0447\u0430\u0442\u044b\u0445 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0439.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0441\u0435\u0439\u0447\u0430\u0441 \u0432\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0435 \u00abETL + Postgres\u00bb \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044d\u0442\u043e \u0434\u0435\u0444\u043e\u043b\u0442 \u2014 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043e\u0434\u0438\u043d DuckDB-\u0444\u0430\u0439\u043b \u043e\u0442\u0434\u0435\u043b\u044f\u0435\u0442 \u0432\u0430\u0441 \u043e\u0442 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0436\u0438\u0437\u043d\u0438.<\/p>\n<p><em>\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u043d\u0430\u0448\u00a0<\/em><a href=\"https:\/\/t.me\/+2rkD-gQVFwQzZDNi\" rel=\"noopener noreferrer nofollow\"><em>Telegram-\u043a\u0430\u043d\u0430\u043b<\/em><\/a><strong><em>. <\/em><\/strong><em>\u041c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0440\u0435\u043d\u0430\u0436\u0451\u0440\u044b \u0438 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u044b \u043f\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449 \u043d\u0430 dbt, \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u043d\u0430 Dagster \u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044e Lakehouse \u043d\u0430 Spark + Iceberg.<\/em><\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1022746\/\">https:\/\/habr.com\/ru\/articles\/1022746\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0427\u0430\u0441\u0442\u0430\u044f \u0438\u0441\u0442\u043e\u0440\u0438\u044f: \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u043a\u0443\u0434\u0430-\u0442\u043e, \u0434\u0436\u043e\u0431 \u0438\u0445 \u0447\u0438\u0441\u0442\u0438\u0442, Postgres \u0445\u0440\u0430\u043d\u0438\u0442 \u0438\u0445 \u00ab\u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438\u00bb  \u0438 \u0432\u0434\u0440\u0443\u0433 \u0432\u044b \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442\u0435 ETL-\u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d \u0438 \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u044b\u043b\u0430 \u0440\u0430\u0434\u0430 OLAP-\u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0435. \u041f\u043e \u043c\u043e\u0435\u043c\u0443 \u043c\u043d\u0435\u043d\u0438\u044e, \u0434\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u043a\u043e\u043c\u0430\u043d\u0434 \u044d\u0442\u043e \u043b\u0438\u0448\u043d\u0438\u0435 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438.\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0438\u043b\u0430 DuckDB \u043d\u0435 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d \u0431\u044b\u0441\u0442\u0440\u044b\u0439 (\u0445\u043e\u0442\u044f \u044d\u0442\u043e \u043f\u0440\u0430\u0432\u0434\u0430). \u041e\u043d\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d \u043c\u043e\u0436\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u0430\u043a \u043c\u0438\u043a\u0440\u043e-\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435: \u043e\u0434\u0438\u043d .duckdb-\u0444\u0430\u0439\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0435\u0434\u0451\u0442 \u0441\u0435\u0431\u044f \u043a\u0430\u043a \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0432\u0438\u0436\u043e\u043a, \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0440\u044f\u0434\u043e\u043c \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u044b, \u0430\u0443\u0434\u0438\u0442\u044b \u0438 \u0435\u0436\u0435\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0442\u0447\u0451\u0442\u044b \u0431\u0435\u0437 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043e\u0432\u0435\u0440\u0445\u0435\u0434\u0430.\u041a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f \u043c\u0438\u043a\u0440\u043e-\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430\u041a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u0439 warehouse-\u0441\u0442\u0435\u043a \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u044b \u0440\u0435\u0448\u0430\u0435\u0442\u0435 \u0437\u0430\u0434\u0430\u0447\u0438:\u043c\u043d\u043e\u0433\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439,\u043e\u0431\u0449\u0435\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u043c\u0438,\u0434\u043e\u043b\u0433\u043e\u0436\u0438\u0432\u0443\u0449\u0438\u0435 \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u044b,\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u043c\u0435\u043d\u043e\u0432, \u043f\u0438\u0442\u0430\u044e\u0449\u0438\u0445 \u043e\u0434\u043d\u0443 \u043a\u0430\u043d\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c.\u041c\u0438\u043a\u0440\u043e-\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0435\u0447\u0442\u043e \u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u0438 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u0441\u0442\u043d\u043e\u0435:\u043e\u0434\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0432\u043b\u0430\u0434\u0435\u0435\u0442 \u0438\u043c,\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u00ab\u0437\u043e\u043b\u043e\u0442\u044b\u0445\u00bb \u0442\u0430\u0431\u043b\u0438\u0446 \u0438 \u0432\u044c\u044e\u0445 \u0438\u043c\u0435\u044e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435,\u0441\u0432\u0435\u0436\u0435\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u0430\u0436\u043d\u0435\u0435 \u0441\u043e\u0432\u0435\u0440\u0448\u0435\u043d\u0441\u0442\u0432\u0430,\u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u2014 \u043d\u0430\u0434\u0451\u0436\u043d\u044b\u0435 \u043e\u0442\u0432\u0435\u0442\u044b.DuckDB \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u043e \u0432\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u043c\u0438\u0440, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044d\u0442\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0443\u043c\u0435\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b (Parquet\/CSV\/JSON), \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u0438 \u0434\u0430\u0436\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u2014 \u0431\u0435\u0437 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u0441\u0442\u0435\u043a\u0430 \u0432 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u043d\u0430\u0443\u0447\u043d\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442.\u041f\u043e\u0447\u0435\u043c\u0443 \u00abETL + Postgres\u00bb \u043b\u043e\u043c\u0430\u0435\u0442\u0441\u044f (\u0438 \u0442\u0438\u0445\u043e \u0441\u0436\u0438\u0433\u0430\u0435\u0442 \u043d\u0435\u0434\u0435\u043b\u0438)Postgres \u2014 \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442. \u041d\u043e \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u0430\u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0434\u0432\u0438\u0436\u043a\u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0441\u043c\u0435\u0440\u0442\u044c \u043e\u0442 \u0442\u044b\u0441\u044f\u0447\u0438 \u043c\u0435\u043b\u043a\u0438\u0445 \u043f\u043e\u0440\u0435\u0437\u043e\u0432.OLAP-\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a \u00ab\u043c\u0435\u043b\u043e\u0447\u0438\u00bb\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0448\u044c \u0438\u043d\u0434\u0435\u043a\u0441\u044b, \u043f\u043e\u0442\u043e\u043c \u0435\u0449\u0451, \u043f\u043e\u0442\u043e\u043c vacuum \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0440\u0438\u0442\u0443\u0430\u043b\u043e\u043c. \u0417\u0430\u043f\u0440\u043e\u0441\u044b \u043d\u0435\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u0433\u043e\u0440\u0442 \u043a\u043e\u043d\u043a\u0443\u0440\u0438\u0440\u0443\u044e\u0442 \u0441 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439. \u0412\u0441\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u0440\u0435\u0430\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u00ab\u0434\u0430\u0448\u0431\u043e\u0440\u0434 \u0442\u043e\u0440\u043c\u043e\u0437\u0438\u0442\u00bb. ETL-\u0434\u0436\u043e\u0431\u044b \u0441\u0446\u0435\u043f\u043b\u044f\u044e\u0442\u0441\u044f \u0441 \u043f\u0440\u0430\u0432\u043a\u0430\u043c\u0438 \u0441\u0445\u0435\u043c\u044b \u0438 \u0440\u0430\u0437\u043e\u0432\u044b\u043c\u0438 \u0444\u0438\u043a\u0441\u0430\u043c\u0438.\u041d\u0438\u0447\u0435\u0433\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u0432\u0437\u0440\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0432 \u043f\u0435\u0440\u0432\u044b\u0439 \u0434\u0435\u043d\u044c. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0432 \u0448\u0442\u0430\u0442\u043d\u044b\u0445 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445.\u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u0435 DuckDB \u043f\u0440\u044f\u043c\u043e\u043b\u0438\u043d\u0435\u0439\u043d\u043e: \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u044c \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043c\u0438\u043d\u0438-\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0443 \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0433\u0434\u0430 \u0442\u0435\u0431\u0435 \u0431\u044b\u043b \u043d\u0443\u0436\u0435\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u0447\u0438\u0441\u0442\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441\u043b\u043e\u0439.\u0410\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430: \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b, \u043e\u0434\u0438\u043d \u0434\u0432\u0438\u0436\u043e\u043a, \u043c\u0435\u043d\u044c\u0448\u0435 \u0442\u043e\u0447\u0435\u043a \u043e\u0442\u043a\u0430\u0437\u0430\u0412\u043e\u0442 \u0444\u043e\u0440\u043c\u0430 \u043c\u0438\u043a\u0440\u043e-\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u0445:[\u0411\u0414 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \/ \u0441\u043e\u0431\u044b\u0442\u0438\u044f]    [\u0424\u0430\u0439\u043b\u044b \u0432 S3\/GCS]       [CSV \u0432\u0440\u0443\u0447\u043d\u0443\u044e]          |                         |                      |          | (\u0440\u0430\u0437\u043e\u0432\u0430\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0430)      | (\u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e)    | (\u0440\u0430\u0437\u043e\u0432\u0430\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430)          v                         v                      v   (\u0441\u043d\u0430\u043f\u0448\u043e\u0442 \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e)   \u0432\u043d\u0435\u0448\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b\/\u0432\u044c\u044e\u0445\u0438    staging-\u0442\u0430\u0431\u043b\u0438\u0446\u044b               \\             \/             \/                \\           \/             \/                 v         v             v                +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+                |        DuckDB-\u0444\u0430\u0439\u043b        |                |  bronze -&gt; silver -&gt; gold |                +&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;+                           |                           | (\u044d\u043a\u0441\u043f\u043e\u0440\u0442\u044b, BI, API)                           v                   \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u044b \/ \u043e\u0442\u0447\u0451\u0442\u044bDuckDB \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u00ab\u0438\u0441\u0442\u0438\u043d\u043d\u044b\u043c\u00bb \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0441\u043b\u043e\u0435\u043c, \u043d\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u043b\u0451\u0433\u043a\u043e\u0439. \u00ab\u041f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u00bb \u043e\u0431\u044b\u0447\u043d\u043e \u044d\u0442\u043e:\u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e,\u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u044c\u044e\u0445,\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u044b\u0439 \u044d\u043a\u0441\u043f\u043e\u0440\u0442.\u0418 \u0434\u0430, \u0441 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c SLA.\u041d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u0447\u0438\u0441\u0442\u044b\u0439 SLA, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c\u0428\u0430\u0431\u043b\u043e\u043d \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e SLA\u0421\u0432\u0435\u0436\u0435\u0441\u0442\u044c: \u00ab\u0414\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0435 15 \u043c\u0438\u043d\u0443\u0442 (\u0438\u043b\u0438 \u0440\u0430\u0437 \u0432 \u0447\u0430\u0441), \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043c\u0435\u0442\u043a\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u0433\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043b\u043e\u0433\u0438\u0440\u0443\u0435\u0442\u0441\u044f.\u00bb\u041a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u044c: \u00ab\u0417\u043e\u043b\u043e\u0442\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0432 \u0432\u0435\u0440\u0441\u0438\u043e\u043d\u0438\u0440\u0443\u0435\u043c\u044b\u0445 SQL-\u0432\u044c\u044e\u0445\u0430\u0445; \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0445\u043e\u0434\u044f\u0442 \u0440\u0435\u0432\u044c\u044e.\u00bb\u041f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c: \u00ab\u0414\u0430\u0448\u0431\u043e\u0440\u0434\u044b p95 &lt; 2\u0441 \u0434\u043b\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432 \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 90 \u0434\u043d\u0435\u0439.\u00bb\u0412\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435: \u00ab\u041f\u0440\u0438 \u0441\u0431\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438\u0437 Parquet-\u0441\u043d\u0430\u043f\u0448\u043e\u0442\u043e\u0432 \u043c\u0435\u043d\u0435\u0435 \u0447\u0435\u043c \u0437\u0430 30 \u043c\u0438\u043d\u0443\u0442.\u00bb\u0421\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c\/ops: \u00ab\u041d\u0435\u0442 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430. \u041e\u0434\u0438\u043d \u0434\u0436\u043e\u0431 \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e \u043f\u043b\u044e\u0441 \u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b.\u00bb\u0412\u043e\u0442 \u0433\u0434\u0435 \u0432\u0430\u0436\u0435\u043d \u00ab\u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b\u00bb: \u0432\u0430\u0448\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u2014 \u043d\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b \u0434\u0435\u0431\u0430\u0436\u0438\u0442\u0435 \u0432 2 \u043d\u043e\u0447\u0438. \u042d\u0442\u043e \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0431\u044d\u043a\u0430\u043f\u0438\u0442\u044c, \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c.\u0420\u0435\u0430\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d: \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432\u0430\u044f \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0430 \u0431\u0435\u0437 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u043d\u0430\u043b\u043e\u0433\u0430\u0422\u0438\u043f\u0438\u0447\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f \u2014 B2B SaaS-\u043a\u043e\u043c\u0430\u043d\u0434\u0430:\u043d\u0443\u0436\u043d\u044b \u0435\u0436\u0435\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b, adoption \u0444\u0438\u0447, \u043a\u043e\u0433\u043e\u0440\u0442\u044b \u0443\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f,\u0441\u043e\u0431\u044b\u0442\u0438\u044f \u0432 \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0411\u0414, \u043b\u043e\u0433\u0438 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435,\u00ab\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u00bb \u0441\u0435\u0439\u0447\u0430\u0441 \u2014 ETL + Postgres + \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u044b,\u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f, \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0435, \u0441\u0442\u0435\u043a \u0442\u044f\u0436\u0451\u043b\u044b\u0439.\u0421 DuckDB \u044d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:\u0415\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u044b\u0439 \u0441\u043d\u0430\u043f\u0448\u043e\u0442 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 \u0432 Parquet.\u0421\u043e\u0431\u044b\u0442\u0438\u044f \u043a\u0430\u043a Parquet, \u0440\u0430\u0437\u0431\u0438\u0442\u044b\u0439 \u043f\u043e \u0434\u0430\u0442\u0435.\u0417\u043e\u043b\u043e\u0442\u044b\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043a\u0430\u043a \u0432\u044c\u044e\u0445\u0438 \u0432 DuckDB.\u0412\u044b\u0433\u0440\u0443\u0437\u043a\u0430 curated-\u0442\u0430\u0431\u043b\u0438\u0446 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u0432 Parquet \u0434\u043b\u044f BI-\u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u0432.DuckDB \u0447\u0438\u0442\u0430\u0435\u0442 Parquet \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u043e\u0432 \u043a\u0430\u043a \u043e\u0434\u043d\u0443 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443.\u0415\u0441\u043b\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043b\u0435\u0436\u0430\u0442 \u0432 S3-\u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043d\u043e\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435, \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 httpfs \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u044b\u0439 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0444\u0430\u0439\u043b\u0430\u043c, \u0432\u043a\u043b\u044e\u0447\u0430\u044f S3 API.\u0420\u0430\u0431\u043e\u0447\u0438\u0435 \u0441\u043d\u0438\u043f\u043f\u0435\u0442\u044b: \u0434\u0436\u043e\u0431 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u00ab\u0437\u043e\u043b\u043e\u0442\u043e\u0439\u00bb \u0441\u043b\u043e\u04391. \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f (Python)import duckdbfrom datetime import datetimeDB = &#171;micro_warehouse.duckdb&#187;con = duckdb.connect(DB)# \u041e\u0434\u043d\u043e\u0440\u0430\u0437\u043e\u0432\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 (\u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432)con.execute(&#171;INSTALL httpfs;&#187;)con.execute(&#171;LOAD httpfs;&#187;)# \u0427\u0438\u0442\u0430\u0435\u043c \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u043e\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 Parquet \u043a\u0430\u043a \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443con.execute(&#171;&#187;&#187;CREATE OR REPLACE VIEW bronze_events ASSELECT *FROM read_parquet(&#8216;data\/events\/date=*\/events-*.parquet&#8217;);&#187;&#187;&#187;)# Silver: \u0442\u0438\u043f\u0438\u0437\u0430\u0446\u0438\u044f + \u043e\u0447\u0438\u0441\u0442\u043a\u0430con.execute(&#171;&#187;&#187;CREATE OR REPLACE VIEW silver_events ASSELECT  CAST(event_time AS TIMESTAMP) AS event_time,  user_id,  team_id,  event_name,  NULLIF(properties, &#187;) AS propertiesFROM bronze_eventsWHERE user_id IS NOT NULL;&#187;&#187;&#187;)# Gold: \u043c\u0435\u0442\u0440\u0438\u043a\u0438 (\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441)con.execute(&#171;&#187;&#187;CREATE OR REPLACE VIEW gold_weekly_active_teams ASSELECT  date_trunc(&#8216;week&#8217;, event_time) AS week,  COUNT(DISTINCT team_id) AS weekly_active_teamsFROM silver_eventsGROUP BY 1ORDER BY 1;&#187;&#187;&#187;)# \u042d\u043a\u0441\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c curated-\u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0434\u043b\u044f BIcon.execute(&#171;&#187;&#187;COPY (SELECT * FROM gold_weekly_active_teams)TO &#8216;exports\/gold_weekly_active_teams.parquet&#8217; (FORMAT PARQUET);&#187;&#187;&#187;)con.execute(&#171;CREATE OR REPLACE TABLE ops_refresh_log AS SELECT 1 AS dummy;&#187;)con.execute(&#171;&#187;&#187;INSERT INTO ops_refresh_logSELECT 1&#8243;&#187;&#187;)print(&#171;\u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 OK:&#187;, datetime.utcnow().isoformat(), &#171;DB:&#187;, DB)\u042d\u0442\u043e \u043d\u0435 \u00ab\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0434\u0430\u043d\u043d\u044b\u0445\u00bb. \u042d\u0442\u043e \u043d\u0430\u0434\u0451\u0436\u043d\u0430\u044f \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430.2. \u0418\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0438 \u043d\u0443\u0436\u043d\u044b\u0415\u0441\u043b\u0438 \u00ab\u0437\u043e\u043b\u043e\u0442\u044b\u0435\u00bb \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e, DuckDB \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 MERGE \u2014 \u0443\u0434\u043e\u0431\u043d\u043e \u0434\u043b\u044f upsert \u0432 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043f\u043e \u043a\u043b\u044e\u0447\u0443.\u0421\u0445\u0435\u043c\u0430:\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0435 \u0441\u044b\u0440\u044b\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u044f,\u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0441\u043a\u043e\u043b\u044c\u0437\u044f\u0449\u0435\u0435 \u043e\u043a\u043d\u043e,MERGE \u0432 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0437\u043e\u043b\u043e\u0442\u0443\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043f\u043e \u043a\u043b\u044e\u0447\u0443 (week, team_id).\u041f\u0440\u0438\u0451\u043c \u0434\u043b\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438: \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c Postgres, \u043d\u043e \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0442\u044c \u0437\u043b\u043e\u0443\u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0442\u044c \u0438\u043c\u0418\u043d\u043e\u0433\u0434\u0430 \u0441\u0430\u043c\u0430\u044f \u0431\u044b\u0441\u0442\u0440\u0430\u044f \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u044f \u2014 \u043d\u0435 \u0436\u0451\u0441\u0442\u043a\u043e\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435, \u0430 \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u044b\u0439 \u0441\u0434\u0432\u0438\u0433:OLTP \u043e\u0441\u0442\u0430\u0451\u0442\u0441\u044f \u0432 Postgres,OLAP-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043f\u0435\u0440\u0435\u0435\u0437\u0436\u0430\u044e\u0442 \u0432 DuckDB.\u0423 DuckDB \u0435\u0441\u0442\u044c \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f Postgres, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0443\u043c\u0435\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 Postgres-\u0438\u043d\u0441\u0442\u0430\u043d\u0441 \u2014 \u043c\u043e\u0436\u043d\u043e \u0444\u0435\u0434\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u043b\u0438 \u043c\u0438\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e \u0432\u043c\u0435\u0441\u0442\u043e \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u044b\u0432\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u0437\u0430 \u043e\u0434\u0438\u043d \u0443\u0438\u043a-\u044d\u043d\u0434.\u0414\u043b\u044f \u043a\u043e\u043c\u0430\u043d\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043d\u0443\u0436\u043d\u044b \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u0441\u043f\u0440\u0438\u043d\u0442\u0435, \u044d\u0442\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e.\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f: \u043a\u043e\u0433\u0434\u0430 DuckDB \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043a\u0430\u043a \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u041c\u0438\u043a\u0440\u043e-\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u2014 \u043d\u0435 \u0443\u043d\u0438\u0432\u0435\u0440\u0441\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442. \u0412\u0430\u0436\u043d\u043e \u0447\u0435\u0441\u0442\u043d\u043e \u043e\u0431\u043e\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u0433\u0440\u0430\u043d\u0438\u0446\u044b.DuckDB \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u043a\u043e\u0433\u0434\u0430:\u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0435\u043c\u043d\u043e\u0433\u043e (\u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430, \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043f\u043e \u0440\u0430\u0441\u043f\u0438\u0441\u0430\u043d\u0438\u044e, BI-\u044d\u043a\u0441\u043f\u043e\u0440\u0442\u044b),\u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e append-only \u0438\u043b\u0438 \u0441\u043d\u0430\u043f\u0448\u043e\u0442-based,\u0432\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442\u0435 \u0441 Parquet \u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u043c\u0438 \u0432\u043e\u0440\u043a\u0444\u043b\u043e\u0443,\u043d\u0443\u0436\u043d\u044b \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0438 \u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u043c\u043e\u0441\u0442\u044c.DuckDB \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442, \u043a\u043e\u0433\u0434\u0430:\u043d\u0443\u0436\u043d\u0430 \u0432\u044b\u0441\u043e\u043a\u0430\u044f \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439,\u043d\u0443\u0436\u043d\u044b \u0442\u044f\u0436\u0451\u043b\u044b\u0435 OLTP-\u0437\u0430\u043f\u0438\u0441\u0438 \u0438 \u0441\u0442\u0440\u043e\u0433\u0430\u044f \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0430 \u0434\u043b\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439,\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0441 \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430\u043c\u0438 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0441\u0442\u0440\u043e\u043a \u0434\u043b\u044f \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u0430\u0440\u0435\u043d\u0434\u0430\u0442\u043e\u0440\u043e\u0432,\u00ab\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435\u00bb \u2014 \u044d\u0442\u043e \u043a\u043e\u043d\u0442\u0440\u0430\u043a\u0442 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 \u0441 \u0434\u0435\u0441\u044f\u0442\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u0434\u044e\u0441\u0435\u0440\u043e\u0432.\u0415\u0441\u043b\u0438 \u0432\u044b \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u0430 \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u043e\u0441\u0442\u044c \u0441\u0442\u0435\u043a\u0430. \u0415\u0441\u043b\u0438 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u043c \u2014 \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435.\u0418\u0442\u043e\u0433\u043e: \u043c\u0435\u043d\u044c\u0448\u0438\u0439 \u0441\u0442\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043e\u0449\u0443\u0449\u0430\u0435\u0442\u0441\u044f \u00ab\u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u043c\u00bb\u0413\u043b\u0430\u0432\u043d\u043e\u0435 \u0432 \u043f\u043e\u0434\u0445\u043e\u0434\u0435 \u043c\u0438\u043a\u0440\u043e-\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430 \u2014 \u043f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435: \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u043d\u043e\u0432\u0430 \u043e\u0449\u0443\u0449\u0430\u0435\u0442\u0441\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c\u043e\u0439.\u041e\u0434\u0438\u043d \u0444\u0430\u0439\u043b. \u041e\u0434\u0438\u043d \u0434\u0432\u0438\u0436\u043e\u043a. \u0414\u0436\u043e\u0431 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f. \u041c\u0435\u0442\u0440\u0438\u043a\u0438, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u0432 SQL, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u043e\u0440\u0435\u0432\u044c\u044e\u0438\u0442\u044c. \u042d\u043a\u0441\u043f\u043e\u0440\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438. SLA, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0441\u0444\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0431\u0435\u0437 \u0440\u0430\u0441\u043f\u043b\u044b\u0432\u0447\u0430\u0442\u044b\u0445 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u0439.\u0415\u0441\u043b\u0438 \u0441\u0435\u0439\u0447\u0430\u0441 \u0432\u044b \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0435 \u00abETL + Postgres\u00bb \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u044d\u0442\u043e \u0434\u0435\u0444\u043e\u043b\u0442 \u2014 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043e\u0434\u0438\u043d DuckDB-\u0444\u0430\u0439\u043b \u043e\u0442\u0434\u0435\u043b\u044f\u0435\u0442 \u0432\u0430\u0441 \u043e\u0442 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0436\u0438\u0437\u043d\u0438.\u041f\u043e\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u0439\u0442\u0435\u0441\u044c \u043d\u0430 \u043d\u0430\u0448\u00a0Telegram-\u043a\u0430\u043d\u0430\u043b. \u041c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0442\u0440\u0435\u043d\u0430\u0436\u0451\u0440\u044b \u0438 \u0441\u0438\u043c\u0443\u043b\u044f\u0442\u043e\u0440\u044b \u043f\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044e \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449 \u043d\u0430 dbt, \u043f\u0430\u0439\u043f\u043b\u0430\u0439\u043d\u043e\u0432 \u043d\u0430 Dagster \u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044e Lakehouse \u043d\u0430 Spark + Iceberg.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1022746\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-475698","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/475698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=475698"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/475698\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=475698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=475698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=475698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}