{"id":478212,"date":"2026-05-01T09:02:06","date_gmt":"2026-05-01T09:02:06","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=478212"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=478212","title":{"rendered":"DeepSeek, PG_EXPECTO \u0438 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f: \u0442\u0440\u043e\u0439\u043d\u0430\u044f \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0430 \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0439 PostgreSQL (15 -&gt; 17)"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e51\/8dd\/217\/e518dd217e03d2869f7b7ce21383c861.png\" alt=\"\u041a\u043e\u0433\u0434\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u0432\u0438\u043d\u043e\u0432\u0430\u0442\u0430\u2026 \u043d\u043e \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c. \u041a\u0430\u043a \u0434\u0432\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0447\u0443\u0442\u044c \u043d\u0435 \u0443\u0431\u0438\u043b\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0430\u043f\u0433\u0440\u0435\u0439\u0434\u0430.  \" title=\"\u041a\u043e\u0433\u0434\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u0432\u0438\u043d\u043e\u0432\u0430\u0442\u0430\u2026 \u043d\u043e \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c. \u041a\u0430\u043a \u0434\u0432\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0447\u0443\u0442\u044c \u043d\u0435 \u0443\u0431\u0438\u043b\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0430\u043f\u0433\u0440\u0435\u0439\u0434\u0430.  \" width=\"1200\" height=\"675\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/e51\/8dd\/217\/e518dd217e03d2869f7b7ce21383c861.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e51\/8dd\/217\/e518dd217e03d2869f7b7ce21383c861.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption>\u041a\u043e\u0433\u0434\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u0432\u0438\u043d\u043e\u0432\u0430\u0442\u0430\u2026 \u043d\u043e \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c. \u041a\u0430\u043a \u0434\u0432\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0447\u0443\u0442\u044c \u043d\u0435 \u0443\u0431\u0438\u043b\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0430\u043f\u0433\u0440\u0435\u0439\u0434\u0430.  <\/figcaption><\/div>\n<\/figure>\n<p><strong>\u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 (\u0434\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440)<\/strong><\/p>\n<p>\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430.<\/p>\n<p>\u0412 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438:<\/p>\n<p>\u2014 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b \u0438 \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c\u044e;<\/p>\n<p>\u2014 \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b, \u0441\u043e\u043f\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0441\u043b\u043e\u0433\u0430\u043d\u044b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435 \u0438 \u043f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c\u044e;<\/p>\n<p>\u2014 \u043c\u0430\u043a\u0435\u0442 \u0441\u0442\u0430\u0442\u044c\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c\u044e.<\/p>\n<p>\u041b\u0438\u0446\u0430\u043c, \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u043c\u0441\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u00ab\u0418\u0418-\u0432\u0435\u0433\u0430\u043d\u0441\u0442\u0432\u0430\u00bb (\u0438\u0441\u043f\u044b\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u043c \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u044b\u0439 \u0441\u0442\u0440\u0430\u0445, \u043d\u0435\u043f\u0440\u0438\u044f\u0437\u043d\u044c \u0438\u043b\u0438 \u043f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0438\u0441\u043a\u043e\u043c\u0444\u043e\u0440\u0442 \u043f\u043e \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044e \u043a \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0435\u0432\u044b\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c), \u043d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0441 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438, \u0440\u0430\u0432\u043d\u043e \u043a\u0430\u043a \u0438 \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0435\u0451 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0438, \u0432\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0433\u043e \u043d\u0430\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u0434\u0430 \u043f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0431\u043b\u0430\u0433\u043e\u043f\u043e\u043b\u0443\u0447\u0438\u044e.<\/p>\n<hr\/>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0421\u0423\u0411\u0414 \u0434\u043b\u044f \u00ab1\u0421:\u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435\u00bb \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 Postgres Pro Enterprise 15.14.1 \u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044e Postgres Pro Enterprise 17.9.2 \u0432\u043e\u0437\u043d\u0438\u043a \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u0439 \u0434\u0435\u0444\u0438\u0446\u0438\u0442 \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0439 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b: \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c iowait \u0440\u0435\u0437\u043a\u043e \u0432\u043e\u0437\u0440\u043e\u0441, \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u043e\u0441\u044c \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0448\u0442\u0430\u0442\u043d\u044b\u0435 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0451\u0442\u044b \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043f\u0440\u0438\u0447\u0438\u043d\u0443. \u041f\u0440\u0435\u0434\u043f\u0440\u0438\u043d\u044f\u0442\u043e\u0435 \u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435, \u0434\u043b\u0438\u0432\u0448\u0435\u0435\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0434\u0435\u043b\u044c, \u0432\u044b\u044f\u0432\u0438\u043b\u043e \u043d\u0435 \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u043e\u043d\u043d\u043e\u0435 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0435 \u0432 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u0430 \u0434\u0432\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:\u00a0<\/p>\n<p><strong>\u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445<\/strong>, \u043e\u0448\u0438\u0431\u043a\u0443 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430, \u0438\u043d\u0434\u0443\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c\u00a0<strong>planner_upper_limit_estimation = on<\/strong>\u00a0\u0438 \u0443\u0441\u0443\u0433\u0443\u0431\u043b\u0451\u043d\u043d\u0443\u044e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u044b\u043c \u0432\u043b\u0438\u044f\u043d\u0438\u0435\u043c\u00a0<strong>autoprepare_threshold<\/strong>\u00a0\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u043e\u0433\u043e <strong>online_analyze<\/strong>;\u00a0<\/p>\n<p><strong>\u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445<\/strong>, \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u0441\u0442\u043e\u0449\u0435\u043d\u0438\u0435 \u0431\u0443\u0444\u0435\u0440\u043d\u043e\u0433\u043e \u043a\u044d\u0448\u0430 \u043f\u0440\u0438 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438\u00a0<strong>shared_buffers<\/strong>\u00a0\u043d\u0430 \u0444\u043e\u043d\u0435 \u0432\u043e\u0437\u0440\u043e\u0441\u0448\u0435\u0439 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438. <\/p>\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0445\u0440\u043e\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0435\u0440\u043e\u043f\u0440\u0438\u044f\u0442\u0438\u0439, \u043e\u043f\u0438\u0440\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u00a0<strong>pgpro_pwr<\/strong>, \u043c\u0435\u0442\u043e\u0434\u043e\u043b\u043e\u0433\u0438\u044e\u00a0<strong>PG_EXPECTO<\/strong>\u00a0\u0438 <strong>\u0432\u0435\u0440\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u0441 \u043f\u0440\u0438\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435\u043c \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439<\/strong>, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u044b\u0435 \u043a \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\u043c, \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u0438\u043b\u0438 \u0443\u0436\u0435 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0432\u0448\u0438\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435.<\/p>\n<p><strong>\u0414\u043b\u044f \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c:<\/strong><\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/postgrespro.ru\/docs\/enterprise\/17\/pgpro-pwr\" rel=\"noopener noreferrer nofollow\"><strong>pgpro_pwr<\/strong>\u00a0<\/a>\u2014 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u0430 \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 PostgreSQL, \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0449\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0442\u0447\u0451\u0442\u044b \u043f\u043e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0435, \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f\u043c, \u043f\u043b\u0430\u043d\u0430\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/afDI9YXMqhkZshJY?share_to=link\" rel=\"noopener noreferrer nofollow\"><strong>PG_EXPECTO<\/strong><\/a>\u00a0\u2014 \u0434\u043e\u043c\u0435\u043d\u043d\u0430\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043b\u043e\u0433\u0438\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430, \u043f\u0440\u0435\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u0441\u0442\u044c \u043c\u0435\u0442\u0440\u0438\u043a, \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0442\u044c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043d\u043d\u044b\u0435 \u0444\u0430\u043a\u0442\u044b \u0438 \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u044b, \u044f\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u044b\u0432\u043e\u0434\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/adylZDtPx1La7Jv_?share_to=link\" rel=\"noopener noreferrer nofollow\"><strong>\u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f<\/strong>\u00a0\u0434\u043b\u044f \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 DeepSeek,<\/a>\u00a0\u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0449\u0430\u044f \u044d\u043f\u0438\u0441\u0442\u0435\u043c\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0447\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044c: \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u0441\u043d\u0430\u0431\u0436\u0430\u043b\u0441\u044f \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u043d\u043e\u0441\u0442\u0438 (\u00ab\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u043e \u0434\u0430\u043d\u043d\u044b\u043c\u0438\u00bb, \u00ab\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u043d\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438\u00bb, \u00ab\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u00bb, \u00ab\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043e\u0446\u0435\u043d\u0438\u0442\u044c\u00bb).<\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/github.com\/pg-expecto\/deepseek-pg-perf-prompts\" rel=\"noopener noreferrer nofollow\">\u041a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u0432 \u0434\u043b\u044f \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438\u00a0<strong>DeepSeek<\/strong>\u00a0(\u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435),\u00a0<\/a>\u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0421\u0423\u0411\u0414\u00a0<strong>PostgreSQL<\/strong>.<\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<h2>\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435<\/h2>\n<ul>\n<li>\n<p><a href=\"#%D1%87%D0%B0%D1%81%D1%82%D1%8C1\" rel=\"noopener noreferrer nofollow\">\u0413\u043b\u0430\u0432\u0430 1. \u041f\u043e\u0441\u043b\u0435 \u0430\u043f\u0433\u0440\u0435\u0439\u0434\u0430: \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u00d75 \u043f\u0440\u0438 \u0442\u0435\u0445 \u0436\u0435 \u043f\u043b\u0430\u043d\u0430\u0445<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D1%87%D0%B0%D1%81%D1%82%D1%8C2\" rel=\"noopener noreferrer nofollow\">\u0413\u043b\u0430\u0432\u0430 2. \u041f\u043b\u0430\u043d\u044b \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b, \u043d\u043e \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0432\u044b\u0440\u043e\u0441\u043b\u0438 \u0432 \u0440\u0430\u0437\u044b \u2014 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u0438\u0437\u043d\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u044b<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D1%87%D0%B0%D1%81%D1%82%D1%8C3\" rel=\"noopener noreferrer nofollow\">\u0413\u043b\u0430\u0432\u0430 3. \u041f\u043e\u0432\u043e\u0440\u043e\u0442\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442: +3300% \u0441\u0431\u0440\u043e\u0441\u043e\u0432 \u043a\u044d\u0448\u0430 \u2014 \u043a\u043b\u044e\u0447 \u043a \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0443<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D1%87%D0%B0%D1%81%D1%82%D1%8C4\" rel=\"noopener noreferrer nofollow\">\u0413\u043b\u0430\u0432\u0430 4. \u0414\u0432\u043e\u0439\u043d\u0430\u044f \u0432\u0435\u0440\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f: \u043a\u0430\u043a \u0442\u0430\u043d\u0434\u0435\u043c autoprepare_threshold \u0438 online_analyze \u043c\u0435\u0442\u043e\u0434\u0438\u0447\u043d\u043e \u0432\u044b\u043c\u044b\u0432\u0430\u0435\u0442 \u043a\u044d\u0448 \u043f\u043b\u0430\u043d\u043e\u0432<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D1%87%D0%B0%D1%81%D1%82%D1%8C5\" rel=\"noopener noreferrer nofollow\">\u0413\u043b\u0430\u0432\u0430 5. \u041f\u0440\u043e\u0440\u044b\u0432: planner_upper_limit_estimation = on \u2014 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u0438\u043d\u043e\u0432\u043d\u0438\u043a Seq Scan \u0438 \u043b\u0430\u0432\u0438\u043d\u044b \u0447\u0442\u0435\u043d\u0438\u0439<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D1%87%D0%B0%D1%81%D1%82%D1%8C6\" rel=\"noopener noreferrer nofollow\">\u0413\u043b\u0430\u0432\u0430 6. \u0412\u0442\u043e\u0440\u0430\u044f \u0432\u043e\u043b\u043d\u0430: hit ratio \u0440\u0443\u0445\u043d\u0443\u043b \u0441 95% \u0434\u043e 86% \u0431\u0435\u0437 \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u2014 shared_buffers \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D0%B2%D1%80%D0%B5%D0%B7%D0%BA%D0%B0\" rel=\"noopener noreferrer nofollow\">\u041a\u0430\u043a \u043e\u0434\u043d\u0430 \u0444\u0440\u0430\u0437\u0430 \u0432 \u043f\u0440\u043e\u043c\u043f\u0442\u0435 \u043a DeepSeek \u0447\u0443\u0442\u044c \u043d\u0435 \u0443\u0432\u0435\u043b\u0430 \u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D1%87%D0%B0%D1%81%D1%82%D1%8C7\" rel=\"noopener noreferrer nofollow\">\u0413\u043b\u0430\u0432\u0430 7. \u0418\u0442\u043e\u0433\u0438: \u0434\u0432\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u2014 \u043e\u0434\u0438\u043d \u0447\u0435\u043a-\u043b\u0438\u0441\u0442 \u0434\u043b\u044f DBA<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D1%87%D0%B0%D1%81%D1%82%D1%8C8\" rel=\"noopener noreferrer nofollow\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b &#8212; \u0445\u0440\u043e\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u0440\u0430\u0431\u043e\u0442 \u043f\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"#%D1%87%D0%B0%D1%81%D1%82%D1%8C9\" rel=\"noopener noreferrer nofollow\">\u0420\u0435\u0446\u0435\u043d\u0437\u0438\u044f (\u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043e \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c\u044e DeepSeek , \u043f\u043e \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438)<\/a><\/p>\n<\/li>\n<\/ul>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D1%87%D0%B0%D1%81%D1%82%D1%8C1\" id=\"\u0447\u0430\u0441\u0442\u044c1\"><\/a><\/p>\n<h2>\u0413\u043b\u0430\u0432\u0430 1. \u041f\u043e\u0441\u043b\u0435 \u0430\u043f\u0433\u0440\u0435\u0439\u0434\u0430: \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u00d75 \u043f\u0440\u0438 \u0442\u0435\u0445 \u0436\u0435 \u043f\u043b\u0430\u043d\u0430\u0445<\/h2>\n<p><a href=\"https:\/\/dzen.ru\/a\/ad-gjwJQnG44OIF5?share_to=link\" rel=\"noopener noreferrer nofollow\"><strong>\u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u0430\u043d\u043e\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 CPU\/IO \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438.<\/strong><\/a><\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9c1\/cf8\/3cd\/9c1cf83cd2a97354019f6f5c943be7e3.png\" alt=\"\u0420\u0438\u0441.1\u00a0\u0413\u0440\u0430\u0444\u0438\u043a\u0438 \u043c\u0435\u0442\u0440\u0438\u043a Zabbix: &quot;CPU iowait time&quot; \u0438 &quot;CPU Utilization&quot; - \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438 \u0421\u0423\u0411\u0414 (\u0421\u0423\u0411\u0414-1)  \" title=\"\u0420\u0438\u0441.1\u00a0\u0413\u0440\u0430\u0444\u0438\u043a\u0438 \u043c\u0435\u0442\u0440\u0438\u043a Zabbix: &quot;CPU iowait time&quot; \u0438 &quot;CPU Utilization&quot; - \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438 \u0421\u0423\u0411\u0414 (\u0421\u0423\u0411\u0414-1)  \" width=\"1200\" height=\"258\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/9c1\/cf8\/3cd\/9c1cf83cd2a97354019f6f5c943be7e3.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/9c1\/cf8\/3cd\/9c1cf83cd2a97354019f6f5c943be7e3.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption><strong>\u0420\u0438\u0441.1\u00a0<\/strong>\u0413\u0440\u0430\u0444\u0438\u043a\u0438 \u043c\u0435\u0442\u0440\u0438\u043a Zabbix: &#171;CPU iowait time&#187; \u0438 &#171;CPU Utilization&#187; &#8212; \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438 \u0421\u0423\u0411\u0414 (<strong>\u0421\u0423\u0411\u0414-1<\/strong>)  <\/figcaption><\/div>\n<\/figure>\n<p>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0434\u0432\u0443\u0445 \u043e\u0442\u0447\u0451\u0442\u043e\u0432 pgpro_pwr \u2014 \u0434\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f (PG 15) \u0438 \u043f\u043e\u0441\u043b\u0435 (PG 17) \u2014 \u0432\u044b\u044f\u0432\u0438\u043b\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u0443, \u0434\u0430\u043b\u0451\u043a\u0443\u044e \u043e\u0442 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e\u0439:<\/p>\n<ul>\n<li>\n<p><strong>\u043e\u0431\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432<\/strong>\u00a0\u0432\u044b\u0440\u043e\u0441\u043b\u043e \u043d\u0430 20% (\u0441 33,7 \u043c\u043b\u043d \u0434\u043e 40,4 \u043c\u043b\u043d);<\/p>\n<\/li>\n<li>\n<p>\u043e\u0434\u043d\u0430\u043a\u043e\u00a0<strong>\u0441\u0443\u043c\u043c\u0430\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f<\/strong>\u00a0\u043f\u043e\u0434\u0441\u043a\u043e\u0447\u0438\u043b\u043e \u0432 2,6 \u0440\u0430\u0437\u0430 (\u0441 ~5 094 \u0441 \u0434\u043e ~13 462 \u0441);<\/p>\n<\/li>\n<li>\n<p><strong>\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f<\/strong>\u00a0(\u0441\u0443\u043c\u043c\u0430 user + system) \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u043e\u0441\u044c \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u0432 5 \u0440\u0430\u0437 \u2014 \u0441 ~5 550 \u0441 \u0434\u043e ~31 134 \u0441;<\/p>\n<\/li>\n<li>\n<p><strong>\u043f\u0438\u043a\u043e\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0441\u0435\u0441\u0441\u0438\u0439<\/strong>\u00a0\u0432 \u043d\u043e\u0432\u043e\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0435 \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u043b\u043e 1 317 (\u043f\u0440\u043e\u0442\u0438\u0432 435 \u0440\u0430\u043d\u0435\u0435), \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 max_connections \u0431\u044b\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0432 \u044d\u043a\u0441\u0442\u0440\u0435\u043c\u0430\u043b\u044c\u043d\u044b\u0435 5 000.<\/p>\n<\/li>\n<\/ul>\n<p>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u0432\u043b\u0438\u044f\u044e\u0449\u0438\u0435 \u043d\u0430 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (shared_buffers = 55 \u0413\u0411, effective_cache_size = 165 \u0413\u0411, random_page_cost = 1.1), \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u044b\u043c\u0438.<\/p>\n<p><strong>\u041d\u043e \u0431\u044b\u043b\u0438 \u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u044f:<\/strong><\/p>\n<ul>\n<li>\n<p><strong>work_mem<\/strong>\u00a0\u0443\u0434\u0432\u043e\u0438\u043b\u0441\u044f (\u0441 32 \u041c\u0411 \u0434\u043e 64 \u041c\u0411),<\/p>\n<\/li>\n<li>\n<p><strong>max_parallel_workers_per_gather<\/strong>\u00a0\u0432 \u043e\u0431\u043e\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u043f\u043e-\u0432\u0438\u0434\u0438\u043c\u043e\u043c\u0443, \u0431\u044b\u043b \u043e\u0442\u043a\u043b\u044e\u0447\u0451\u043d \u0438\u043b\u0438 \u0431\u043b\u0438\u0437\u043e\u043a \u043a \u043d\u0443\u043b\u044e.<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u0441\u0432\u043e\u0438 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b:<\/strong>\u00a0\u0447\u0430\u0441\u0442\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b SELECT FASTTRUNCATE \u0434\u043b\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 (\u0434\u043e 1,2 \u043c\u043b\u043d \u0440\u0430\u0437 \u0432 \u0447\u0430\u0441), \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439 BinaryData (\u0447\u0442\u0435\u043d\u0438\u0435 \u0438 \u0432\u0441\u0442\u0430\u0432\u043a\u0430 BLOB-\u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432), \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 (16 \u0413\u0411 \u0432 \u043d\u043e\u0432\u043e\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0435). \u041d\u043e \u0438\u0445 \u00ab\u0446\u0435\u043d\u0430\u00bb \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0440\u0435\u0437\u043a\u043e \u0432\u043e\u0437\u0440\u043e\u0441\u043b\u0430. \u0422\u0430\u043a, \u043e\u0434\u0438\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0440\u043e\u0441 FASTTRUNCATE \u0432 \u043d\u043e\u0432\u043e\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u043b 37,7% \u0432\u0441\u0435\u0433\u043e CPU, \u0445\u043e\u0442\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u0432 2,4 \u0440\u0430\u0437\u0430 \u0440\u0435\u0436\u0435, \u0447\u0435\u043c \u0432 \u0441\u0442\u0430\u0440\u043e\u043c.<\/p>\n<h3>\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 (\u0423\u0440\u043e\u0432\u0435\u043d\u044c\u20112):<\/h3>\n<p>\u0414\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u044f, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0438\u043b\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u0435\u0439 \u0437\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043d\u0430 \u0444\u043e\u043d\u0435 \u0432\u043e\u0437\u0440\u043e\u0441\u0448\u0435\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0441\u0435\u0441\u0441\u0438\u0439. \u041d\u043e \u0434\u043b\u044f \u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0441\u044f \u0430\u043d\u0430\u043b\u0438\u0437 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u043f\u043b\u0430\u043d\u043e\u0432 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.<\/p>\n<p><strong>\u041a\u043e\u0440\u043d\u0435\u0432\u0430\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430 &#8212; \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430.<\/strong><\/p>\n<p><strong>\ufe0f\u0423\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0430\u0441\u044c.<\/strong><\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D1%87%D0%B0%D1%81%D1%82%D1%8C2\" id=\"\u0447\u0430\u0441\u0442\u044c2\"><\/a><\/p>\n<h2>\u0413\u043b\u0430\u0432\u0430 2. \u041f\u043b\u0430\u043d\u044b \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b, \u043d\u043e \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0432\u044b\u0440\u043e\u0441\u043b\u0438 \u0432 \u0440\u0430\u0437\u044b \u2014 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u0438\u0437\u043d\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u044b<\/h2>\n<p><strong>\u041f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b &#8212; \u0430\u043d\u043e\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0443\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044f CPU\/IO \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438 .<\/strong><\/p>\n<p><strong>\ud83d\udccb\u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 &#8212; \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0433\u043b\u0443\u0431\u0438\u043d\u043d\u044b\u0439 \u0441\u0432\u043e\u0434\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u0446\u0435\u043b\u044c\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u0438 \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0440\u043e\u043f\u0440\u0438\u044f\u0442\u0438\u044f \u0434\u043b\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439.<\/strong><\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e72\/aa1\/45b\/e72aa145b8b5adb24992f0f8076949bb.png\" alt=\"\u0420\u0438\u0441.2\u00a0\u0413\u0440\u0430\u0444\u0438\u043a\u0438 \u043c\u0435\u0442\u0440\u0438\u043a Zabbix: &quot;CPU iowait time&quot; \u0438 &quot;CPU Utilization&quot; - \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438 \u0421\u0423\u0411\u0414 (\u0421\u0423\u0411\u0414-2)  \" title=\"\u0420\u0438\u0441.2\u00a0\u0413\u0440\u0430\u0444\u0438\u043a\u0438 \u043c\u0435\u0442\u0440\u0438\u043a Zabbix: &quot;CPU iowait time&quot; \u0438 &quot;CPU Utilization&quot; - \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438 \u0421\u0423\u0411\u0414 (\u0421\u0423\u0411\u0414-2)  \" width=\"1200\" height=\"258\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/e72\/aa1\/45b\/e72aa145b8b5adb24992f0f8076949bb.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/e72\/aa1\/45b\/e72aa145b8b5adb24992f0f8076949bb.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption><strong>\u0420\u0438\u0441.2\u00a0<\/strong>\u0413\u0440\u0430\u0444\u0438\u043a\u0438 \u043c\u0435\u0442\u0440\u0438\u043a Zabbix: &#171;CPU iowait time&#187; \u0438 &#171;CPU Utilization&#187; &#8212; \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438 \u0421\u0423\u0411\u0414 (<strong>\u0421\u0423\u0411\u0414-2<\/strong>)  <\/figcaption><\/div>\n<\/figure>\n<p><strong>\ud83d\udccb\u041d\u0430\u0447\u0430\u043b\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430:<\/strong><\/p>\n<ul>\n<li>\n<p>5 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u043b\u0438\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f,<\/p>\n<\/li>\n<li>\n<p>12 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0434\u043e\u043c\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b Query ID \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0441\u043a\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043e\u0442\u0447\u0451\u0442\u0430\u043c\u0438.<\/p>\n<h3>\u0412\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u00a0:<\/h3>\n<p><a href=\"https:\/\/dzen.ru\/a\/aeeGBrkr2kU-N54D?share_to=link\" rel=\"noopener noreferrer nofollow\">\u0421\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 &#171;Total exec time&#187;<\/a><\/p>\n<ul>\n<li>\n<p>\u0417\u0430\u043f\u0440\u043e\u0441 \u0441 _InfoRg12488 (LIMIT + ORDER BY): \u043f\u043b\u0430\u043d \u0443\u043b\u0443\u0447\u0448\u0438\u043b\u0441\u044f \u2014 \u0432\u043c\u0435\u0441\u0442\u043e Bitmap Heap Scan \u0441\u0442\u0430\u043b \u0447\u0430\u0449\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u044f\u043c\u043e\u0439 Index Scan. \u0421\u0440\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c \u0441 255 \u043c\u0441 \u0434\u043e 19,5 \u043c\u0441, \u043d\u043e \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0432 39 \u0440\u0430\u0437 (\u0441 777 \u0434\u043e 30 185). \u041e\u0431\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u043e\u0441\u044c, \u043d\u043e \u043d\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u043f\u0440\u043e\u0441 \u0441 <em>Reference109 (OR \u043f\u043e \u0434\u0432\u0443\u043c \u043f\u043e\u043b\u044f\u043c): \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0432 105 \u0440\u0430\u0437 (\u0441 15 \u0434\u043e 1 580), \u043f\u043b\u0430\u043d \u043e\u0441\u0442\u0430\u043b\u0441\u044f Seq Scan, \u0438 \u0437\u0430\u043f\u0440\u043e\u0441 \u0441\u0442\u0430\u043b \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0435\u043c CPU (1 197 \u0441 user<\/em>time).<\/p>\n<\/li>\n<li>\n<p>\u0417\u0430\u043f\u0440\u043e\u0441\u044b \u0441 <em>InfoRg15516 \u0438 <\/em>Reference15235 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438 \u043a\u0430\u0442\u0430\u0441\u0442\u0440\u043e\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u043e\u0441\u0442: \u043f\u0440\u0438 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u043e\u043c Seq Scan \u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0437\u043b\u0435\u0442\u0435\u043b\u043e \u0441 0,33 \u0441 \u0434\u043e 20,9 \u0441 \u0438 \u0441 37 \u043c\u0441 \u0434\u043e 23,7 \u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u2014 \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0430\u0442\u043d\u044b\u0439 \u0440\u043e\u0441\u0442 \u043e\u0431\u044a\u0451\u043c\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u043f\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u0443\u0435\u043c\u044b\u043c \u043f\u043e\u043b\u044f\u043c.<\/p>\n<\/li>\n<\/ul>\n<h3>\u041e\u0436\u0438\u0434\u0430\u043d\u0438\u044f I\/O\u00a0:<\/h3>\n<p><a href=\"https:\/\/dzen.ru\/a\/aehpRAocbHFovgaD?share_to=link\" rel=\"noopener noreferrer nofollow\">\u0421\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 &#171;Top SQL by I\/O wait time&#187;<\/a><\/p>\n<p>\u0418\u0437 12 \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 11 \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0440\u043e\u0441\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 DataFileRead \u043e\u0442 1,6 \u0434\u043e 32 \u0440\u0430\u0437 \u043f\u0440\u0438 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0441\u043d\u0438\u0437\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430\u0445 \u0432\u044b\u0437\u043e\u0432\u043e\u0432.<\/p>\n<p><strong>\u041f\u043b\u0430\u043d\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043d\u0438\u0445 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c<\/strong>.<\/p>\n<p>\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<ul>\n<li>\n<p>INSERT \u0432 _InfoRg16813: \u043f\u0440\u0438 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u0438 \u0447\u0438\u0441\u043b\u0430 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u043d\u0430 12% \u043e\u0431\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u0440\u043e\u0441\u043b\u043e \u0432 2,5 \u0440\u0430\u0437\u0430, \u0430 \u0432\u0440\u0435\u043c\u044f I\/O \u2014 \u0441 27,4 \u0441 \u0434\u043e 84,2 \u0441;<\/p>\n<\/li>\n<li>\n<p>INSERT \u0432 _InfoRg12488: \u043e\u0431\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u0440\u043e\u0441\u043b\u043e \u0432 5 \u0440\u0430\u0437 (\u0441 4,5 \u0441 \u0434\u043e 22,9 \u0441) \u043f\u0440\u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0432\u044b\u0437\u043e\u0432\u043e\u0432;<\/p>\n<\/li>\n<li>\n<p>SELECT \u0438\u0437 <em>Reference109 \u043f\u043e \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u043c\u0443 \u043a\u043b\u044e\u0447\u0443: \u0432 \u043d\u043e\u0432\u043e\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f \u043d\u0430 \u043c\u0435\u043d\u0435\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 (<\/em>reference109_no_pkey \u0432\u043c\u0435\u0441\u0442\u043e <em>reference109ng<\/em>pkey1), \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u043b\u043e \u043a \u0440\u043e\u0441\u0442\u0443 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 \u0441 2 292 \u0434\u043e 34 526 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 I\/O \u0441 0,11 \u0441 \u0434\u043e 28,49 \u0441.<\/p>\n<\/li>\n<\/ul>\n<p>\u041b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441 (SELECT \u0438\u0437 _InfoRg13163) \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u0438 \u2014 \u043e\u043d \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043b\u0441\u044f \u0438\u0437 \u043a\u0435\u0448\u0430 (I\/O time = 0 \u0432 \u043e\u0431\u043e\u0438\u0445 \u043f\u0435\u0440\u0438\u043e\u0434\u0430\u0445).<\/p>\n<h3>\u0412\u044b\u0432\u043e\u0434 (\u0423\u0440\u043e\u0432\u0435\u043d\u044c\u20111):<\/h3>\n<p><strong>\ufe0f\u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u0444\u0430\u043a\u0442\u043e\u0440 \u0437\u0430\u043c\u0435\u0434\u043b\u0435\u043d\u0438\u044f \u2014 \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0430\u0442\u043d\u044b\u0439 \u0440\u043e\u0441\u0442 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0447\u0442\u0435\u043d\u0438\u0439 \u0441 \u0434\u0438\u0441\u043a\u0430<\/strong>. \u041f\u043b\u0430\u043d\u044b \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c, \u0437\u043d\u0430\u0447\u0438\u0442, \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u043d\u0435 \u0432 \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440\u0430, \u0430 \u0432 \u0438\u0437\u043c\u0435\u043d\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.<\/p>\n<p><strong>\u041d\u043e \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u043b\u0430\u043d\u044b \u00ab\u043f\u043e\u043f\u043b\u044b\u043b\u0438\u00bb \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432?<\/strong><\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442 \u0434\u0430\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u0442\u0430\u043f.<\/strong><\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D1%87%D0%B0%D1%81%D1%82%D1%8C3\" id=\"\u0447\u0430\u0441\u0442\u044c3\"><\/a><\/p>\n<h2>\u0413\u043b\u0430\u0432\u0430 3. \u041f\u043e\u0432\u043e\u0440\u043e\u0442\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442: +3300% \u0441\u0431\u0440\u043e\u0441\u043e\u0432 \u043a\u044d\u0448\u0430 \u2014 \u043a\u043b\u044e\u0447 \u043a \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0443<\/h2>\n<p><a href=\"https:\/\/dzen.ru\/a\/aemQjypzFgQO-Qj8?share_to=link\" rel=\"noopener noreferrer nofollow\">\u0418\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u00abLoad distribution among heavily loaded databases\u00bb<\/a>\u00a0\u0432\u0441\u043a\u0440\u044b\u043b\u043e \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p><strong>\ufe0f\u0421\u0447\u0451\u0442\u0447\u0438\u043a cache_resets (\u0441\u0431\u0440\u043e\u0441\u043e\u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u043e\u0433\u043e \u043a\u0435\u0448\u0430) \u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 pgpro_stats_totals \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0441\u044f \u0441 1 \u0434\u043e 34 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0437\u0430 \u0447\u0430\u0441 \u2014 \u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0430 3300%.<\/strong><\/p>\n<p><strong>\u041e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e<\/strong>:<\/p>\n<ul>\n<li>\n<p>\u0432\u0440\u0435\u043c\u044f \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430 (I\/O time) \u0432\u044b\u0440\u043e\u0441\u043b\u043e \u043d\u0430 2310%;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0431\u044a\u0451\u043c \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0447\u0442\u0435\u043d\u0438\u0439 (Shared blocks read) \u2014 \u043d\u0430 248%;<\/p>\n<\/li>\n<li>\n<p>\u043e\u0431\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f (Total time) \u2014 \u043d\u0430 536% \u043f\u0440\u0438 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u0438 \u0447\u0438\u0441\u043b\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 10%.<\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u0435\u0442\u0440\u0438\u043a\u0430\u00a0<a href=\"https:\/\/dzen.ru\/a\/aalAOyNQcEMGBEgY\" rel=\"noopener noreferrer nofollow\">cache_resets<\/a>\u00a0\u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043a\u0435\u0448\u0430 \u043f\u043b\u0430\u043d\u043e\u0432 (\u0438\/\u0438\u043b\u0438 \u0431\u0443\u0444\u0435\u0440\u043e\u0432), \u0432\u044b\u0437\u0432\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u043a\u0438\u043c\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c\u0438, \u043a\u0430\u043a DISCARD ALL, ALTER SYSTEM, SET, DDL-\u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438\u043b\u0438 \u0430\u0432\u0430\u0440\u0438\u0439\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0438 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432. \u041a\u0430\u0436\u0434\u044b\u0439 \u0442\u0430\u043a\u043e\u0439 \u0441\u0431\u0440\u043e\u0441 \u043e\u0431\u043d\u0443\u043b\u044f\u0435\u0442 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u0437\u0430\u043d\u043e\u0432\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u043b\u0430\u043d\u044b, \u0447\u0430\u0441\u0442\u043e \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.<\/p>\n<p>\u0412\u043e\u0437\u043d\u0438\u043a\u043b\u0430\u00a0<strong>\u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0430 <\/strong>: \u0447\u0442\u043e-\u0442\u043e \u0432 \u043d\u043e\u0432\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u0442\u0435\u0440\u044f\u0442\u044c \u043a\u0435\u0448 \u043f\u043b\u0430\u043d\u043e\u0432.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D1%87%D0%B0%D1%81%D1%82%D1%8C4\" id=\"\u0447\u0430\u0441\u0442\u044c4\"><\/a><\/p>\n<h2>\u0413\u043b\u0430\u0432\u0430 4. \u0414\u0432\u043e\u0439\u043d\u0430\u044f \u0432\u0435\u0440\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f: \u043a\u0430\u043a \u0442\u0430\u043d\u0434\u0435\u043c autoprepare_threshold \u0438 online_analyze \u043c\u0435\u0442\u043e\u0434\u0438\u0447\u043d\u043e \u0432\u044b\u043c\u044b\u0432\u0430\u0435\u0442 \u043a\u044d\u0448 \u043f\u043b\u0430\u043d\u043e\u0432<\/h2>\n<p><a href=\"https:\/\/dzen.ru\/a\/aeoTKxDwuXhPj47W?share_to=link\" rel=\"noopener noreferrer nofollow\">\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u0430\u0440\u044b\u043c \u0438 \u043d\u043e\u0432\u044b\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0430\u043c\u0438<\/a>\u00a0\u0432\u044b\u044f\u0432\u0438\u043b\u043e \u0442\u0440\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u043e\u0442\u043b\u0438\u0447\u0438\u044f, \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u044f \u0443\u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445:<\/p>\n<ul>\n<li>\n<p><strong>autoprepare_threshold<\/strong>:\u00a0<strong>0 \u2192 2<\/strong>\u00a0(\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043e\u0431\u0449\u0438\u0445 \u043f\u043b\u0430\u043d\u043e\u0432);<\/p>\n<\/li>\n<li>\n<p><strong>online_analyze.enable<\/strong>:\u00a0<strong>on \u2192 off<\/strong>\u00a0(\u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u043f\u0440\u0438 DML-\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445);<\/p>\n<\/li>\n<li>\n<p><strong>generic_plan_fuzz_factor<\/strong>:\u00a0<strong>1 \u2192 0.9<\/strong>.<\/p>\n<\/li>\n<\/ul>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u0438\u0445 \u043f\u0440\u0438\u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u044c, \u0431\u044b\u043b \u043f\u0440\u043e\u0432\u0435\u0434\u0451\u043d \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u2014 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0<strong>DeepSeek<\/strong>\u00a0\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438 \u00ab<strong>Ask Postgres<\/strong>\u00bb.<\/p>\n<p><strong>\u041e\u0431\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043f\u0440\u0438\u0448\u043b\u0438 \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0438 \u0442\u043e\u043c\u0443 \u0436\u0435 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0443<\/strong>:<\/p>\n<ol>\n<li>\n<p>\u041f\u0440\u0438\u00a0<strong>autoprepare_threshold = 2<\/strong>\u00a0\u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0449\u0438\u0435 (generic) \u043f\u043b\u0430\u043d\u044b \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 (\u0431\u044d\u043a\u0435\u043d\u0434\u0430) \u2014 \u043f\u043e\u0441\u043b\u0435 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u0430\u043c\u0438. \u041f\u0440\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438 0 \u043a\u0435\u0448 \u0431\u044b\u043b \u043f\u0443\u0441\u0442, \u0438 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0442\u044c \u0431\u044b\u043b\u043e \u043d\u0435\u0447\u0435\u0433\u043e.<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u0438\u00a0<strong>online_analyze.enable = off<\/strong>\u00a0\u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0442\u0430\u0431\u043b\u0438\u0446 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u043d\u0435\u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u043f\u043e\u0441\u043b\u0435 INSERT\/UPDATE\/DELETE. \u0422\u0435\u043f\u0435\u0440\u044c \u043e\u043d\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u043e\u043d\u043e\u0432\u044b\u043c autovacuum, \u043f\u0440\u0438\u0447\u0451\u043c \u043c\u0430\u0441\u0441\u043e\u0432\u043e \u2014 \u043a\u043e\u0433\u0434\u0430 \u043d\u0430\u043a\u0430\u043f\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0440\u043e\u0433 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439 (\u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e 10% \u0442\u0430\u0431\u043b\u0438\u0446\u044b + 50 \u0441\u0442\u0440\u043e\u043a). \u041a\u0430\u0436\u0434\u044b\u0439 \u0442\u0430\u043a\u043e\u0439 ANALYZE \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0433\u043e \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 pg_statistic, \u0447\u0442\u043e \u0434\u043b\u044f PostgreSQL \u0441\u043b\u0443\u0436\u0438\u0442 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u043c\u00a0<strong>\u0438\u043d\u0432\u0430\u043b\u0438\u0434\u0430\u0446\u0438\u0438 \u0432\u0441\u0435\u0445 \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u043b\u0430\u043d\u043e\u0432<\/strong>, \u0437\u0430\u0432\u0438\u0441\u044f\u0449\u0438\u0445 \u043e\u0442 \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446. \u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043a\u0435\u0448, \u043d\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0439 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f autoprepare_threshold, \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0447\u0438\u0449\u0430\u0435\u0442\u0441\u044f \u2014 \u043e\u0442\u0441\u044e\u0434\u0430 \u0438 \u0432\u0437\u0440\u044b\u0432\u043d\u043e\u0439 \u0440\u043e\u0441\u0442 cache_resets.<\/p>\n<\/li>\n<li>\n<p><strong>generic_plan_fuzz_factor = 0.9<\/strong>\u00a0\u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u00ab\u0434\u043e\u043f\u0443\u0441\u043a\u00bb \u043f\u0440\u0438 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0431\u0449\u0435\u0433\u043e \u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u043b\u0430\u043d\u043e\u0432, \u0434\u0435\u043b\u0430\u044f \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0431\u043e\u043b\u0435\u0435 \u043a\u043e\u043d\u0441\u0435\u0440\u0432\u0430\u0442\u0438\u0432\u043d\u044b\u043c. \u0412 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0438 \u0441 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0435\u0439 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u043e\u0439 \u044d\u0442\u043e \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u043a \u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u043e\u0432\u044b\u0439 \u043f\u043b\u0430\u043d \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043f\u043e\u043b\u043d\u044b\u0439 \u0441\u0431\u0440\u043e\u0441 \u043a\u0435\u0448\u0430.<\/p>\n<\/li>\n<\/ol>\n<p>\ufe0f\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u0430\u0432\u0442\u043e\u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u043b\u0430 \u0441\u0430\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0434\u043b\u044f \u0441\u0431\u0440\u043e\u0441\u043e\u0432, \u0430 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 online_analyze \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u043b\u043e \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u0442\u0440\u0438\u0433\u0433\u0435\u0440 \u0434\u043b\u044f \u043d\u0438\u0445.<\/p>\n<p><strong>\u041d\u043e \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0441\u044f \u0432\u043e\u043f\u0440\u043e\u0441:<\/strong> \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u043e\u0441\u043b\u0435 \u0441\u0431\u0440\u043e\u0441\u0430 \u043a\u0435\u0448\u0430 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0441\u0442\u0430\u043b \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0437\u0430\u0432\u0435\u0434\u043e\u043c\u043e \u043d\u0435\u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f?<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442 \u043d\u0430\u0448\u0451\u043b\u0441\u044f \u0432 \u0435\u0449\u0451 \u043e\u0434\u043d\u043e\u043c \u043d\u043e\u0432\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0435 PostgreSQL 17.<\/strong><\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D1%87%D0%B0%D1%81%D1%82%D1%8C5\" id=\"\u0447\u0430\u0441\u0442\u044c5\"><\/a><\/p>\n<h2>\u0413\u043b\u0430\u0432\u0430 5. \u041f\u0440\u043e\u0440\u044b\u0432: planner_upper_limit_estimation = on \u2014 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u0438\u043d\u043e\u0432\u043d\u0438\u043a Seq Scan \u0438 \u043b\u0430\u0432\u0438\u043d\u044b \u0447\u0442\u0435\u043d\u0438\u0439<\/h2>\n<p><strong>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 planner_upper_limit_estimation (boolean), \u043f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0439\u0441\u044f \u0432 Postgres Pro 17, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0440\u0430\u0432\u0435\u043d off. \u041e\u0434\u043d\u0430\u043a\u043e \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435 \u0430\u043f\u0433\u0440\u0435\u0439\u0434\u0430 \u043e\u043d \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0432\u043a\u043b\u044e\u0447\u0451\u043d (on)<\/strong>.<\/p>\n<p>\u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043e\u043d \u00ab\u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0437\u0430\u0432\u044b\u0448\u0430\u0442\u044c \u043e\u0446\u0435\u043d\u043a\u0443 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u0441\u0442\u0440\u043e\u043a \u0432 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u0445, \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0449\u0438\u0445 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441 \u043d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e\u0439 \u043a\u043e\u043d\u0441\u0442\u0430\u043d\u0442\u043e\u0439\u00bb.<\/p>\n<p>\u041f\u0440\u043e\u0449\u0435 \u0433\u043e\u0432\u043e\u0440\u044f, \u0434\u043b\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u0439, \u043f\u043e \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043d\u0435\u0442 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438, \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u043b \u043f\u043e\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u044b\u0439 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442, \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0437\u0430\u043d\u0438\u0436\u0430\u044f \u0441\u0435\u043b\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c.<\/p>\n<p>\ufe0f\u0414\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432\u043b\u0438\u044f\u043d\u0438\u044f \u0431\u044b\u043b\u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u043d\u0430\u0442\u0443\u0440\u043d\u044b\u0435 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u044b :<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/aeo7DE7waHvUwsNh?share_to=link\" rel=\"noopener noreferrer nofollow\">Upgrade PostgreSQL 15\u219217: \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430 cache_resets &#8212; planner_upper_limit_estimation = on<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/aesYS-VHcgdJIXFR?share_to=link\" rel=\"noopener noreferrer nofollow\">Upgrade PostgreSQL 15\u219217: \u0410\u043d\u0430\u043b\u0438\u0437 \u043f\u043b\u0430\u043d\u043e\u0432 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0438 planner_upper_limit_estimation = on\/off<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/aetZiibA2FxPhNMW?share_to=link\" rel=\"noopener noreferrer nofollow\">Upgrade PostgreSQL 15\u219217 : \u0413\u0438\u043f\u043e\u0442\u0435\u0437\u0430 \u043e \u0432\u043b\u0438\u044f\u043d\u0438\u0438 planner_upper_limit_estimation<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043b\u0438 (off) \u0438 \u0441\u043d\u044f\u043b\u0438 \u0434\u0432\u0430 \u043d\u043e\u0432\u044b\u0445 \u0447\u0430\u0441\u043e\u0432\u044b\u0445 \u043e\u0442\u0447\u0451\u0442\u0430 (\u043f\u0435\u0440\u0438\u043e\u0434\u044b 69\u201371 \u0438 74\u201376).<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/fab\/140\/95a\/fab14095a182d74cbdacc44c80949e55.png\" alt=\"\u0420\u0438\u0441.3\u00a0\u0413\u0440\u0430\u0444\u0438\u043a\u0438 \u043c\u0435\u0442\u0440\u0438\u043a Zabbix: &quot;CPU iowait time&quot; \u0438 &quot;CPU Utilization&quot; - \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438 \u0421\u0423\u0411\u0414 \u043f\u0440\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u00a0planner_upper_limit_estimation  \" title=\"\u0420\u0438\u0441.3\u00a0\u0413\u0440\u0430\u0444\u0438\u043a\u0438 \u043c\u0435\u0442\u0440\u0438\u043a Zabbix: &quot;CPU iowait time&quot; \u0438 &quot;CPU Utilization&quot; - \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438 \u0421\u0423\u0411\u0414 \u043f\u0440\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u00a0planner_upper_limit_estimation  \" width=\"1200\" height=\"258\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/getpro\/habr\/upload_files\/fab\/140\/95a\/fab14095a182d74cbdacc44c80949e55.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/getpro\/habr\/upload_files\/fab\/140\/95a\/fab14095a182d74cbdacc44c80949e55.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/p>\n<div><figcaption><strong>\u0420\u0438\u0441.3\u00a0<\/strong>\u0413\u0440\u0430\u0444\u0438\u043a\u0438 \u043c\u0435\u0442\u0440\u0438\u043a Zabbix: &#171;CPU iowait time&#187; \u0438 &#171;CPU Utilization&#187; &#8212; \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438 \u0421\u0423\u0411\u0414 \u043f\u0440\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u00a0<strong>planner_upper_limit_estimation<\/strong>  <\/figcaption><\/div>\n<\/figure>\n<p><strong>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u0440\u0435\u0432\u0437\u043e\u0448\u043b\u0438 \u0432\u0441\u0435 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f:<\/strong><\/p>\n<ul>\n<li>\n<p><strong>Total time<\/strong>\u00a0\u2014 \u0441 76 563 \u0441 \u0434\u043e 19 963 \u0441 (\u201373,9%);<\/p>\n<\/li>\n<li>\n<p><strong>I\/O time<\/strong>\u00a0\u2014 \u0441 45 356 \u0441 \u0434\u043e 7 962 \u0441 (\u201382,4%);<\/p>\n<\/li>\n<li>\n<p><strong>Blocks fetched<\/strong>\u00a0\u2014 \u0441 4,36 \u043c\u043b\u0440\u0434 \u0434\u043e 2,04 \u043c\u043b\u0440\u0434 (\u201353,1%);<\/p>\n<\/li>\n<li>\n<p><strong>Shared blocks read<\/strong>\u00a0\u2014 \u0441 532 \u043c\u043b\u043d \u0434\u043e 155 \u043c\u043b\u043d (\u201370,9%);<\/p>\n<\/li>\n<li>\n<p><strong>Cache resets<\/strong>\u00a0\u2014 \u0441 289 \u0434\u043e 10 (\u201396,5%);<\/p>\n<\/li>\n<li>\n<p><strong>Executed count<\/strong>\u00a0\u2014 \u0441 11,95 \u043c\u043b\u043d \u0434\u043e 13,43 \u043c\u043b\u043d (+12,4%).<\/p>\n<\/li>\n<\/ul>\n<p><strong>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043f\u043b\u0430\u043d\u043e\u0432 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e:<\/strong>\u00a0\u043f\u0440\u0438 on \u0434\u043b\u044f \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0433\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043a _InfoRg12488 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f Seq Scan, \u0430 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0432 off \u2014 Bitmap Heap Scan \u0438 Index Scan. \u0414\u043e\u043b\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0439 \u0432 \u043e\u0431\u0449\u0435\u043c \u0447\u0438\u0441\u043b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0441\u043d\u0438\u0437\u0438\u043b\u0430\u0441\u044c \u0441 19,2% \u0434\u043e 16,5%. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u043d\u044b\u0445 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0439 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c, \u0437\u0430\u0442\u043e \u0440\u0435\u0437\u043a\u043e \u0443\u043f\u0430\u043b\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u0440\u043e\u043a, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0445 \u0447\u0435\u0440\u0435\u0437 \u0438\u043d\u0434\u0435\u043a\u0441\u044b (IxFet \u2014 \u043d\u0430 43,9%). \u042d\u0442\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u043b\u043e, \u0447\u0442\u043e \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0441\u0442\u0430\u043b \u0442\u043e\u0447\u043d\u0435\u0435 \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0438 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u043e\u0442 \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u044b\u0445 \u0447\u0442\u0435\u043d\u0438\u0439.<\/p>\n<p><strong>\u0412\u044b\u0432\u043e\u0434 (\u0423\u0440\u043e\u0432\u0435\u043d\u044c\u20111):<\/strong>\u00a0<strong>planner_upper_limit_estimation = on \u0431\u044b\u043b \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u0432\u0438\u043d\u043e\u0432\u043d\u0438\u043a\u043e\u043c \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u0438.\u00a0<\/strong>\u041e\u043d \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u043b \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0434\u043e\u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u0441\u0435\u043b\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0443\u0441\u043b\u043e\u0432\u0438\u0439 \u0431\u0435\u0437 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438, \u0432\u044b\u0431\u0438\u0440\u0430\u044f \u043d\u0435\u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>\u0412 \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0438 \u0441 \u0447\u0430\u0441\u0442\u044b\u043c\u0438 \u0441\u0431\u0440\u043e\u0441\u0430\u043c\u0438 \u043a\u0435\u0448\u0430 (\u0438\u0437-\u0437\u0430 autoprepare_threshold \u0438 online_analyze) \u044d\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b\u043e \u043f\u043e\u0440\u043e\u0447\u043d\u044b\u0439 \u043a\u0440\u0443\u0433:\u00a0<strong>\u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0442\u0435\u0440\u044f\u043b\u0430\u0441\u044c \u2192 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u043e\u0448\u0438\u0431\u0430\u043b\u0441\u044f \u2192 \u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0438\u0442\u0430\u043b\u0438\u0441\u044c \u0441 \u0434\u0438\u0441\u043a\u0430 \u2192 \u043a\u0435\u0448 \u0432\u044b\u043c\u044b\u0432\u0430\u043b\u0441\u044f \u0435\u0449\u0451 \u0431\u044b\u0441\u0442\u0440\u0435\u0435.<\/strong><\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D1%87%D0%B0%D1%81%D1%82%D1%8C6\" id=\"\u0447\u0430\u0441\u0442\u044c6\"><\/a><\/p>\n<h2>\u0413\u043b\u0430\u0432\u0430 6. \u0412\u0442\u043e\u0440\u0430\u044f \u0432\u043e\u043b\u043d\u0430: hit ratio \u0440\u0443\u0445\u043d\u0443\u043b \u0441 95% \u0434\u043e 86% \u0431\u0435\u0437 \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u2014 shared_buffers \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f<\/h2>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043e\u0441\u0442\u0440\u0430\u044f \u0444\u0430\u0437\u0430 \u0431\u044b\u043b\u0430 \u0441\u043d\u044f\u0442\u0430, \u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0432\u043d\u043e\u0432\u044c \u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0430\u043d\u043e\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0443\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0434\u0438\u0441\u043a\u0430:<\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/aezXsvXggFe1yRPp?share_to=link\" rel=\"noopener noreferrer nofollow\">Upgrade PostgreSQL 15\u219217: \u043a\u0430\u043a \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 online_analyze \u0438 \u0441\u0431\u0440\u043e\u0441\u044b \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u043e\u0431\u0440\u0443\u0448\u0438\u043b\u0438 \u043a\u044d\u0448-\u0445\u0438\u0442 \u0438 \u043f\u043e\u0440\u043e\u0434\u0438\u043b\u0438 Seq Scan<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/afB6YjXdaEJBhzMU?share_to=link\" rel=\"noopener noreferrer nofollow\">PostgreSQL + DeepSeek: \u043a\u0430\u043a \u0430\u043d\u0430\u043b\u0438\u0437 hit ratio \u0438 wait events \u0440\u0430\u0441\u043a\u0440\u044b\u043b \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u0430\u043d\u043e\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0438\u0441\u043a\u0430<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u0432 165\u2013166 \u0438 170\u2013171 (\u0443\u0436\u0435 \u043d\u0430 PG 17 \u0441 planner_upper_limit_estimation = off) \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e \u0438\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443: \u043f\u0440\u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e\u00a0<strong>\u0438\u0434\u0435\u043d\u0442\u0438\u0447\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<\/strong>\u00a0\u0438\u00a0<strong>\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0445 \u043f\u043b\u0430\u043d\u0430\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432<\/strong>\u00a0(12 \u0438\u0437 13 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u043f\u043b\u0430\u043d\u044b) \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u043b\u043e\u0441\u044c:<\/p>\n<ul>\n<li>\n<p><strong>Hit ratio \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430<\/strong>\u00a0\u0443\u043f\u0430\u043b \u0441 95,2% \u0434\u043e 86,3% (\u043d\u0430 DB\u20114 \u2014 \u0441 95,1% \u0434\u043e 86,2%);<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0436\u0438\u0434\u0430\u043d\u0438\u044f DataFileRead<\/strong>\u00a0\u0432\u044b\u0440\u043e\u0441\u043b\u0438 \u0432 3,9 \u0440\u0430\u0437\u0430 \u0438 \u0441\u0442\u0430\u043b\u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c 63,8% \u0432\u0441\u0435\u0445 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0439 (5 828 \u0441 \u043f\u0440\u043e\u0442\u0438\u0432 1 479 \u0441);<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0436\u0438\u0434\u0430\u043d\u0438\u044f BufferIo<\/strong>\u00a0(\u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u044f \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u0437\u0430 \u043e\u0434\u043d\u0438 \u0438 \u0442\u0435 \u0436\u0435 \u0431\u0443\u0444\u0435\u0440\u043d\u044b\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b) \u0432\u0437\u043b\u0435\u0442\u0435\u043b\u0438\u00a0<strong>\u0432 126 \u0440\u0430\u0437<\/strong>\u00a0(\u0441 2,75 \u0441 \u0434\u043e 347,9 \u0441);<\/p>\n<\/li>\n<li>\n<p><strong>\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432<\/strong>\u00a0\u0432\u044b\u0440\u043e\u0441\u043b\u043e \u043d\u0430 39% (\u0441 4,74 \u043c\u043b\u043d \u0434\u043e 6,61 \u043c\u043b\u043d), \u0430\u00a0<strong>\u043e\u0431\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f<\/strong>\u00a0\u2014 \u0432 4,3 \u0440\u0430\u0437\u0430 (\u0441 6 228 \u0441 \u0434\u043e 26 856 \u0441);<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0431\u044a\u0451\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432<\/strong>\u00a0(Temp blocks written) \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0441\u044f \u043d\u0430 82%.<\/p>\n<\/li>\n<\/ul>\n<p>\u0420\u0430\u0437\u043c\u0435\u0440\u00a0<strong>shared_buffers<\/strong>\u00a0\u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0441\u044f \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u044b\u043c \u2014 \u043e\u043a\u043e\u043b\u043e 12,3 \u0413\u0411. \u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u044b\u0440\u043e\u0441 \u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u043f\u043e\u043c\u0435\u0449\u0430\u0442\u044c\u0441\u044f \u0432 \u0431\u0443\u0444\u0435\u0440\u043d\u044b\u0439 \u043a\u0435\u0448, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u043b\u043e \u043a \u043c\u0430\u0441\u0441\u043e\u0432\u043e\u043c\u0443 \u0432\u044b\u0442\u0435\u0441\u043d\u0435\u043d\u0438\u044e \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0438 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0447\u0442\u0435\u043d\u0438\u044e \u0441 \u0434\u0438\u0441\u043a\u0430.<\/p>\n<p>\ufe0f<strong>\u041f\u043b\u0430\u043d\u044b \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c \u2014 \u0437\u0430\u043c\u0435\u0434\u043b\u0435\u043d\u0438\u0435 \u0431\u044b\u043b\u043e \u0432\u044b\u0437\u0432\u0430\u043d\u043e \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u043e\u0439 \u0431\u0443\u0444\u0435\u0440\u043d\u043e\u0433\u043e \u043f\u0443\u043b\u0430.<\/strong><\/p>\n<p>\u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u00a0<strong>work_mem<\/strong>\u00a0\u0432 32 \u041c\u0411 \u043f\u0440\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0439 1 000( \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b \u0440\u0438\u0441\u043a, \u0447\u0442\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u043e\u0440\u0442\u0438\u0440\u043e\u0432\u043e\u043a \u0438 \u0445\u0435\u0448-\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u0431\u0443\u0434\u0443\u0442 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0434\u0438\u0441\u043a \u0432\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b. \u0420\u043e\u0441\u0442 Temp blocks written \u043d\u0430 82% \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u043b \u044d\u0442\u0443 \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0443.<\/p>\n<p>\u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c,\u00a0<strong>\u0432\u0442\u043e\u0440\u0430\u044f \u0432\u043e\u043b\u043d\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0438\u043c\u0435\u043b\u0430 \u043f\u0440\u0438\u043d\u0446\u0438\u043f\u0438\u0430\u043b\u044c\u043d\u043e \u0438\u043d\u0443\u044e \u043f\u0440\u0438\u0440\u043e\u0434\u0443: \u043d\u0435 \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430, \u0430 \u0438\u0441\u0442\u043e\u0449\u0435\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043f\u0440\u0438 \u0440\u043e\u0441\u0442\u0435 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438.<\/strong><\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D0%B2%D1%80%D0%B5%D0%B7%D0%BA%D0%B0\" id=\"\u0432\u0440\u0435\u0437\u043a\u0430\"><\/a><\/p>\n<h2>\u041a\u0430\u043a \u043e\u0434\u043d\u0430 \u0444\u0440\u0430\u0437\u0430 \u0432 \u043f\u0440\u043e\u043c\u043f\u0442\u0435 \u043a DeepSeek \u0447\u0443\u0442\u044c \u043d\u0435 \u0443\u0432\u0435\u043b\u0430 \u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443<\/h2>\n<p><strong>\u041e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u0437\u0430\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u0431\u043e\u0447\u043d\u043e\u0435, \u043d\u043e \u0432\u0430\u0436\u043d\u043e\u0435 \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435:<\/strong><\/p>\n<ul>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/ae29nB5RWVEyTJkc?share_to=link\" rel=\"noopener noreferrer nofollow\">\u0410\u043d\u0430\u043b\u0438\u0437 \u043f\u043b\u0430\u043d\u043e\u0432 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f SQL \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 PostgreSQL \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e DeepSeek \u0438 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438: \u043a\u0435\u0439\u0441 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044f hit ratio \u0441 93,5% \u0434\u043e 81,8%<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/ae-JLP5i92eWgRwV?share_to=link\" rel=\"noopener noreferrer nofollow\">DeepSeek + PostgreSQL: \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043c\u0430\u043b\u0430\u044f \u043f\u0440\u0430\u0432\u043a\u0430 \u0432 \u043f\u0440\u043e\u043c\u043f\u0442\u0435 \u043c\u0435\u043d\u044f\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u044e \u043f\u043b\u0430\u043d\u043e\u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438<\/a>\u00a0).<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u043b\u0438\u044f\u043d\u0438\u0435 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0438 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0439 \u0434\u043b\u044f \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438 DeepSeek \u043d\u0430 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0430\u043d\u0430\u043b\u0438\u0437\u0430. \u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u043b\u0438\u0441\u044c \u0434\u0432\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u043f\u0440\u043e\u043c\u043f\u0442\u0430:<\/p>\n<ul>\n<li>\n<p><strong>v1:<\/strong>\u00a0\u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043b\u0430 \u0436\u0451\u0441\u0442\u043a\u043e\u0435 \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u0438\u0435 \u00ab<strong>\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043a\u0430\u0440\u0434\u0438\u043d\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0441\u044f<\/strong>\u00bb;<\/p>\n<\/li>\n<li>\n<p><strong>v2:<\/strong>\u00a0\u0431\u0435\u0437 \u0442\u0430\u043a\u043e\u0433\u043e \u0434\u043e\u043f\u0443\u0449\u0435\u043d\u0438\u044f, \u0431\u043e\u043b\u0435\u0435 \u043d\u0435\u0439\u0442\u0440\u0430\u043b\u044c\u043d\u0430\u044f.<\/p>\n<\/li>\n<\/ul>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438, \u0447\u0442\u043e\u00a0<strong>v1<\/strong>\u00a0\u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043a\u043b\u043e\u043d\u044f\u043b \u043c\u043e\u0434\u0435\u043b\u044c \u043a \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u044e \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0432\u044b\u0434\u0432\u0438\u043d\u0443\u0442\u043e\u0439 \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u044b, \u0438\u0433\u043d\u043e\u0440\u0438\u0440\u0443\u044f \u0438\u043b\u0438 \u043f\u0440\u0438\u043d\u0438\u0436\u0430\u044f \u0430\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u043e\u0431\u044a\u044f\u0441\u043d\u0435\u043d\u0438\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 _InfoRg13163\u00a0<strong>\u043e\u0442\u0447\u0451\u0442 v1<\/strong>\u00a0\u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u043b \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u0430\u043a \u0443\u043c\u0435\u0440\u0435\u043d\u043d\u043e\u0435 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0435, \u0432 \u0442\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u043a\u00a0<strong>v2<\/strong>\u00a0\u0437\u0430\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043b, \u0447\u0442\u043e Seq Scan, \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0432\u0448\u0438\u0439 \u0432 \u0441\u0442\u0430\u0440\u043e\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0435, \u0438\u0441\u0447\u0435\u0437 \u0432 \u043d\u043e\u0432\u043e\u043c \u2014 \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u043b\u0430\u043d \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0443\u043b\u0443\u0447\u0448\u0438\u043b\u0441\u044f, \u043d\u043e\u00a0<strong>v1<\/strong>\u00a0\u044d\u0442\u043e\u0433\u043e \u043d\u0435 \u043e\u0442\u043c\u0435\u0442\u0438\u043b, \u0444\u043e\u043a\u0443\u0441\u0438\u0440\u0443\u044f\u0441\u044c \u043d\u0430 \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0438 \u043e\u0431\u0449\u0435\u0439 \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u0438.<\/p>\n<p><strong>\u0412\u044b\u0432\u043e\u0434<\/strong>: \u043f\u0440\u0430\u0439\u043c\u0438\u043d\u0433-\u044d\u0444\u0444\u0435\u043a\u0442 \u0440\u0435\u0430\u043b\u0435\u043d, \u0438 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0418\u0418-\u0430\u0441\u0441\u0438\u0441\u0442\u0435\u043d\u0442\u043e\u0432 \u0432 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0432\u0430\u0436\u043d\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u043c\u043f\u0442\u044b \u043d\u0430 \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u043e\u0441\u0442\u044c \u0438 \u0438\u0437\u0431\u0435\u0433\u0430\u0442\u044c \u043d\u0435\u044f\u0432\u043d\u044b\u0445 \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0439.<\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D1%87%D0%B0%D1%81%D1%82%D1%8C7\" id=\"\u0447\u0430\u0441\u0442\u044c7\"><\/a><\/p>\n<h2>\u0413\u043b\u0430\u0432\u0430 7. \u0418\u0442\u043e\u0433\u0438: \u0434\u0432\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u2014 \u043e\u0434\u0438\u043d \u0447\u0435\u043a-\u043b\u0438\u0441\u0442 \u0434\u043b\u044f DBA<\/h2>\n<p>\u0420\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e, \u0447\u0442\u043e \u0430\u043d\u043e\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u0438\u0441\u043a\u043e\u0432\u0430\u044f \u0443\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u043f\u043e\u0441\u043b\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0431\u044b\u043b\u0430 \u0432\u044b\u0437\u0432\u0430\u043d\u0430\u00a0<strong>\u0434\u0432\u0443\u043c\u044f \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u043c\u0438, \u043d\u043e \u043d\u0430\u043b\u043e\u0436\u0438\u0432\u0448\u0438\u043c\u0438\u0441\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c\u0438<\/strong>.<\/p>\n<h3>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 1: \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 (\u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0430\u043f\u0433\u0440\u0435\u0439\u0434\u0430)<\/h3>\n<p><strong>\u041a\u043e\u0440\u043d\u0435\u0432\u0430\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430:<\/strong>\u00a0<strong>planner_upper_limit_estimation = on \u2014 \u0437\u0430\u0432\u044b\u0448\u0435\u043d\u0438\u0435 \u043e\u0446\u0435\u043d\u043a\u0438 \u0441\u0435\u043b\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u0439 \u0431\u0435\u0437 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438, \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0432\u0448\u0435\u0435 \u043a \u0432\u044b\u0431\u043e\u0440\u0443 Seq Scan.<\/strong><\/p>\n<p><strong>\u0423\u0441\u0443\u0433\u0443\u0431\u043b\u044f\u044e\u0449\u0438\u0435 \u0444\u0430\u043a\u0442\u043e\u0440\u044b:<\/strong>\u00a0<strong>autoprepare_threshold = 2<\/strong>\u00a0\u0441\u043e\u0437\u0434\u0430\u043b \u043a\u0435\u0448 \u043f\u043b\u0430\u043d\u043e\u0432,\u00a0<strong>online_analyze.enable = off<\/strong>\u00a0\u0432\u044b\u0437\u044b\u0432\u0430\u043b \u043c\u0430\u0441\u0441\u043e\u0432\u044b\u0435 ANALYZE \u0438, \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, \u0447\u0430\u0441\u0442\u044b\u0435 \u0441\u0431\u0440\u043e\u0441\u044b \u044d\u0442\u043e\u0433\u043e \u043a\u0435\u0448\u0430 (cache_resets +3300%).\u00a0<strong>generic_plan_fuzz_factor = 0.9<\/strong>\u00a0\u0443\u0441\u0438\u043b\u0438\u043b \u044d\u0444\u0444\u0435\u043a\u0442.<\/p>\n<p><strong>\ufe0f\u0420\u0435\u0448\u0435\u043d\u0438\u0435:<\/strong><\/p>\n<ul>\n<li>\n<p><strong>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c planner_upper_limit_estimation = off.<\/strong><\/p>\n<\/li>\n<li>\n<p><strong>\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c online_analyze.enable<\/strong>\u00a0\u0438\u043b\u0438 \u0442\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u043e\u0440\u043e\u0433\u0438 autovacuum_analyze_scale_factor \u0438 autovacuum_analyze_threshold \u0434\u043b\u044f \u043c\u0438\u043d\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0436\u0438\u0437\u043d\u0438 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0435\u0439 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 autoprepare_threshold<\/strong>\u00a0(\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043e 10), \u0447\u0442\u043e\u0431\u044b \u0432 \u043a\u0435\u0448 \u043f\u043e\u043f\u0430\u0434\u0430\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0447\u0430\u0441\u0442\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0442\u0430\u0442\u0443\u0441:<\/strong>\u00a0\u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u043e \u043f\u0440\u044f\u043c\u044b\u043c\u0438 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u043c\u0438 (<strong>\u0423\u0440\u043e\u0432\u0435\u043d\u044c\u20111<\/strong>).<\/p>\n<\/li>\n<\/ul>\n<h3>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 2: \u0438\u0441\u0442\u043e\u0449\u0435\u043d\u0438\u0435 \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043f\u0440\u0438 \u0440\u043e\u0441\u0442\u0435 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438 (\u043e\u0442\u0441\u0440\u043e\u0447\u0435\u043d\u043d\u0430\u044f)<\/h3>\n<p><strong>\u041a\u043e\u0440\u043d\u0435\u0432\u0430\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430:<\/strong>\u00a0\u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439\u00a0<strong>shared_buffers (~12,3 \u0413\u0411) \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u0432\u043c\u0435\u0449\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445<\/strong>, \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u043b\u043e \u043a \u043f\u0430\u0434\u0435\u043d\u0438\u044e hit ratio \u0441 95,2% \u0434\u043e 86,3% \u0438 \u0432\u0437\u0440\u044b\u0432\u043d\u043e\u043c\u0443 \u0440\u043e\u0441\u0442\u0443 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0447\u0442\u0435\u043d\u0438\u0439.<\/p>\n<p><strong>\u0421\u043e\u043f\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0444\u0430\u043a\u0442\u043e\u0440\u044b:<\/strong>\u00a0<strong>work_mem<\/strong>\u00a0= 32 \u041c\u0411 \u043f\u0440\u0438 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u0438 (max_connections = 1000) \u0432\u044b\u0437\u044b\u0432\u0430\u043b \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432; \u0440\u043e\u0441\u0442 \u043e\u0431\u044a\u0451\u043c\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e WAL.<\/p>\n<p><strong>\u0420\u0435\u0448\u0435\u043d\u0438\u0435:<\/strong><\/p>\n<ul>\n<li>\n<p><strong>\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c<\/strong>\u00a0<strong>shared_buffers<\/strong>\u00a0\u0441 \u0443\u0447\u0451\u0442\u043e\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043e 24\u201336 \u0413\u0411, \u0435\u0441\u043b\u0438 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442).<\/p>\n<\/li>\n<li>\n<p><strong>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 work_mem<\/strong>\u00a0(\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0434\u043e 64\u2013128 \u041c\u0411), \u043d\u043e \u0441 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u043e\u0439 \u043e\u0446\u0435\u043d\u043a\u043e\u0439 \u043f\u0438\u043a\u043e\u0432\u043e\u0433\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438: \u043f\u0440\u0438 1 000 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 work_mem \u043d\u0430 32 \u041c\u0411 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e 32 \u0413\u0411 \u041e\u0417\u0423 \u0432 \u0445\u0443\u0434\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435. \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0437\u043c\u0430 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043f\u0443\u043b\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439.<\/p>\n<\/li>\n<li>\n<p><strong>\u0410\u043a\u0442\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c effective_cache_size\u00a0<\/strong>\u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e \u043d\u043e\u0432\u043e\u043c\u0443 shared_buffers (\u043e\u0431\u044b\u0447\u043d\u043e ~75% \u043e\u0442 \u043e\u0431\u0449\u0435\u0433\u043e \u043e\u0431\u044a\u0451\u043c\u0430 \u041e\u0417\u0423).<\/p>\n<\/li>\n<li>\n<p><strong>\u041e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 hit ratio, wait events<\/strong>\u00a0\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0434\u043b\u044f \u043f\u0440\u0435\u0434\u043e\u0442\u0432\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u0439 \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u0442\u0430\u0442\u0443\u0441:<\/strong>\u00a0<strong>hit ratio \u0438 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f<\/strong>\u00a0\u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u044b \u043f\u0440\u044f\u043c\u044b\u043c\u0438 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f\u043c\u0438 (<strong>\u0423\u0440\u043e\u0432\u0435\u043d\u044c\u20111<\/strong>);\u00a0<strong>\u0440\u043e\u043b\u044c work_mem\u00a0<\/strong>\u2014 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u0430 (<strong>\u0423\u0440\u043e\u0432\u0435\u043d\u044c\u20112<\/strong>).<\/p>\n<\/li>\n<\/ul>\n<h3>\u0412\u043c\u0435\u0441\u0442\u043e \u0437\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f: \u043f\u044f\u0442\u044c \u0443\u0440\u043e\u043a\u043e\u0432 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u044f\u0442 \u043d\u0435\u0434\u0435\u043b\u0438<\/h3>\n<ol>\n<li>\n<p><strong>\u041d\u043e\u0432\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u2014 \u0437\u043e\u043d\u0430 \u0440\u0438\u0441\u043a\u0430.<\/strong>\u00a0\u041f\u043e\u044f\u0432\u0438\u0432\u0448\u0438\u0435\u0441\u044f \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430\u00a0<strong>(planner_upper_limit_estimation)<\/strong>\u00a0<strong>\u043d\u0435 \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u00ab\u043a\u0430\u043a \u0435\u0441\u0442\u044c\u00bb<\/strong>, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043d\u044b \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0435\u0439. \u041e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u043a\u043e\u043f\u0438\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b \u0441 \u043f\u0440\u043e\u0444\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u043b\u0430\u043d\u043e\u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043c\u0435\u0442\u0440\u0438\u043a I\/O.<\/p>\n<\/li>\n<li>\n<p><strong>autoprepare_threshold \u0438 online_analyze \u2014 \u043e\u043f\u0430\u0441\u043d\u0430\u044f \u043a\u043e\u043c\u0431\u0438\u043d\u0430\u0446\u0438\u044f.<\/strong>\u00a0\u0415\u0441\u043b\u0438 \u0432\u044b \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0435 \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043e\u0431\u0449\u0438\u0445 \u043f\u043b\u0430\u043d\u043e\u0432, \u0443\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0447\u0430\u0441\u0442\u043e, \u0447\u0442\u043e\u0431\u044b \u0438\u0437\u0431\u0435\u0436\u0430\u0442\u044c \u043b\u0430\u0432\u0438\u043d\u044b cache_resets.\u00a0<strong>\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 online_analyze \u0432 \u0432\u044b\u0441\u043e\u043a\u043e\u043d\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043a\u043e\u043c\u043f\u0435\u043d\u0441\u0430\u0446\u0438\u0438 \u0447\u0435\u0440\u0435\u0437 \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u044b\u0439 autovacuum<\/strong>.<\/p>\n<\/li>\n<li>\n<p><strong>pgpro_pwr + PG_EXPECTO + \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c = \u043c\u043e\u0449\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442, \u043d\u043e \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0438\u0439 \u0434\u0438\u0441\u0446\u0438\u043f\u043b\u0438\u043d\u044b.<\/strong>\u00a0\u0424\u043e\u0440\u043c\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0438 \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u0432 \u0432\u043b\u0438\u044f\u044e\u0442 \u043d\u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0432\u043e\u0434\u043e\u0432 \u2014 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u043a\u0440\u0451\u0441\u0442\u043d\u043e\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0433\u0438\u043f\u043e\u0442\u0435\u0437 \u0438 \u044f\u0432\u043d\u0430\u044f \u0444\u0438\u043a\u0441\u0430\u0446\u0438\u044f \u0443\u0440\u043e\u0432\u043d\u0435\u0439 \u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u043d\u043e\u0441\u0442\u0438.<\/p>\n<\/li>\n<li>\n<p><strong>\u041d\u0435\u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0431\u0443\u0444\u0435\u0440\u043d\u043e\u0433\u043e \u043a\u0435\u0448\u0430 \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0438\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u044e \u0432\u0435\u0440\u0441\u0438\u0438.<\/strong>\u00a0\u0420\u043e\u0441\u0442 \u0440\u0430\u0431\u043e\u0447\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0441\u043c\u043e\u0442\u0440\u0430 shared_buffers \u0438 work_mem, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u0431\u0435\u0437 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u0440\u0435\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<\/li>\n<li>\n<p><strong>\u0421\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0432 \u0446\u0435\u043b\u043e\u043c.<\/strong>\u00a0<strong>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0440\u0435\u0434\u043a\u043e \u0438\u043c\u0435\u0435\u0442 \u043e\u0434\u043d\u0443 \u043f\u0440\u0438\u0447\u0438\u043d\u0443<\/strong>. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0441\u043e\u0448\u043b\u0438\u0441\u044c \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u043a\u0442\u043e\u0440\u043e\u0432: \u043d\u043e\u0432\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430, \u043e\u0442\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u0430\u044f \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430, \u0432\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u0430\u044f \u0430\u0432\u0442\u043e\u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430, \u0430 \u043f\u043e\u0437\u0436\u0435 \u2014 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0430 \u043f\u0430\u043c\u044f\u0442\u0438 \u043f\u043e\u0434 \u0432\u043e\u0437\u0440\u043e\u0441\u0448\u0443\u044e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443.<\/p>\n<\/li>\n<\/ol>\n<h2>\u0418\u0442\u043e\u0433<\/h2>\n<p>\u0418\u0441\u0442\u043e\u0440\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u2014 \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u043c\u0435\u0442\u0440\u0438\u043a, \u043f\u043e\u044d\u0442\u0430\u043f\u043d\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0433\u0438\u043f\u043e\u0442\u0435\u0437 \u0438 \u0433\u0440\u0430\u043c\u043e\u0442\u043d\u043e\u0435 \u043f\u0440\u0438\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0434\u043e\u043a\u043e\u043f\u0430\u0442\u044c\u0441\u044f \u0434\u043e \u0438\u0441\u0442\u0438\u043d\u043d\u044b\u0445 \u043f\u0440\u0438\u0447\u0438\u043d \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u0438.<\/p>\n<p><strong>\u041e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u00ab\u043d\u043e\u0432\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u0432\u043e \u0432\u0441\u0451\u043c \u0432\u0438\u043d\u043e\u0432\u0430\u0442\u0430\u00bb \u2014 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0433\u0440\u0443\u0431\u043e\u0435 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u0435.<\/strong><\/p>\n<p>\u0420\u0435\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u0430 \u0432\u043a\u043b\u044e\u0447\u0438\u043b\u0430 \u0432 \u0441\u0435\u0431\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0441\u043b\u043e\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u0444\u0430\u043a\u0442\u043e\u0440\u043e\u0432, \u043a\u0430\u0436\u0434\u044b\u0439 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b \u0441\u0432\u043e\u0435\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p><strong>\u0418\u043c\u0435\u043d\u043d\u043e \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434<\/strong>\u00a0\u2014 \u043e\u0442 \u0432\u044b\u0441\u043e\u043a\u043e\u0443\u0440\u043e\u0432\u043d\u0435\u0432\u044b\u0445 \u043f\u0440\u043e\u0444\u0438\u043b\u0435\u0439 \u043a \u0442\u043e\u0447\u0435\u0447\u043d\u043e\u043c\u0443 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u043f\u043b\u0430\u043d\u043e\u0432, \u043e\u0442 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043a \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0438 hit ratio \u2014 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0439\u0442\u0438 \u043a\u043e\u0440\u0435\u043d\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043d\u043e \u0438 \u0432\u044b\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438.<\/p>\n<p><strong>\u041e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u044f.<\/strong>\u00a0\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0432\u044b\u0432\u043e\u0434\u044b \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u044b \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0430\u043b\u043b\u044f\u0446\u0438\u0438 (Postgres Pro Enterprise, \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u00ab1\u0421\u00bb). \u0410\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u044b\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 (shared_buffers, work_mem) \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u0434\u043b\u044f \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434 \u0432\u0430\u0448\u0435 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438.\u00a0<strong>\u0412\u0441\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0443\u0440\u043e\u0432\u043d\u044f \u00ab\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u00bb \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0432 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u043f\u0435\u0440\u0435\u0434 \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u0435\u043c \u0432 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0438\u0432.<\/strong><\/p>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D1%87%D0%B0%D1%81%D1%82%D1%8C8\" id=\"\u0447\u0430\u0441\u0442\u044c8\"><\/a><\/p>\n<h2>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b &#8212; \u0445\u0440\u043e\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u0440\u0430\u0431\u043e\u0442 \u043f\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435 :<\/h2>\n<ol>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/ad-gjwJQnG44OIF5\" rel=\"noopener noreferrer nofollow\"><strong>Upgrade PostgreSQL 15\u219217 : \u0421\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043e\u0442\u0447\u0451\u0442 pgpro_pwr.<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/aeeGBrkr2kU-N54D\" rel=\"noopener noreferrer nofollow\"><strong>Upgrade PostgreSQL 15\u219217 : \u0430\u043d\u0430\u043b\u0438\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0445 SQL \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/aehpRAocbHFovgaD\" rel=\"noopener noreferrer nofollow\"><strong>Upgrade PostgreSQL 15\u219217 : \u0430\u043d\u0430\u043b\u0438\u0437 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 IO<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/aemQjypzFgQO-Qj8\" rel=\"noopener noreferrer nofollow\"><strong>Upgrade PostgreSQL 15\u219217 : \u0430\u043d\u043e\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u043e\u0441\u0442 I\/O + cache_resets<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/aeoTKxDwuXhPj47W\" rel=\"noopener noreferrer nofollow\"><strong>Upgrade PostgreSQL 15\u219217 : \u0440\u043e\u0441\u0442 cache_resets &#8212; \u0432\u043b\u0438\u044f\u043d\u0438\u0435 autoprepare_threshold?<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/aeo7DE7waHvUwsNh\" rel=\"noopener noreferrer nofollow\"><strong>Upgrade PostgreSQL 15\u219217: \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430 cache_resets &#8212; planner_upper_limit_estimation = on<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/aesYS-VHcgdJIXFR\" rel=\"noopener noreferrer nofollow\"><strong>Upgrade PostgreSQL 15\u219217: \u0410\u043d\u0430\u043b\u0438\u0437 \u043f\u043b\u0430\u043d\u043e\u0432 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u0438 planner_upper_limit_estimation = on\/off<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/aetZiibA2FxPhNMW\" rel=\"noopener noreferrer nofollow\"><strong>Upgrade PostgreSQL 15\u219217 : \u0413\u0438\u043f\u043e\u0442\u0435\u0437\u0430 \u043e \u0432\u043b\u0438\u044f\u043d\u0438\u0438 planner_upper_limit_estimation<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/aezXsvXggFe1yRPp\" rel=\"noopener noreferrer nofollow\"><strong>Upgrade PostgreSQL 15\u219217: \u043a\u0430\u043a \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 online_analyze \u0438 \u0441\u0431\u0440\u043e\u0441\u044b \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u043e\u0431\u0440\u0443\u0448\u0438\u043b\u0438 \u043a\u044d\u0448-\u0445\u0438\u0442 \u0438 \u043f\u043e\u0440\u043e\u0434\u0438\u043b\u0438 Seq Scan<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/ae29nB5RWVEyTJkc\" rel=\"noopener noreferrer nofollow\"><strong>\u0410\u043d\u0430\u043b\u0438\u0437 \u043f\u043b\u0430\u043d\u043e\u0432 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f SQL \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 PostgreSQL \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e DeepSeek \u0438 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438: \u043a\u0435\u0439\u0441 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u044f hit ratio \u0441 93,5% \u0434\u043e 81,8%<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/ae-JLP5i92eWgRwV\" rel=\"noopener noreferrer nofollow\"><strong>DeepSeek + PostgreSQL: \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u043c\u0430\u043b\u0430\u044f \u043f\u0440\u0430\u0432\u043a\u0430 \u0432 \u043f\u0440\u043e\u043c\u043f\u0442\u0435 \u043c\u0435\u043d\u044f\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u044e \u043f\u043b\u0430\u043d\u043e\u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0438 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438.<\/strong><\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/dzen.ru\/a\/afB6YjXdaEJBhzMU\" rel=\"noopener noreferrer nofollow\"><strong>PostgreSQL + DeepSeek: \u043a\u0430\u043a \u0430\u043d\u0430\u043b\u0438\u0437 hit ratio \u0438 wait events \u0440\u0430\u0441\u043a\u0440\u044b\u043b \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u0430\u043d\u043e\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0434\u0438\u0441\u043a\u0430<\/strong><\/a><\/p>\n<\/li>\n<\/ol>\n<hr\/>\n<p><a class=\"anchor\" name=\"%D1%87%D0%B0%D1%81%D1%82%D1%8C9\" id=\"\u0447\u0430\u0441\u0442\u044c9\"><\/a><\/p>\n<h2>\u0420\u0435\u0446\u0435\u043d\u0437\u0438\u044f (\u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043e \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c\u044e DeepSeek , \u043f\u043e \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438)<\/h2>\n<p><a href=\"https:\/\/dzen.ru\/away?to=https%3A%2F%2Frinace.livejournal.com%2F3102174.html\" rel=\"noopener noreferrer nofollow\"><strong>\u0420\u0435\u0446\u0435\u043d\u0437\u0438\u044f \u043d\u0430 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b \u00abDeepSeek, PG_EXPECTO \u0438 \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f: \u0442\u0440\u043e\u0439\u043d\u0430\u044f \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0430 \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u0439 PostgreSQL\u00bb<\/strong><\/a><\/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\/1030388\/\">https:\/\/habr.com\/ru\/articles\/1030388\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u041a\u043e\u0433\u0434\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u0432\u0438\u043d\u043e\u0432\u0430\u0442\u0430\u2026 \u043d\u043e \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c. \u041a\u0430\u043a \u0434\u0432\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0447\u0443\u0442\u044c \u043d\u0435 \u0443\u0431\u0438\u043b\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u043b\u0435 \u0430\u043f\u0433\u0440\u0435\u0439\u0434\u0430.  \u041e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 (\u0434\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440)\u041d\u0430\u0441\u0442\u043e\u044f\u0449\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u0430 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0439 \u0438\u0441\u043a\u0443\u0441\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u043b\u043b\u0435\u043a\u0442\u0430.\u0412 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438:\u2014 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u044b \u0438 \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c\u044e;\u2014 \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b, \u0441\u043e\u043f\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0441\u043b\u043e\u0433\u0430\u043d\u044b, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0435 \u0438 \u043f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u0435 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c\u044e;\u2014 \u043c\u0430\u043a\u0435\u0442 \u0441\u0442\u0430\u0442\u044c\u0438 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0438 \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c\u044e.\u041b\u0438\u0446\u0430\u043c, \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u043c\u0441\u044f \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u00ab\u0418\u0418-\u0432\u0435\u0433\u0430\u043d\u0441\u0442\u0432\u0430\u00bb (\u0438\u0441\u043f\u044b\u0442\u044b\u0432\u0430\u044e\u0449\u0438\u043c \u0443\u0441\u0442\u043e\u0439\u0447\u0438\u0432\u044b\u0439 \u0441\u0442\u0440\u0430\u0445, \u043d\u0435\u043f\u0440\u0438\u044f\u0437\u043d\u044c \u0438\u043b\u0438 \u043f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0434\u0438\u0441\u043a\u043e\u043c\u0444\u043e\u0440\u0442 \u043f\u043e \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044e \u043a \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0435\u0432\u044b\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c), \u043d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u0441 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438, \u0440\u0430\u0432\u043d\u043e \u043a\u0430\u043a \u0438 \u0443\u0447\u0430\u0441\u0442\u0438\u0435 \u0432 \u0435\u0451 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0438, \u0432\u043e \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0433\u043e \u043d\u0430\u043d\u0435\u0441\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u0434\u0430 \u043f\u0441\u0438\u0445\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u0431\u043b\u0430\u0433\u043e\u043f\u043e\u043b\u0443\u0447\u0438\u044e.\u041f\u043e\u0441\u043b\u0435 \u043c\u0438\u0433\u0440\u0430\u0446\u0438\u0438 \u0421\u0423\u0411\u0414 \u0434\u043b\u044f \u00ab1\u0421:\u041f\u0440\u0435\u0434\u043f\u0440\u0438\u044f\u0442\u0438\u0435\u00bb \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 Postgres Pro Enterprise 15.14.1 \u043d\u0430 \u0432\u0435\u0440\u0441\u0438\u044e Postgres Pro Enterprise 17.9.2 \u0432\u043e\u0437\u043d\u0438\u043a \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u044b\u0439 \u0434\u0435\u0444\u0438\u0446\u0438\u0442 \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0439 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u044b: \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c iowait \u0440\u0435\u0437\u043a\u043e \u0432\u043e\u0437\u0440\u043e\u0441, \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u043e\u0441\u044c \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437, \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0448\u0442\u0430\u0442\u043d\u044b\u0435 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u0442\u0447\u0451\u0442\u044b \u043d\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u0443\u044e \u043f\u0440\u0438\u0447\u0438\u043d\u0443. \u041f\u0440\u0435\u0434\u043f\u0440\u0438\u043d\u044f\u0442\u043e\u0435 \u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435, \u0434\u043b\u0438\u0432\u0448\u0435\u0435\u0441\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043d\u0435\u0434\u0435\u043b\u044c, \u0432\u044b\u044f\u0432\u0438\u043b\u043e \u043d\u0435 \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u043e\u043d\u043d\u043e\u0435 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u0435 \u0432 \u0446\u0435\u043b\u0435\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, \u0430 \u0434\u0432\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:\u00a0\u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043e\u0448\u0438\u0431\u043a\u0443 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430, \u0438\u043d\u0434\u0443\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c\u00a0planner_upper_limit_estimation = on\u00a0\u0438 \u0443\u0441\u0443\u0433\u0443\u0431\u043b\u0451\u043d\u043d\u0443\u044e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u044b\u043c \u0432\u043b\u0438\u044f\u043d\u0438\u0435\u043c\u00a0autoprepare_threshold\u00a0\u0438 \u043e\u0442\u043a\u043b\u044e\u0447\u0451\u043d\u043d\u043e\u0433\u043e online_analyze;\u00a0\u0432\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0438\u0441\u0442\u043e\u0449\u0435\u043d\u0438\u0435 \u0431\u0443\u0444\u0435\u0440\u043d\u043e\u0433\u043e \u043a\u044d\u0448\u0430 \u043f\u0440\u0438 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438\u00a0shared_buffers\u00a0\u043d\u0430 \u0444\u043e\u043d\u0435 \u0432\u043e\u0437\u0440\u043e\u0441\u0448\u0435\u0439 \u0440\u0430\u0431\u043e\u0447\u0435\u0439 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0438. \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0430 \u0445\u0440\u043e\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043c\u0435\u0440\u043e\u043f\u0440\u0438\u044f\u0442\u0438\u0439, \u043e\u043f\u0438\u0440\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u00a0pgpro_pwr, \u043c\u0435\u0442\u043e\u0434\u043e\u043b\u043e\u0433\u0438\u044e\u00a0PG_EXPECTO\u00a0\u0438 \u0432\u0435\u0440\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e \u0441 \u043f\u0440\u0438\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u0435\u043c \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u043c\u043e\u0434\u0435\u043b\u0435\u0439, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u044b\u0435 \u043a \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0435 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\u043c, \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u044e\u0449\u0438\u043c \u0438\u043b\u0438 \u0443\u0436\u0435 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0438\u0432\u0448\u0438\u043c \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0447\u043d\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435.\u0414\u043b\u044f \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0438\u0441\u044c:pgpro_pwr\u00a0\u2014 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u0430 \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 PostgreSQL, \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0449\u0435\u0435 \u0434\u0435\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u043e\u0442\u0447\u0451\u0442\u044b \u043f\u043e \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0435, \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f\u043c, \u043f\u043b\u0430\u043d\u0430\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432;PG_EXPECTO\u00a0\u2014 \u0434\u043e\u043c\u0435\u043d\u043d\u0430\u044f \u043c\u0435\u0442\u043e\u0434\u043e\u043b\u043e\u0433\u0438\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430, \u043f\u0440\u0435\u0434\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0449\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044e\u044e \u0441\u043e\u0433\u043b\u0430\u0441\u043e\u0432\u0430\u043d\u043d\u043e\u0441\u0442\u044c \u043c\u0435\u0442\u0440\u0438\u043a, \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0442\u044c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0451\u043d\u043d\u044b\u0435 \u0444\u0430\u043a\u0442\u044b \u0438 \u0433\u0438\u043f\u043e\u0442\u0435\u0437\u044b, \u044f\u0432\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0433\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e\u0441\u0442\u0438 \u0432\u044b\u0432\u043e\u0434\u043e\u0432;\u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u0430\u044f \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u00a0\u0434\u043b\u044f \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043c\u043e\u0434\u0435\u043b\u0438 DeepSeek,\u00a0\u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0449\u0430\u044f \u044d\u043f\u0438\u0441\u0442\u0435\u043c\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0447\u0435\u0441\u0442\u043d\u043e\u0441\u0442\u044c: \u043a\u0430\u0436\u0434\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u0441\u043d\u0430\u0431\u0436\u0430\u043b\u0441\u044f \u0443\u0440\u043e\u0432\u043d\u0435\u043c \u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u043d\u043e\u0441\u0442\u0438 (\u00ab\u041f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u043e \u0434\u0430\u043d\u043d\u044b\u043c\u0438\u00bb, \u00ab\u0412\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u043d\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438\u00bb, \u00ab\u041f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u00bb, \u00ab\u041d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043e\u0446\u0435\u043d\u0438\u0442\u044c\u00bb).\u041a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u043c\u043f\u0442\u043e\u0432 \u0434\u043b\u044f \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438\u00a0DeepSeek\u00a0(\u043d\u0430 \u0440\u0443\u0441\u0441\u043a\u043e\u043c \u044f\u0437\u044b\u043a\u0435),\u00a0\u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0421\u0423\u0411\u0414\u00a0PostgreSQL.\u0421\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u0413\u043b\u0430\u0432\u0430 1. \u041f\u043e\u0441\u043b\u0435 \u0430\u043f\u0433\u0440\u0435\u0439\u0434\u0430: \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u00d75 \u043f\u0440\u0438 \u0442\u0435\u0445 \u0436\u0435 \u043f\u043b\u0430\u043d\u0430\u0445\u0413\u043b\u0430\u0432\u0430 2. \u041f\u043b\u0430\u043d\u044b \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b, \u043d\u043e \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0432\u044b\u0440\u043e\u0441\u043b\u0438 \u0432 \u0440\u0430\u0437\u044b \u2014 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u0438\u0437\u043d\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u044b\u0413\u043b\u0430\u0432\u0430 3. \u041f\u043e\u0432\u043e\u0440\u043e\u0442\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442: +3300% \u0441\u0431\u0440\u043e\u0441\u043e\u0432 \u043a\u044d\u0448\u0430 \u2014 \u043a\u043b\u044e\u0447 \u043a \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0443\u0413\u043b\u0430\u0432\u0430 4. \u0414\u0432\u043e\u0439\u043d\u0430\u044f \u0432\u0435\u0440\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f: \u043a\u0430\u043a \u0442\u0430\u043d\u0434\u0435\u043c autoprepare_threshold \u0438 online_analyze \u043c\u0435\u0442\u043e\u0434\u0438\u0447\u043d\u043e \u0432\u044b\u043c\u044b\u0432\u0430\u0435\u0442 \u043a\u044d\u0448 \u043f\u043b\u0430\u043d\u043e\u0432\u0413\u043b\u0430\u0432\u0430 5. \u041f\u0440\u043e\u0440\u044b\u0432: planner_upper_limit_estimation = on \u2014 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u0438\u043d\u043e\u0432\u043d\u0438\u043a Seq Scan \u0438 \u043b\u0430\u0432\u0438\u043d\u044b \u0447\u0442\u0435\u043d\u0438\u0439\u0413\u043b\u0430\u0432\u0430 6. \u0412\u0442\u043e\u0440\u0430\u044f \u0432\u043e\u043b\u043d\u0430: hit ratio \u0440\u0443\u0445\u043d\u0443\u043b \u0441 95% \u0434\u043e 86% \u0431\u0435\u0437 \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u2014 shared_buffers \u0431\u043e\u043b\u044c\u0448\u0435 \u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f\u041a\u0430\u043a \u043e\u0434\u043d\u0430 \u0444\u0440\u0430\u0437\u0430 \u0432 \u043f\u0440\u043e\u043c\u043f\u0442\u0435 \u043a DeepSeek \u0447\u0443\u0442\u044c \u043d\u0435 \u0443\u0432\u0435\u043b\u0430 \u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u0435 \u0432 \u0441\u0442\u043e\u0440\u043e\u043d\u0443\u0413\u043b\u0430\u0432\u0430 7. \u0418\u0442\u043e\u0433\u0438: \u0434\u0432\u0435 \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u2014 \u043e\u0434\u0438\u043d \u0447\u0435\u043a-\u043b\u0438\u0441\u0442 \u0434\u043b\u044f DBA\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u044b &#8212; \u0445\u0440\u043e\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u0440\u0430\u0431\u043e\u0442 \u043f\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435\u0420\u0435\u0446\u0435\u043d\u0437\u0438\u044f (\u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043e \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u044c\u044e DeepSeek , \u043f\u043e \u0444\u0438\u043b\u043e\u0441\u043e\u0444\u0441\u043a\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438)\u0413\u043b\u0430\u0432\u0430 1. \u041f\u043e\u0441\u043b\u0435 \u0430\u043f\u0433\u0440\u0435\u0439\u0434\u0430: \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u00d75 \u043f\u0440\u0438 \u0442\u0435\u0445 \u0436\u0435 \u043f\u043b\u0430\u043d\u0430\u0445\u041f\u0435\u0440\u0432\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u0430\u043d\u043e\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0443\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u0435\u0439 CPU\/IO \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438.\u0420\u0438\u0441.1\u00a0\u0413\u0440\u0430\u0444\u0438\u043a\u0438 \u043c\u0435\u0442\u0440\u0438\u043a Zabbix: &#171;CPU iowait time&#187; \u0438 &#171;CPU Utilization&#187; &#8212; \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438 \u0421\u0423\u0411\u0414 (\u0421\u0423\u0411\u0414-1)  \u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0434\u0432\u0443\u0445 \u043e\u0442\u0447\u0451\u0442\u043e\u0432 pgpro_pwr \u2014 \u0434\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f (PG 15) \u0438 \u043f\u043e\u0441\u043b\u0435 (PG 17) \u2014 \u0432\u044b\u044f\u0432\u0438\u043b\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u0443, \u0434\u0430\u043b\u0451\u043a\u0443\u044e \u043e\u0442 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e\u0439:\u043e\u0431\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432\u00a0\u0432\u044b\u0440\u043e\u0441\u043b\u043e \u043d\u0430 20% (\u0441 33,7 \u043c\u043b\u043d \u0434\u043e 40,4 \u043c\u043b\u043d);\u043e\u0434\u043d\u0430\u043a\u043e\u00a0\u0441\u0443\u043c\u043c\u0430\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u00a0\u043f\u043e\u0434\u0441\u043a\u043e\u0447\u0438\u043b\u043e \u0432 2,6 \u0440\u0430\u0437\u0430 (\u0441 ~5 094 \u0441 \u0434\u043e ~13 462 \u0441);\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f\u00a0(\u0441\u0443\u043c\u043c\u0430 user + system) \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u043e\u0441\u044c \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u0432 5 \u0440\u0430\u0437 \u2014 \u0441 ~5 550 \u0441 \u0434\u043e ~31 134 \u0441;\u043f\u0438\u043a\u043e\u0432\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u0441\u0435\u0441\u0441\u0438\u0439\u00a0\u0432 \u043d\u043e\u0432\u043e\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0435 \u0434\u043e\u0441\u0442\u0438\u0433\u0430\u043b\u043e 1 317 (\u043f\u0440\u043e\u0442\u0438\u0432 435 \u0440\u0430\u043d\u0435\u0435), \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 max_connections \u0431\u044b\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0432 \u044d\u043a\u0441\u0442\u0440\u0435\u043c\u0430\u043b\u044c\u043d\u044b\u0435 5 000.\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b, \u0432\u043b\u0438\u044f\u044e\u0449\u0438\u0435 \u043d\u0430 \u043a\u044d\u0448\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (shared_buffers = 55 \u0413\u0411, effective_cache_size = 165 \u0413\u0411, random_page_cost = 1.1), \u043e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u044b\u043c\u0438.\u041d\u043e \u0431\u044b\u043b\u0438 \u0438 \u0440\u0430\u0437\u043b\u0438\u0447\u0438\u044f:work_mem\u00a0\u0443\u0434\u0432\u043e\u0438\u043b\u0441\u044f (\u0441 32 \u041c\u0411 \u0434\u043e 64 \u041c\u0411),max_parallel_workers_per_gather\u00a0\u0432 \u043e\u0431\u043e\u0438\u0445 \u0441\u043b\u0443\u0447\u0430\u044f\u0445, \u043f\u043e-\u0432\u0438\u0434\u0438\u043c\u043e\u043c\u0443, \u0431\u044b\u043b \u043e\u0442\u043a\u043b\u044e\u0447\u0451\u043d \u0438\u043b\u0438 \u0431\u043b\u0438\u0437\u043e\u043a \u043a \u043d\u0443\u043b\u044e.\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438 \u0441\u0432\u043e\u0438 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b:\u00a0\u0447\u0430\u0441\u0442\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b SELECT FASTTRUNCATE \u0434\u043b\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446 (\u0434\u043e 1,2 \u043c\u043b\u043d \u0440\u0430\u0437 \u0432 \u0447\u0430\u0441), \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439 BinaryData (\u0447\u0442\u0435\u043d\u0438\u0435 \u0438 \u0432\u0441\u0442\u0430\u0432\u043a\u0430 BLOB-\u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432), \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 (16 \u0413\u0411 \u0432 \u043d\u043e\u0432\u043e\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0435). \u041d\u043e \u0438\u0445 \u00ab\u0446\u0435\u043d\u0430\u00bb \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0440\u0435\u0437\u043a\u043e \u0432\u043e\u0437\u0440\u043e\u0441\u043b\u0430. \u0422\u0430\u043a, \u043e\u0434\u0438\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0440\u043e\u0441 FASTTRUNCATE \u0432 \u043d\u043e\u0432\u043e\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u043b 37,7% \u0432\u0441\u0435\u0433\u043e CPU, \u0445\u043e\u0442\u044f \u0432\u044b\u0437\u044b\u0432\u0430\u043b\u0441\u044f \u0432 2,4 \u0440\u0430\u0437\u0430 \u0440\u0435\u0436\u0435, \u0447\u0435\u043c \u0432 \u0441\u0442\u0430\u0440\u043e\u043c.\u041f\u0435\u0440\u0432\u0438\u0447\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 (\u0423\u0440\u043e\u0432\u0435\u043d\u044c\u20112):\u0414\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u044f, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440\u0430 \u0438\u043b\u0438 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0446\u0438\u0435\u0439 \u0437\u0430 \u0440\u0435\u0441\u0443\u0440\u0441\u044b \u043d\u0430 \u0444\u043e\u043d\u0435 \u0432\u043e\u0437\u0440\u043e\u0441\u0448\u0435\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0441\u0435\u0441\u0441\u0438\u0439. \u041d\u043e \u0434\u043b\u044f \u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0441\u044f \u0430\u043d\u0430\u043b\u0438\u0437 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u043f\u043b\u0430\u043d\u043e\u0432 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.\u041a\u043e\u0440\u043d\u0435\u0432\u0430\u044f \u043f\u0440\u0438\u0447\u0438\u043d\u0430 &#8212; \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430.\ufe0f\u0423\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044f \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043b\u0430\u0441\u044c.\u0413\u043b\u0430\u0432\u0430 2. \u041f\u043b\u0430\u043d\u044b \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b, \u043d\u043e \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0447\u0442\u0435\u043d\u0438\u044f \u0432\u044b\u0440\u043e\u0441\u043b\u0438 \u0432 \u0440\u0430\u0437\u044b \u2014 \u043f\u0435\u0440\u0432\u044b\u0439 \u043f\u0440\u0438\u0437\u043d\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u044b\u041f\u043e\u0432\u0442\u043e\u0440\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b &#8212; \u0430\u043d\u043e\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0443\u0442\u0438\u043b\u0438\u0437\u0430\u0446\u0438\u044f CPU\/IO \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438 .\ud83d\udccb\u041d\u0430 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u0435 &#8212; \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0433\u043b\u0443\u0431\u0438\u043d\u043d\u044b\u0439 \u0441\u0432\u043e\u0434\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u0446\u0435\u043b\u044c\u044e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u0438 \u0437\u0430\u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0440\u043e\u043f\u0440\u0438\u044f\u0442\u0438\u044f \u0434\u043b\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439.\u0420\u0438\u0441.2\u00a0\u0413\u0440\u0430\u0444\u0438\u043a\u0438 \u043c\u0435\u0442\u0440\u0438\u043a Zabbix: &#171;CPU iowait time&#187; \u0438 &#171;CPU Utilization&#187; &#8212; \u0434\u043e \u0438 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0432\u0435\u0440\u0441\u0438\u0438 \u0421\u0423\u0411\u0414 (\u0421\u0423\u0411\u0414-2)  \ud83d\udccb\u041d\u0430\u0447\u0430\u043b\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430:5 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u043b\u0438\u0434\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f,12 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u0434\u043e\u043c\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0432\u0448\u0438\u0445 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430.\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u044b Query ID \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0438\u0441\u043a\u0430\u0442\u044c \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043e\u0442\u0447\u0451\u0442\u0430\u043c\u0438.\u0412\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f\u00a0:\u0421\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 &#171;Total exec time&#187;\u0417\u0430\u043f\u0440\u043e\u0441 \u0441 _InfoRg12488 (LIMIT + ORDER BY): \u043f\u043b\u0430\u043d \u0443\u043b\u0443\u0447\u0448\u0438\u043b\u0441\u044f \u2014 \u0432\u043c\u0435\u0441\u0442\u043e Bitmap Heap Scan \u0441\u0442\u0430\u043b \u0447\u0430\u0449\u0435 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u044f\u043c\u043e\u0439 Index Scan. \u0421\u0440\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430 \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u043b\u043e\u0441\u044c \u0441 255 \u043c\u0441 \u0434\u043e 19,5 \u043c\u0441, \u043d\u043e \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0432 39 \u0440\u0430\u0437 (\u0441 777 \u0434\u043e 30 185). \u041e\u0431\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u043e\u0441\u044c, \u043d\u043e \u043d\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e.\u0417\u0430\u043f\u0440\u043e\u0441 \u0441 Reference109 (OR \u043f\u043e \u0434\u0432\u0443\u043c \u043f\u043e\u043b\u044f\u043c): \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0432\u044b\u0440\u043e\u0441\u043b\u0430 \u0432 105 \u0440\u0430\u0437 (\u0441 15 \u0434\u043e 1 580), \u043f\u043b\u0430\u043d \u043e\u0441\u0442\u0430\u043b\u0441\u044f Seq Scan, \u0438 \u0437\u0430\u043f\u0440\u043e\u0441 \u0441\u0442\u0430\u043b \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u0438\u0442\u0435\u043b\u0435\u043c CPU (1 197 \u0441 usertime).\u0417\u0430\u043f\u0440\u043e\u0441\u044b \u0441 InfoRg15516 \u0438 Reference15235 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438 \u043a\u0430\u0442\u0430\u0441\u0442\u0440\u043e\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0440\u043e\u0441\u0442: \u043f\u0440\u0438 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u043e\u043c Seq Scan \u0438 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0437\u043b\u0435\u0442\u0435\u043b\u043e \u0441 0,33 \u0441 \u0434\u043e 20,9 \u0441 \u0438 \u0441 37 \u043c\u0441 \u0434\u043e 23,7 \u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u2014 \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0430\u0442\u043d\u044b\u0439 \u0440\u043e\u0441\u0442 \u043e\u0431\u044a\u0451\u043c\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u043f\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u0443\u0435\u043c\u044b\u043c \u043f\u043e\u043b\u044f\u043c.\u041e\u0436\u0438\u0434\u0430\u043d\u0438\u044f I\/O\u00a0:\u0421\u0440\u0430\u0432\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 &#171;Top SQL by I\/O wait time&#187;\u0418\u0437 12 \u043f\u0440\u043e\u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 11 \u043f\u0440\u043e\u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0440\u043e\u0441\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 DataFileRead \u043e\u0442 1,6 \u0434\u043e 32 \u0440\u0430\u0437 \u043f\u0440\u0438 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u044b\u0445 \u0438\u043b\u0438 \u0434\u0430\u0436\u0435 \u0441\u043d\u0438\u0437\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430\u0445 \u0432\u044b\u0437\u043e\u0432\u043e\u0432.\u041f\u043b\u0430\u043d\u044b \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0434\u043b\u044f \u043d\u0438\u0445 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c.\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:INSERT \u0432 _InfoRg16813: \u043f\u0440\u0438 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u0438 \u0447\u0438\u0441\u043b\u0430 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u043d\u0430 12% \u043e\u0431\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u0440\u043e\u0441\u043b\u043e \u0432 2,5 \u0440\u0430\u0437\u0430, \u0430 \u0432\u0440\u0435\u043c\u044f I\/O \u2014 \u0441 27,4 \u0441 \u0434\u043e 84,2 \u0441;INSERT \u0432 _InfoRg12488: \u043e\u0431\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u0440\u043e\u0441\u043b\u043e \u0432 5 \u0440\u0430\u0437 (\u0441 4,5 \u0441 \u0434\u043e 22,9 \u0441) \u043f\u0440\u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0432\u044b\u0437\u043e\u0432\u043e\u0432;SELECT \u0438\u0437 Reference109 \u043f\u043e \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u043c\u0443 \u043a\u043b\u044e\u0447\u0443: \u0432 \u043d\u043e\u0432\u043e\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u043b\u0441\u044f \u043d\u0430 \u043c\u0435\u043d\u0435\u0435 \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 (reference109_no_pkey \u0432\u043c\u0435\u0441\u0442\u043e reference109ngpkey1), \u0447\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u043b\u043e \u043a \u0440\u043e\u0441\u0442\u0443 \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0445 \u0431\u043b\u043e\u043a\u043e\u0432 \u0441 2 292 \u0434\u043e 34 526 \u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 I\/O \u0441 0,11 \u0441 \u0434\u043e 28,49 \u0441.\u041b\u0438\u0448\u044c \u043e\u0434\u0438\u043d \u0437\u0430\u043f\u0440\u043e\u0441 (SELECT \u0438\u0437 _InfoRg13163) \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043b \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u0438 \u2014 \u043e\u043d \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u043b\u0441\u044f \u0438\u0437 \u043a\u0435\u0448\u0430 (I\/O time = 0 \u0432 \u043e\u0431\u043e\u0438\u0445 \u043f\u0435\u0440\u0438\u043e\u0434\u0430\u0445).\u0412\u044b\u0432\u043e\u0434 (\u0423\u0440\u043e\u0432\u0435\u043d\u044c\u20111):\ufe0f\u041a\u043b\u044e\u0447\u0435\u0432\u043e\u0439 \u0444\u0430\u043a\u0442\u043e\u0440 \u0437\u0430\u043c\u0435\u0434\u043b\u0435\u043d\u0438\u044f \u2014 \u043c\u043d\u043e\u0433\u043e\u043a\u0440\u0430\u0442\u043d\u044b\u0439 \u0440\u043e\u0441\u0442 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0447\u0442\u0435\u043d\u0438\u0439 \u0441 \u0434\u0438\u0441\u043a\u0430. \u041f\u043b\u0430\u043d\u044b \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438\u0441\u044c, \u0437\u043d\u0430\u0447\u0438\u0442, \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u043d\u0435 \u0432 \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0442\u043e\u0440\u0430, \u0430 \u0432 \u0438\u0437\u043c\u0435\u043d\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u0445 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f.\u041d\u043e \u043f\u043e\u0447\u0435\u043c\u0443 \u043f\u043b\u0430\u043d\u044b \u00ab\u043f\u043e\u043f\u043b\u044b\u043b\u0438\u00bb \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432?\u041e\u0442\u0432\u0435\u0442 \u0434\u0430\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u044d\u0442\u0430\u043f.\u0413\u043b\u0430\u0432\u0430 3. \u041f\u043e\u0432\u043e\u0440\u043e\u0442\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442: +3300% \u0441\u0431\u0440\u043e\u0441\u043e\u0432 \u043a\u044d\u0448\u0430 \u2014 \u043a\u043b\u044e\u0447 \u043a \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0443\u0418\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u00abLoad distribution among heavily loaded databases\u00bb\u00a0\u0432\u0441\u043a\u0440\u044b\u043b\u043e \u0430\u043d\u043e\u043c\u0430\u043b\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043b\u0430 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f.\ufe0f\u0421\u0447\u0451\u0442\u0447\u0438\u043a cache_resets (\u0441\u0431\u0440\u043e\u0441\u043e\u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u0435\u043c\u043e\u0433\u043e \u043a\u0435\u0448\u0430) \u0432 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0438 pgpro_stats_totals \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0441\u044f \u0441 1 \u0434\u043e 34 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0437\u0430 \u0447\u0430\u0441 \u2014 \u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0430 3300%.\u041e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e:\u0432\u0440\u0435\u043c\u044f \u0432\u0432\u043e\u0434\u0430-\u0432\u044b\u0432\u043e\u0434\u0430 (I\/O time) \u0432\u044b\u0440\u043e\u0441\u043b\u043e \u043d\u0430 2310%;\u043e\u0431\u044a\u0451\u043c \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0447\u0442\u0435\u043d\u0438\u0439 (Shared blocks read) \u2014 \u043d\u0430 248%;\u043e\u0431\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f (Total time) \u2014 \u043d\u0430 536% \u043f\u0440\u0438 \u0441\u043d\u0438\u0436\u0435\u043d\u0438\u0438 \u0447\u0438\u0441\u043b\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043d\u0430 10%.\u041c\u0435\u0442\u0440\u0438\u043a\u0430\u00a0cache_resets\u00a0\u0444\u0438\u043a\u0441\u0438\u0440\u0443\u0435\u0442 \u043f\u0440\u0438\u043d\u0443\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u043a\u0435\u0448\u0430 \u043f\u043b\u0430\u043d\u043e\u0432 (\u0438\/\u0438\u043b\u0438 \u0431\u0443\u0444\u0435\u0440\u043e\u0432), \u0432\u044b\u0437\u0432\u0430\u043d\u043d\u044b\u0435 \u0442\u0430\u043a\u0438\u043c\u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u043c\u0438, \u043a\u0430\u043a DISCARD ALL, ALTER SYSTEM, SET, DDL-\u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0438\u043b\u0438 \u0430\u0432\u0430\u0440\u0438\u0439\u043d\u044b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0438 \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u044e\u0449\u0438\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432. \u041a\u0430\u0436\u0434\u044b\u0439 \u0442\u0430\u043a\u043e\u0439 \u0441\u0431\u0440\u043e\u0441 \u043e\u0431\u043d\u0443\u043b\u044f\u0435\u0442 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043b\u0430\u043d\u0438\u0440\u043e\u0432\u0449\u0438\u043a\u0430 \u0437\u0430\u043d\u043e\u0432\u043e \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u043b\u0430\u043d\u044b, \u0447\u0430\u0441\u0442\u043e \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445.\u0412\u043e\u0437\u043d\u0438\u043a\u043b\u0430\u00a0\u0433\u0438\u043f\u043e\u0442\u0435\u0437\u0430 : \u0447\u0442\u043e-\u0442\u043e \u0432 \u043d\u043e\u0432\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0441\u0435\u0440\u0432\u0435\u0440 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u043e \u0442\u0435\u0440\u044f\u0442\u044c \u043a\u0435\u0448 \u043f\u043b\u0430\u043d\u043e\u0432.\u0413\u043b\u0430\u0432\u0430 4. \u0414\u0432\u043e\u0439\u043d\u0430\u044f \u0432\u0435\u0440\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f: \u043a\u0430\u043a \u0442\u0430\u043d\u0434\u0435\u043c autoprepare_threshold \u0438 online_analyze \u043c\u0435\u0442\u043e\u0434\u0438\u0447\u043d\u043e \u0432\u044b\u043c\u044b\u0432\u0430\u0435\u0442 \u043a\u044d\u0448 \u043f\u043b\u0430\u043d\u043e\u0432\u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u0430\u0440\u044b\u043c \u0438 \u043d\u043e\u0432\u044b\u043c \u043f\u0435\u0440\u0438\u043e\u0434\u0430\u043c\u0438\u00a0\u0432\u044b\u044f\u0432\u0438\u043b\u043e \u0442\u0440\u0438 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0445 \u043e\u0442\u043b\u0438\u0447\u0438\u044f, \u043d\u0435 \u0441\u0447\u0438\u0442\u0430\u044f \u0443\u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445:autoprepare_threshold:\u00a00 \u2192 2\u00a0(\u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0430\u044f \u043f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u043a\u0430 \u043e\u0431\u0449\u0438\u0445 \u043f\u043b\u0430\u043d\u043e\u0432);online_analyze.enable:\u00a0on \u2192 off\u00a0(\u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u043f\u0440\u0438 DML-\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f\u0445);generic_plan_fuzz_factor:\u00a01 \u2192 0.9.\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044c \u0438\u0445 \u043f\u0440\u0438\u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u044c, \u0431\u044b\u043b \u043f\u0440\u043e\u0432\u0435\u0434\u0451\u043d \u0434\u0432\u043e\u0439\u043d\u043e\u0439 \u0430\u043d\u0430\u043b\u0438\u0437 \u2014 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e\u00a0DeepSeek\u00a0\u0438 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043d\u0435\u0439\u0440\u043e\u0441\u0435\u0442\u0438 \u00abAsk Postgres\u00bb.\u041e\u0431\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e \u043f\u0440\u0438\u0448\u043b\u0438 \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0438 \u0442\u043e\u043c\u0443 \u0436\u0435 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u0443:\u041f\u0440\u0438\u00a0autoprepare_threshold = 2\u00a0\u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u043a\u0435\u0448\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0431\u0449\u0438\u0435 (generic) \u043f\u043b\u0430\u043d\u044b \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043e\u0431\u0441\u043b\u0443\u0436\u0438\u0432\u0430\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 (\u0431\u044d\u043a\u0435\u043d\u0434\u0430) \u2014 \u043f\u043e\u0441\u043b\u0435 \u0432\u0442\u043e\u0440\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0438 \u0442\u043e\u0433\u043e \u0436\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043b\u0438\u0442\u0435\u0440\u0430\u043b\u0430\u043c\u0438. \u041f\u0440\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0438 0 \u043a\u0435\u0448 \u0431\u044b\u043b \u043f\u0443\u0441\u0442, \u0438 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0442\u044c \u0431\u044b\u043b\u043e \u043d\u0435\u0447\u0435\u0433\u043e.\u041f\u0440\u0438\u00a0online_analyze.enable =&#8230;<\/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-478212","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/478212","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=478212"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/478212\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=478212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=478212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=478212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}