{"id":308224,"date":"2020-08-10T09:00:15","date_gmt":"2020-08-10T09:00:15","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=308224"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=308224","title":{"rendered":"\u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e [c]\u0447\u0438\u0442\u0430\u0435\u043c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043b\u0430\u043d\u044b PostgreSQL"},"content":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/tensor\/blog\/514112\/\">\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438, \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430 PostgreSQL \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0441 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u044c\u044e. \u041a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e <b>\u043e\u0434\u043d\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438 \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441<\/b> \u0432 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u2014 \u0438 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u00ab\u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0445\u00bb \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u043a\u043e\u0434\u0430, \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430\u043c\u0438, <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A1%D0%BE%D1%81%D1%82%D0%BE%D1%8F%D0%BD%D0%B8%D0%B5_%D0%B3%D0%BE%D0%BD%D0%BA%D0%B8\">race condition<\/a>,\u2026 \u0410 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u0430\u043c\u043e\u0439 \u0421\u0423\u0411\u0414 \u043f\u0440\u0438\u044f\u0442\u043d\u0430 \u0438 \u043f\u0440\u043e\u0441\u0442\u0430.<\/p>\n<p>  \u041d\u043e \u044d\u0442\u0430 \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435. \u0420\u0430\u0437 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043f\u043e\u0442\u043e\u043a, \u0442\u043e \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u043d \u043c\u043e\u0436\u0435\u0442 <b>\u043d\u0435 \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u044f\u0434\u0440\u0430 CPU \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430<\/b> \u2014 \u0430, \u0437\u043d\u0430\u0447\u0438\u0442, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432\u043f\u0440\u044f\u043c\u0443\u044e \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u044f\u0434\u0440\u0430.<\/p>\n<p>  \u0412 \u043d\u0430\u0448 \u0432\u0435\u043a \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0432\u0448\u0435\u0439\u0441\u044f \u00ab\u0433\u043e\u043d\u043a\u0438 \u043c\u0435\u0433\u0430\u0433\u0435\u0440\u0446\u0435\u0432\u00bb \u0438 \u043f\u043e\u0431\u0435\u0434\u0438\u0432\u0448\u0438\u0445 \u043c\u043d\u043e\u0433\u043e\u044f\u0434\u0435\u0440\u043d\u044b\u0445 \u0438 \u043c\u043d\u043e\u0433\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u0442\u0430\u043a\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u043e\u0441\u043a\u043e\u0448\u044c\u044e \u0438 \u0440\u0430\u0441\u0442\u043e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 PostgreSQL 9.6, \u043f\u0440\u0438 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 <b>\u0447\u0430\u0441\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438<\/b> \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/e4\/g8\/cf\/e4g8cfbxpcotc0pq52cbs0ye5ve.png\">  <\/p>\n<blockquote><p>\u0421\u043e \u0441\u0445\u0435\u043c\u0430\u043c\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 \u0443\u0437\u043b\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"https:\/\/www.percona.com\/blog\/2019\/07\/30\/parallelism-in-postgresql\/\">\u00abParallelism in PostgreSQL\u00bb<\/a> by Ibrar Ahmed, \u043e\u0442\u043a\u0443\u0434\u0430 \u0432\u0437\u044f\u0442\u043e \u0438 \u044d\u0442\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435.<\/p><\/blockquote>\n<p>\u041f\u0440\u0430\u0432\u0434\u0430, \u0447\u0438\u0442\u0430\u0442\u044c \u043f\u043b\u0430\u043d\u044b \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f\u2026 \u043d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e.<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0412\u043a\u0440\u0430\u0442\u0446\u0435 \u0445\u0440\u043e\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043f\u043b\u0430\u043d\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a:<\/p>\n<ul>\n<li><b>9.6<\/b> \u2014 \u0431\u0430\u0437\u043e\u0432\u044b\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b: <a href=\"http:\/\/rhaas.blogspot.com\/2015\/11\/parallel-sequential-scan-is-committed.html\">Seq Scan<\/a>, <a href=\"http:\/\/rhaas.blogspot.com\/2016\/03\/parallel-query-is-getting-better-and.html\">Join, Aggregate<\/a><\/li>\n<li><b>10<\/b> \u2014 Index Scan (\u0434\u043b\u044f btree), Bitmap Heap Scan, Hash Join, Merge Join, Subquery Scan<\/li>\n<li><b>11<\/b> \u2014 <a href=\"https:\/\/www.percona.com\/blog\/2019\/02\/21\/parallel-queries-in-postgresql\/\">\u0433\u0440\u0443\u043f\u043f\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438<\/a>: Hash Join \u0441 \u043e\u0431\u0449\u0435\u0439 \u0445\u044d\u0448-\u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439, Append (UNION)<\/li>\n<li><b>12<\/b> \u2014 \u0431\u0430\u0437\u043e\u0432\u0430\u044f per-worker \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043d\u0430 \u0443\u0437\u043b\u0430\u0445 \u043f\u043b\u0430\u043d\u0430<\/li>\n<li><b>13<\/b> \u2014 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u0430\u044f <a href=\"http:\/\/amitkapila16.blogspot.com\/2020\/02\/this-blog-post-is-about-journey-of.html\">per-worker \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430<\/a><\/li>\n<\/ul>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435\u0441\u044c \u043e\u0434\u043d\u043e\u0439 \u0438\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 PostgreSQL, \u0448\u0430\u043d\u0441\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432 \u043f\u043b\u0430\u043d\u0435 <code>Parallel ...<\/code> \u0432\u0435\u0441\u044c\u043c\u0430 \u0432\u0435\u043b\u0438\u043a\u0438. \u0410 \u0441 \u043d\u0438\u043c \u043f\u0440\u0438\u0445\u043e\u0434\u044f\u0442 \u0438\u2026<\/p>\n<h2>\u0421\u0442\u0440\u0430\u043d\u043d\u043e\u0441\u0442\u0438 \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c<\/h2>\n<p>  \u0412\u043e\u0437\u044c\u043c\u0435\u043c \u043f\u043b\u0430\u043d \u0438\u0437 PostgreSQL <b>9.6<\/b>:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/co\/jb\/fs\/cojbfsvztmuoywz11fak2ezucbe.png\"><br \/>  <a href=\"https:\/\/explain.tensor.ru\/archive\/explain\/e8282c3551ce067711ef408e651c9c11:0:2020-08-10\">[\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 explain.tensor.ru]<\/a><\/p>\n<p>  \u0422\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u0438\u043d <code>Parallel Seq Scan<\/code> \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0441\u044f <b>153.621<\/b>ms \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0435\u0432\u0430, \u0430 <code>Gather<\/code> \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u043f\u043e\u0434\u0443\u0437\u043b\u0430\u043c\u0438 \u2014 \u0432\u0441\u0435\u0433\u043e <b>104.867<\/b>ms.<\/p>\n<p>  \u041a\u0430\u043a \u0442\u0430\u043a? \u0421\u0443\u043c\u043c\u0430\u0440\u043d\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u00ab\u043d\u0430\u0432\u0435\u0440\u0445\u0443\u00bb \u0441\u0442\u0430\u043b\u043e \u2014 \u043c\u0435\u043d\u044c\u0448\u0435?..<\/p>\n<p>  \u0412\u0437\u0433\u043b\u044f\u043d\u0435\u043c \u0447\u0443\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043d\u0430 <code>Gather<\/code>-\u0443\u0437\u0435\u043b:<\/p>\n<pre><code class=\"plaintext\">Gather (actual time=0.969..104.867 rows=333333 loops=1)   Workers Planned: 2   Workers Launched: 2   Buffers: shared hit=4425<\/code><\/pre>\n<p>  <code>Workers Launched: 2<\/code> \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043d\u0430\u043c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c\u0443 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0443 \u043d\u0438\u0436\u0435 \u043f\u043e \u0434\u0435\u0440\u0435\u0432\u0443 \u0431\u044b\u043b\u0438 \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u044b \u0435\u0449\u0435 2 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u2014 \u0438\u0442\u043e\u0433\u043e 3. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0441\u0435, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u043b\u043e \u0432\u043d\u0443\u0442\u0440\u0438 <code>Gather<\/code>-\u043f\u043e\u0434\u0434\u0435\u0440\u0435\u0432\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u044b\u043c \u0442\u0432\u043e\u0440\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0432\u0441\u0435\u0445 3 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0441\u0440\u0430\u0437\u0443.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0442\u0430\u043c \u0432 <code>Parallel Seq Scan<\/code>:<\/p>\n<pre><code class=\"plaintext\">Parallel Seq Scan on tst (actual time=0.024..51.207 rows=111111 loops=3)   Filter: ((i % 3) = 0)   Rows Removed by Filter: 222222   Buffers: shared hit=4425<\/code><\/pre>\n<p>  \u0410\u0433\u0430! <code>loops=3<\/code> \u2014 \u044d\u0442\u043e \u0441\u0432\u043e\u0434\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043f\u043e \u0432\u0441\u0435\u043c 3 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c. \u0418, \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c, \u043a\u0430\u0436\u0434\u044b\u0439 \u0442\u0430\u043a\u043e\u0439 \u0446\u0438\u043a\u043b \u0437\u0430\u043d\u044f\u043b \u043f\u043e 51.207ms. \u0422\u043e \u0435\u0441\u0442\u044c \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u043e \u0434\u043b\u044f \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u044d\u0442\u043e\u0433\u043e \u0443\u0437\u043b\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u043e\u0441\u044c <code>51.207 x 3 = 153.621<\/code> \u043c\u0438\u043b\u043b\u0438\u0441\u0435\u043a\u0443\u043d\u0434\u044b <b>\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/b>. \u0422\u043e \u0435\u0441\u0442\u044c \u0435\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043d\u044f\u0442\u044c \u00ab\u0447\u0435\u043c \u0431\u044b\u043b \u0437\u0430\u043d\u044f\u0442 \u0441\u0435\u0440\u0432\u0435\u0440\u00bb \u2014 \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u0438 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u043c \u043f\u043e\u043d\u044f\u0442\u044c.  <\/p>\n<blockquote><p>\u0417\u0430\u043c\u0435\u0447\u0443, \u0447\u0442\u043e \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f <b>\u00ab\u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e\u00bb \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/b> \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043d\u0430\u0434\u043e \u0441\u0443\u043c\u043c\u0430\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e worker&#8217;\u043e\u0432 \u2014 \u0442\u043e \u0435\u0441\u0442\u044c <b><code>[actual time] x [loops] \/ [Workers Launched]<\/code><\/b>.<\/p><\/blockquote>\n<p>  \u0412 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043a\u0430\u0436\u0434\u044b\u0439 worker \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b \u043b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u0446\u0438\u043a\u043b \u043f\u043e \u0443\u0437\u043b\u0443, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 <code>153.621 \/ 3 = 51.207<\/code>. \u0418 \u0434\u0430, \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0436\u0435 \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0433\u043e, \u0447\u0442\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 <code>Gather<\/code> \u0432 \u0433\u043e\u043b\u043e\u0432\u043d\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0441\u044f \u0437\u0430 \u00ab\u043a\u0430\u043a \u0431\u044b \u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f\u00bb.<\/p>\n<p>  \u0418\u0442\u043e\u0433\u043e: \u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 <a href=\"https:\/\/explain.tensor.ru\/\">explain.tensor.ru<\/a> <b>\u0441\u0443\u043c\u043c\u0430\u0440\u043d\u043e\u0435 (\u043f\u043e \u0432\u0441\u0435\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c) \u0432\u0440\u0435\u043c\u044f \u0443\u0437\u043b\u0430<\/b>, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u043a\u0430\u043a\u043e\u0439 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u0431\u044b\u043b \u0437\u0430\u043d\u044f\u0442 \u0432\u0430\u0448 \u0441\u0435\u0440\u0432\u0435\u0440, \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u0430\u043a\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0441\u0442\u043e\u0438\u0442 \u0443\u0434\u0435\u043b\u044f\u0442\u044c \u0432\u0440\u0435\u043c\u044f.<\/p>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u0441\u043c\u044b\u0441\u043b\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0442\u043e\u0433\u043e \u0436\u0435 <a href=\"https:\/\/explain.depesz.com\/s\/rtOe\">explain.depesz.com<\/a>, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u0441\u0440\u0430\u0437\u0443 \u00ab\u0443\u0441\u0440\u0435\u0434\u043d\u0435\u043d\u043d\u043e\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0435\u00bb \u0432\u0440\u0435\u043c\u044f, \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043c\u0435\u043d\u0435\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c \u0434\u043b\u044f \u0446\u0435\u043b\u0435\u0439 \u043e\u0442\u043b\u0430\u0434\u043a\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/6y\/we\/nv\/6ywenveu2fmfscgwxd9o79zrdni.png\"><\/p>\n<p>  \u041d\u0435 \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u044b? \u0414\u043e\u0431\u0440\u043e \u043f\u043e\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438!<\/p>\n<h2>Gather Merge \u0442\u0435\u0440\u044f\u0435\u0442 \u0432\u0441\u0435<\/h2>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0442\u043e\u0442 \u0436\u0435 \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u0438 PostgreSQL <b>10<\/b>:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/k9\/ud\/f-\/k9udf-ekitwhbynvu1zqunynrk0.png\"><br \/>  <a href=\"https:\/\/explain.tensor.ru\/archive\/explain\/1e9cf0471d497e1b898a017772b35cf2:0:2020-08-10\">[\u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 explain.tensor.ru]<\/a><\/p>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u043c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u0432 \u043f\u043b\u0430\u043d\u0435 \u0443 \u043d\u0430\u0441 \u0432\u043c\u0435\u0441\u0442\u043e \u0443\u0437\u043b\u0430 <code>Gather<\/code> \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f <code><b>Gather Merge<\/b><\/code>, \u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0447\u0442\u0435\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c \u0432 \u0443\u043f\u043e\u0440\u044f\u0434\u043e\u0447\u0435\u043d\u043d\u043e\u0435, \u043f\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0443, \u0445\u043e\u0442\u044c \u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0435. \u0412\u043e\u0442 \u0447\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043f\u043e \u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0432\u043e\u0434\u0443 <a href=\"https:\/\/postgrespro.ru\/docs\/postgresql\/12\/how-parallel-query-works\">\u043c\u0430\u043d\u0443\u0430\u043b<\/a>:  <\/p>\n<blockquote><p>\u041a\u043e\u0433\u0434\u0430 \u043d\u0430\u0434 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u044c\u044e \u043f\u043b\u0430\u043d\u0430 \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0443\u0437\u0435\u043b <code>Gather Merge<\/code>, \u0430 \u043d\u0435 <code>Gather<\/code>, \u044d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442, \u0447\u0442\u043e \u0432\u0441\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0438\u0435 \u0447\u0430\u0441\u0442\u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043b\u0430\u043d\u0430, \u0432\u044b\u0434\u0430\u044e\u0442 \u043a\u043e\u0440\u0442\u0435\u0436\u0438 \u0432 \u043e\u0442\u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u0438 \u0447\u0442\u043e \u0432\u0435\u0434\u0443\u0449\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0441\u043b\u0438\u044f\u043d\u0438\u0435 \u0441 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0430. \u0423\u0437\u0435\u043b \u0436\u0435 <code>Gather<\/code>, \u043d\u0430\u043f\u0440\u043e\u0442\u0438\u0432, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u043a\u043e\u0440\u0442\u0435\u0436\u0438 \u043e\u0442 \u043f\u043e\u0434\u0447\u0438\u043d\u0451\u043d\u043d\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e\u043c \u0443\u0434\u043e\u0431\u043d\u043e\u043c \u0435\u043c\u0443 \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u043d\u0430\u0440\u0443\u0448\u0430\u044f \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0433 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c.<\/p><\/blockquote>\n<p>  \u041d\u043e \u043d\u0435 \u0432\u0441\u0435 \u043b\u0430\u0434\u043d\u043e \u0432 \u0434\u0430\u0442\u0441\u043a\u043e\u043c \u043a\u043e\u0440\u043e\u043b\u0435\u0432\u0441\u0442\u0432\u0435:<\/p>\n<pre><code class=\"plaintext\">Limit (actual time=110.740..113.138 rows=10000 loops=1)   Buffers: shared hit=888 read=801, temp read=18 written=218   I\/O Timings: read=9.709   -&gt;  Gather Merge (actual time=110.739..117.654 rows=10000 loops=1)         Workers Planned: 2         Workers Launched: 2         Buffers: shared hit=2943 read=1578, temp read=24 written=571         I\/O Timings: read=17.156<\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0435 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u043e\u0432 <code>Buffers<\/code> \u0438 <code>I\/O Timings<\/code> \u0432\u0432\u0435\u0440\u0445 \u043f\u043e \u0434\u0435\u0440\u0435\u0432\u0443 <b>\u0447\u0430\u0441\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u044b\u043b\u0430 \u0431\u0435\u0437\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0443\u0442\u0440\u0430\u0447\u0435\u043d\u0430<\/b>. \u041c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u0440\u0430\u0437\u043c\u0435\u0440 \u044d\u0442\u043e\u0439 \u043f\u043e\u0442\u0435\u0440\u0438 \u043a\u0430\u043a \u0440\u0430\u0437 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0432 <b>2\/3<\/b>, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438.<\/p>\n<p>  \u0423\u0432\u044b, \u0432 \u0441\u0430\u043c\u043e\u043c \u043f\u043b\u0430\u043d\u0435 \u044d\u0442\u0443 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0432\u0437\u044f\u0442\u044c \u043d\u0435\u043e\u0442\u043a\u0443\u0434\u0430 \u2014 \u043e\u0442\u0441\u044e\u0434\u0430 \u0438 \u00ab\u043c\u0438\u043d\u0443\u0441\u044b\u00bb \u043d\u0430 \u0432\u044b\u0448\u0435\u043b\u0435\u0436\u0430\u0449\u0435\u043c \u0443\u0437\u043b\u0435. \u0418 \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0443\u044e \u044d\u0432\u043e\u043b\u044e\u0446\u0438\u044e \u044d\u0442\u043e\u0433\u043e \u043f\u043b\u0430\u043d\u0430 \u0432 PostgreSQL <b>12<\/b>, \u0442\u043e \u043e\u043d \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f, \u0440\u0430\u0437\u0432\u0435 \u0447\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u043f\u043e \u043a\u0430\u0436\u0434\u043e\u043c\u0443 worker \u043d\u0430 <code>Sort<\/code>-\u0443\u0437\u043b\u0435:<\/p>\n<pre><code class=\"plaintext\">Limit (actual time=77.063..80.480 rows=10000 loops=1)   Buffers: shared hit=1764, temp read=223 written=355   -&gt;  Gather Merge (actual time=77.060..81.892 rows=10000 loops=1)         Workers Planned: 2         Workers Launched: 2         Buffers: shared hit=4519, temp read=575 written=856         -&gt;  Sort (actual time=72.630..73.252 rows=4278 loops=3)               Sort Key: i               Sort Method: external merge  Disk: 1832kB               Worker 0:  Sort Method: external merge  Disk: 1512kB               Worker 1:  Sort Method: external merge  Disk: 1248kB               Buffers: shared hit=4519, temp read=575 written=856               -&gt;  Parallel Seq Scan on tst (actual time=0.014..44.970 rows=111111 loops=3)                     Filter: ((i % 3) = 0)                     Rows Removed by Filter: 222222                     Buffers: shared hit=4425 Planning Time: 0.142 ms Execution Time: 83.884 ms<\/code><\/pre>\n<p>  \u0418\u0442\u043e\u0433\u043e: \u043d\u0435 \u0434\u043e\u0432\u0435\u0440\u044f\u0439\u0442\u0435 \u0434\u0430\u043d\u043d\u044b\u043c \u0443\u0437\u043b\u0430 \u043d\u0430\u0434 <code>Gather Merge<\/code>.<\/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\/company\/tensor\/blog\/514112\/\"> https:\/\/habr.com\/ru\/company\/tensor\/blog\/514112\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html post__text_v1\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/company\/tensor\/blog\/514112\/\">\u0418\u0441\u0442\u043e\u0440\u0438\u0447\u0435\u0441\u043a\u0438, \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430 PostgreSQL \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0441 \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u044c\u044e. \u041a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043d\u0438\u0445 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e <b>\u043e\u0434\u043d\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0438 \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441<\/b> \u0432 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u2014 \u0438 \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438.<\/p>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043d\u0435\u0442 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0442\u0440\u0430\u0434\u0438\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u00ab\u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0445\u00bb \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435\u043c \u043a\u043e\u0434\u0430, \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430\u043c\u0438, <a href=\"https:\/\/ru.wikipedia.org\/wiki\/%D0%A1%D0%BE%D1%81%D1%82%D0%BE%D1%8F%D0%BD%D0%B8%D0%B5_%D0%B3%D0%BE%D0%BD%D0%BA%D0%B8\">race condition<\/a>,\u2026 \u0410 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u0430\u043c\u043e\u0439 \u0421\u0423\u0411\u0414 \u043f\u0440\u0438\u044f\u0442\u043d\u0430 \u0438 \u043f\u0440\u043e\u0441\u0442\u0430.<\/p>\n<p>  \u041d\u043e \u044d\u0442\u0430 \u0436\u0435 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0430 \u043d\u0430\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435. \u0420\u0430\u0437 \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043f\u043e\u0442\u043e\u043a, \u0442\u043e \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u043d \u043c\u043e\u0436\u0435\u0442 <b>\u043d\u0435 \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u044f\u0434\u0440\u0430 CPU \u0434\u043b\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430<\/b> \u2014 \u0430, \u0437\u043d\u0430\u0447\u0438\u0442, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0432\u043f\u0440\u044f\u043c\u0443\u044e \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0438 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u044f\u0434\u0440\u0430.<\/p>\n<p>  \u0412 \u043d\u0430\u0448 \u0432\u0435\u043a \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0432\u0448\u0435\u0439\u0441\u044f \u00ab\u0433\u043e\u043d\u043a\u0438 \u043c\u0435\u0433\u0430\u0433\u0435\u0440\u0446\u0435\u0432\u00bb \u0438 \u043f\u043e\u0431\u0435\u0434\u0438\u0432\u0448\u0438\u0445 \u043c\u043d\u043e\u0433\u043e\u044f\u0434\u0435\u0440\u043d\u044b\u0445 \u0438 \u043c\u043d\u043e\u0433\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u0442\u0430\u043a\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u0435\u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0440\u043e\u0441\u043a\u043e\u0448\u044c\u044e \u0438 \u0440\u0430\u0441\u0442\u043e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u043d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 PostgreSQL 9.6, \u043f\u0440\u0438 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u043a\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 <b>\u0447\u0430\u0441\u0442\u044c \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438<\/b> \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/e4\/g8\/cf\/e4g8cfbxpcotc0pq52cbs0ye5ve.png\">  <\/p>\n<blockquote><p>\u0421\u043e \u0441\u0445\u0435\u043c\u0430\u043c\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 \u0443\u0437\u043b\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"https:\/\/www.percona.com\/blog\/2019\/07\/30\/parallelism-in-postgresql\/\">\u00abParallelism in PostgreSQL\u00bb<\/a> by Ibrar Ahmed, \u043e\u0442\u043a\u0443\u0434\u0430 \u0432\u0437\u044f\u0442\u043e \u0438 \u044d\u0442\u043e \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435.<\/p><\/blockquote>\n<p>\u041f\u0440\u0430\u0432\u0434\u0430, \u0447\u0438\u0442\u0430\u0442\u044c \u043f\u043b\u0430\u043d\u044b \u0432 \u044d\u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f\u2026 \u043d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e.  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-308224","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/308224","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=308224"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/308224\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=308224"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=308224"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=308224"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}