{"id":344704,"date":"2023-01-30T21:00:16","date_gmt":"2023-01-30T21:00:16","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=344704"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=344704","title":{"rendered":"<span>\u041a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f ORM \u043a\u0430\u043a \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 \u2013 \u0432\u044b\u044f\u0432\u0438\u0442 \u0441\u043b\u0430\u0431\u043e\u0435 \u043c\u0435\u0441\u0442\u043e \u0412\u0430\u0448\u0435\u0439 \u0421\u0423\u0411\u0414<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/697504\/\" rel=\"noopener noreferrer nofollow\">\u041a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f ORM \u043a\u0430\u043a \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 \u2014 \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0442 \u043b\u0438 \u0435\u0435 \u0432\u0430\u0448\u0430 \u0421\u0423\u0411\u0414?<\/a> \u0431\u044b\u043b\u043e \u0436\u0438\u0432\u043e\u0435 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u0438 \u043a\u0430\u043a \u044f \u043f\u043e\u043d\u044f\u043b \u0438\u0437 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432, \u043d\u0435 \u0432\u0441\u0435 \u043e\u0441\u043e\u0437\u043d\u0430\u044e\u0442 \u0433\u043b\u0443\u0431\u0438\u043d\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0438\u0437\u043a\u043e\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 ORM. \u042f \u0432\u0435\u0440\u044e, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c ORM, \u0433\u0434\u0435 \u043f\u043e\u0442\u0435\u0440\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b, \u043d\u043e \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u044f\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0421\u0423\u0411\u0414. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u2013 \u043d\u0438\u0437\u043a\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c ORM. \u0414\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0442\u043e\u043d\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0421\u0423\u0411\u0414 \u0438 \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0439 \u043d\u0443\u0436\u043d\u043e \u0438\u043c\u0435\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043e\u043f\u044b\u0442 \u043d\u0430 \u044d\u0442\u0438\u0445 \u0443\u0440\u043e\u0432\u043d\u044f\u0445. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c FAQ \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0442\u0435\u0441\u0442 \u0441 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u043d\u043e\u0439 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438. \u00a0\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0443 \u043d\u0430\u0441 \u0437\u0434\u0435\u0441\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u043f\u043e \u043d\u0435\u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0449\u0438\u043c\u0441\u044f \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u043f\u043e\u043b\u044f\u043c, \u0438 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 read committed \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430\u043c\u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442. \u0421\u0442\u0430\u0442\u044c\u044f \u0431\u044b\u043b\u0430 \u0433\u043e\u0442\u043e\u0432\u0430 \u0435\u0449\u0435 \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u0433\u043e\u0434\u0443, \u043d\u043e \u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0435\u043b \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/smart-lab.ru\/blog\/868783.php\" rel=\"noopener noreferrer nofollow\">\u043d\u0435\u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043f\u0440\u043e\u0433\u043d\u043e\u0437 \u043d\u0430 2023 \u0433\u043e\u0434<\/a> \u00a0, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0437\u0430\u0448\u0435\u043b \u043d\u0430 Smart Lab , \u043d\u043e \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u043e\u043d \u043d\u0435 \u043f\u0440\u043e\u0448\u0435\u043b \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043d\u0430\u0443\u0447\u043f\u043e\u043f \u2013 \u0432\u0438\u0434\u0438\u043c\u043e \u0440\u0430\u0431\u043e\u0442\u044b \u0443\u0447\u0435\u043d\u043e\u0433\u043e \u0427\u0438\u0436\u0435\u0432\u0441\u043a\u043e\u0433\u043e \u0410 \u0437\u0430\u0431\u044b\u0442\u044b .<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0438\u0437\u043b\u043e\u0436\u0435\u043d FAQ , \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043b\u044f\u00a0 MS SQL \u0438 Oracle, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c Postgres \u0442\u0435\u043c \u0436\u0435 \u043c\u0435\u0442\u043e\u0434\u043e\u043c. \u0412\u043e\u0442 \u0438 \u0443\u0432\u0438\u0434\u0438\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 Postgres \u0438\u043c\u043f\u043e\u0440\u0442\u043e\u0437\u0430\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u043c \u0434\u043b\u044f 1\u0421 \u0438\u043b\u0438 \u043d\u0435\u0442.<\/p>\n<h3>\u0427\u0430\u0441\u0442\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b<\/h3>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441<\/strong>: \u0410 \u043e \u0447\u0451\u043c \u0441\u0442\u0430\u0442\u044c\u044f? \u041e \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0441\u043b\u043e\u0439 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438 ORM \u043d\u0430\u0434 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443? \u0422\u0430\u043a \u044d\u0442\u043e \u043a\u0430\u043a \u0431\u044b \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e.<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> ORM\u00a0 \u0443\u0441\u043a\u043e\u0440\u044f\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u0439, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0447\u0438\u0442 \u0447\u0442\u043e \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443. \u0415\u0441\u043b\u0438 ORM \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u043d\u0430\u0431\u043e\u0440\u0430\u043c\u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439 (\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0442.\u0434.), \u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c ORM \u043a\u0440\u0443\u043f\u043d\u044b\u0435 DML , \u0442\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043c\u0435\u0434\u043b\u0435\u043d\u0438\u0439 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442. \u041d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u0437\u0430 \u0441\u0447\u0435\u0442 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0430\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0438\u0436\u0435 ) \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e. <\/p>\n<p>\u00a0<strong>\u0412\u043e\u043f\u0440\u043e\u0441<\/strong>: \u0415\u0441\u043b\u0438 \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u0442\u043e\u043a \u043c\u0435\u043b\u043a\u0438\u0445 DML \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 ORM, \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0421\u0423\u0411\u0414 (ODBC, JDBC)?<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> ORM \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043a\u0440\u0443\u043f\u043d\u044b\u0435 DML , \u043d\u043e \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0441\u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439\\\u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043e\u0434\u043d\u0438\u043c \u043a\u0440\u0443\u043f\u043d\u044b\u043c DML. \u0423\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u0430 Batching, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 JDBC \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043d\u0435 \u0440\u0435\u0448\u0430\u044e\u0442. ORM \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u043c\u043d\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 ORM \u043d\u0430 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0421\u0423\u0411\u0414 \u043d\u0435 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u044b. \u042d\u0442\u043e \u0436\u0435 \u043d\u0435 \u043f\u043e\u0432\u043e\u0434 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 ORM \u0434\u043b\u044f Highload \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439?<\/p>\n<p>\u00a0<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441:<\/strong> \u00a0\u0421\u0442\u0430\u0442\u044c\u0435 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0447\u0442\u043e SSD \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u0437\u043a\u0438\u043c \u043c\u0435\u0441\u0442\u043e\u043c \u0438\u0437 \u0437\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0437\u0430\u043f\u0430\u0441\u0430 \u043f\u043e IOPS. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0441 SSD \u044d\u0442\u043e \u043d\u0435 \u0434\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u043e\u0433 \u043d\u0430 RAM \u0434\u0438\u0441\u043a\u0435 \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0438\u0441\u0442\u0438\u043d\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443.<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> \u0422\u0435\u0441\u0442\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 , \u0447\u0442\u043e \u0441\u0430\u043c RAM \u0434\u0438\u0441\u043a \u00a0\u00a0\u0441\u0430\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0443\u0437\u043a\u0438\u043c \u043c\u0435\u0441\u0442\u043e\u043c \u0441\u043c \u0442\u0443\u0442 <a href=\"https:\/\/habr.com\/ru\/post\/694554\/\" rel=\"noopener noreferrer nofollow\">\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0440\u0430\u0431\u043e\u0442\u044b 1C \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, MS SQL \u0438 POSTGRES \u043d\u0430 HDD, SSD \u0438 RAMDisk<\/a> \u00a0\u0438 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u0442 SSD. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u0438\u0441\u043f\u0435\u0442\u0447\u0435\u0440 RAM \u0434\u0438\u0441\u043a\u0430 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0438 \u0432\u0438\u0441\u0438\u0442 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u044f\u0434\u0440\u0435. \u0415\u0441\u043b\u0438 \u043d\u0430\u0439\u0434\u0435\u0442\u0435 RAM \u0434\u0438\u0441\u043a \u0441 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u044b\u043c \u0434\u0438\u0441\u043f\u0435\u0442\u0447\u0435\u0440\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044e.<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441:<\/strong> \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0447\u0442\u043e Transaction log \u0443\u0437\u043a\u043e\u0435 \u043c\u0435\u0441\u0442\u043e. \u0415\u0441\u043b\u0438 Transaction log \u0443\u0437\u043a\u043e\u0435 \u043c\u0435\u0441\u0442\u043e, \u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 transaction \u043b\u043e\u0433 \u0438\u0434\u0435\u0442 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438\u2013 \u043a\u0430\u043a\u0430\u044f \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043f\u0438\u0441\u0430\u0442\u044c \u00a0\u00a0\u043e\u0434\u043d\u0438\u043c \u043a\u0440\u0443\u043f\u043d\u044b\u043c DML \u0438\u043b\u0438\u00a0 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u043c\u0435\u043b\u043a\u0438\u0445 DML?<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442<\/strong>: \u042d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a, \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0438 \u0421\u0423\u0411\u0414 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043d\u0430\u0434 \u043b\u0438\u043a\u0432\u0438\u0434\u0430\u0446\u0438\u0435\u0439 \u0443\u0437\u043a\u0438\u0445 \u043c\u0435\u0441\u0442. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 MS SQL \u00a0\u0437\u0430\u043f\u0438\u0441\u044c \u0432 Transaction Log sql \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0439 \u0441\u043c \u0442\u0443\u0442 <a href=\"https:\/\/learn.microsoft.com\/en-us\/troubleshoot\/sql\/performance\/troubleshoot-sql-io-performance\" rel=\"noopener noreferrer nofollow\">Troubleshoot slow SQL Server performance caused by I\/O issues<\/a><\/p>\n<p>\u201cPrior to SQL Server 2016, a single Log Writer thread performed all log writes. If there were issues with thread scheduling (for example, high CPU), both the Log Writer thread and log flushes could get delayed. In SQL Server 2016, <strong>up to four Log Writer threads<\/strong> were added to increase the log-writing throughput. See SQL 2016 &#8212; It Just Runs Faster: Multiple Log Writer Workers. In SQL Server 2019, up to <strong>eight Log Writer threads were added<\/strong>, which improves throughput even more. Also, in SQL Server 2019, each regular worker thread can do log writes directly instead of posting to the Log writer thread. With these improvements, WRITELOG waits would rarely be triggered by scheduling issues.\u201d<\/p>\n<p>\u00a0<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441<\/strong>. \u0415\u0441\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e \u0431\u043e\u043b\u0435\u0435 \u043a\u0440\u0443\u043f\u043d\u043e\u0439, \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0432 \u0432 \u043d\u0435\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043c\u0435\u043b\u043a\u0438\u0445 DML, \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 transaction log \u0431\u0443\u0434\u0443\u0442 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u043a\u0440\u0443\u043f\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0442\u0438\u044f\u043c\u0438? \u0420\u0430\u0437\u0432\u0435 \u044d\u0442\u043e \u043d\u0435 \u0440\u0435\u0448\u0438\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043c\u0435\u043b\u043a\u0438\u0445 DML?<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u0442\u0440\u0435\u0439\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u0435\u0442 \u043e\u0434\u043d\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f .\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u044c() \u0442\u043e \u0442\u0430\u043c \u043c\u0438\u043d\u0438\u043c\u0443\u043c 7 DML \u0432 \u043e\u0434\u043d\u043e\u0439 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438. \u0422.\u0435. \u0443 \u043d\u0430\u0441 \u0438 \u0442\u0430\u043a \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u043d\u0435 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 DML, \u0430 \u043d\u0430 \u0433\u0440\u0443\u043f\u043f\u0443 DML \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u00a0\u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442, \u0447\u0442\u043e Transaction log \u044d\u0442\u043e \u0431\u0443\u0442\u044b\u043b\u043e\u0447\u043d\u043e\u0435 \u0433\u043e\u0440\u043b\u044b\u0448\u043a\u043e. \u041d\u043e \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u0435\u0441\u0442\u044c \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 <a href=\"https:\/\/learn.microsoft.com\/en-us\/troubleshoot\/sql\/performance\/troubleshoot-sql-io-performance#writelog\" rel=\"noopener noreferrer nofollow\">Tuning writelog<\/a> \u00a0<\/p>\n<blockquote>\n<p>\u201cToo many small transactions: While <strong>large transactions can lead to blocking<\/strong>, too many small <strong>transactions can lead to another set of issues<\/strong>. If you don&#8217;t explicitly begin a transaction, any insert, delete, or update will result in a transaction (we call this auto transaction). If you do 1,000 inserts in a loop, there will be 1,000 transactions generated. Each transaction in this example needs to commit, which results in a transaction log flush and 1,000 transaction flushes. <strong>When possible, group individual update, delete, or insert into a bigger transaction to reduce transaction log flushes and increase performance<\/strong>. This operation can lead to fewer WRITELOG waits.\u201d<\/p>\n<\/blockquote>\n<p>\u0423 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439 \u0421\u0423\u0411\u0414 \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u0436\u0435 \u043d\u0430\u0439\u0442\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u043b\u043a\u0438\u0435 DML \u0432 \u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438. \u0412 \u043d\u0430\u0448\u0435\u043c \u0442\u0435\u0441\u0442\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u0435\u0431\u0435 \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u044c \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c,\u00a0 \u0447\u0442\u0435\u043d\u0438\u0435 \u0438\u0434\u0435\u0442 \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435, \u0430 \u043f\u043e\u043b\u043d\u043e\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\u043c, \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u0442 deadlocks. \u042d\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u0432\u0435\u0434\u044c \u043f\u0440\u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435 \u043f\u0435\u0440\u0435\u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0447\u0442\u0435\u043d\u0438\u044f \u043d\u0430\u0431\u043e\u0440\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 (\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432\\ \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0434\u0430\u043d\u043d\u044b\u0445), \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u043d\u0430\u0431\u043e\u0440\u043e\u0432. \u0412\u0441\u0435 \u044d\u0442\u043e \u0432 \u043a\u0440\u0443\u043f\u043d\u043e\u0439 \u0442\u0440\u0430\u043d\u0437\u0430\u0446\u0438\u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043f\u0440\u043e \u0443\u0440\u043e\u0432\u043d\u0438 \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 ( <a href=\"https:\/\/learn.microsoft.com\/ru-RU\/sql\/t-sql\/language-elements\/transaction-isolation-levels?view=sql-server-2017\" rel=\"noopener noreferrer nofollow\">MS SQL Isolation levels<\/a> ) \u043f\u0440\u043e \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438, \u0434\u0435\u0434\u043b\u043e\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0432\u043b\u0435\u0447\u044c \u0443\u043a\u0440\u0443\u043f\u043d\u0435\u043d\u0438\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0442\u0430\u043a\u0438\u0435 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b\u0435.<\/p>\n<h3>\u0422\u0435\u0441\u0442 \u0441 \u0443\u0434\u043b\u0438\u043d\u0435\u043d\u043d\u043e\u0439 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0435\u0439<\/h3>\n<p>\u0418\u0442\u0430\u043a , \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043a\u043e\u0434 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u0446\u0438\u0438<\/p>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/cbd\/7a5\/ce3\/cbd7a5ce3e39a0bc9fdac0b9f49f30b5.PNG\" width=\"268\" height=\"223\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b: Waits \u043d\u0430 write log \u0443\u0448\u043b\u0438 \u0432 \u043d\u0438\u0437, \u043d\u043e \u043f\u0440\u0430\u0432\u0434\u0430 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c (AvgWait_s)\u00a0 \u0434\u043b\u044f writelog \u0432\u0441\u0435-\u0440\u0430\u0432\u043d\u043e \u043f\u043b\u043e\u0445\u043e\u0435 (\u0437\u0430\u043f\u043e\u043c\u043d\u0438\u043c \u044d\u0442\u043e). \u0412 \u0442\u043e\u043f\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0444\u0430\u0439\u043b\u044b \u0434\u0430\u043d\u043d\u044b\u0445, <\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/a3a\/073\/721\/a3a0737217788e21e79d1ad76d53664d.PNG\" width=\"1180\" height=\"255\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u2013 \u0441\u0442\u0430\u043b \u043b\u0438 Writelog \u043f\u0438\u0441\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e?<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e5c\/bee\/f42\/e5cbeef42e205e98a09d937389c03ee5.PNG\" width=\"1556\" height=\"906\"\/><figcaption><\/figcaption><\/figure>\n<p>Log Bytes Flushed (\u0433\u043e\u043b\u0443\u0431\u043e\u0439) \u2013 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0441\u044f \u043f\u043e \u0443\u0440\u043e\u0432\u043d\u044e, \u044d\u0442\u043e \u0438 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u043c\u043e DML \u0442\u0435 \u0436\u0435 \u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e <strong>\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u0432 20 \u0440\u0430\u0437 \u0431\u043e\u043b\u044c\u0448\u0435<\/strong>. \u041d\u043e \u0432\u043e\u0442 \u0421\u0431\u0440\u043e\u0441 Flushes\\sec\u00a0 (\u043f\u0435\u0441\u043e\u0447\u043d\u044b\u0439) \u0440\u0435\u0437\u043a\u043e \u0443\u043f\u0430\u043b\u043e \u0441 60 \u0434\u043e 30 . <\/p>\n<p>\u0410 \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 \u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0443? \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e Commit, \u044d\u0442\u043e \u043d\u0435 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442 \u0441\u0431\u0440\u043e\u0441 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 transaction log. \u0415\u0441\u0442\u044c \u0435\u0449\u0435 \u0442\u0430\u043a\u043e\u0435 \u043f\u043e\u043d\u044f\u0442\u0438\u0435 \u043a\u0430\u043a Checkpoint , \u043e \u043d\u043e \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 MS SQL , Oracle . \u0415\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u044f\u0432\u043d\u043e, \u043b\u0438\u0431\u043e \u043e\u043d\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u2013 \u0441\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0442\u0443\u0442 <a href=\"https:\/\/learn.microsoft.com\/en-us\/SQL\/relational-databases\/logs\/database-checkpoints-sql-server?view=azuresqldb-current\" rel=\"noopener noreferrer nofollow\">Database checkpoints<\/a><\/p>\n<p>\u041a\u043e \u0432\u0441\u0435\u043c\u0443 \u043f\u0440\u043e\u0447\u0435\u043c\u0443 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 Transaction log \u0438\u0434\u0435\u0442 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e. \u042f \u0434\u0443\u043c\u0430\u044e, \u0442\u0435 \u043a\u0442\u043e \u0434\u0435\u043b\u0430\u043b \u0440\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432 1\u0421 \u043f\u043e\u043c\u043d\u044f\u0442, \u043a\u0430\u043a \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0440\u0430\u0441\u0442\u0438 Transaction log \u043f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442, \u0432\u0435\u0434\u044c \u0432\u0441\u0435 \u0440\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0437\u0430\u0446\u0438\u044e 1\u0421 \u0434\u0435\u043b\u0430\u0435\u0442 \u0432 \u043e\u0434\u043d\u043e\u0439! \u0442\u0440\u0430\u043d\u0437\u0430\u0446\u0438\u0438. \u0415\u0441\u043b\u0438 \u0434\u0443\u043c\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 commit,\u00a0 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0434\u0430\u0439\u0434\u0435\u0441\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u2013 \u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0443\u0442 \u0434\u0435\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u043d\u0430 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 \u0438 \u0412\u044b \u043f\u043e\u0439\u043c\u0435\u0442\u0435 \u043a\u0430\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u0443\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 Transaction log. \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \u2013 \u0432 Oracle Redo log \u0438\u043c\u0435\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438, \u0442\u0430\u043c \u0435\u0449\u0435 \u0432\u0441\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0439 ?<\/p>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u0430\u043b\u044c\u0448\u0435 \u2013 \u043c\u043e\u0436\u0435\u0442 \u0443 \u043d\u0430\u0441 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u044b\u0445 DML \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443? \u041c\u043e\u0436\u0435\u043c \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 BatchRequest\\sec<\/p>\n<p>\u0415\u0441\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u2013 \u0440\u0430\u043d\u044c\u0448\u0435 \u0431\u044b\u043b\u043e <strong>\u043d\u0438\u0436\u0435 10 \u0442\u044b\u0441\\\u0441\u0435\u043a<\/strong>, \u0441\u0435\u0439\u0447\u0430\u0441 \u0443\u0436\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e <strong>10 \u0442\u044b\u0441\\\u0441\u0435\u043a<\/strong><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/44f\/fbb\/428\/44ffbb428a2367b5b5c93b8873b90a2b.PNG\" width=\"1563\" height=\"933\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0443 \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u2013 \u043f\u043e\u0432\u043b\u0438\u044f\u043b\u043e \u043b\u0438 \u044d\u0442\u043e \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432 \u0441\u0430\u043c\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435? \u041d\u0430\u043f\u043e\u043c\u043d\u044e \u043e\u043d\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0430\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (50 \u043f\u043e\u0442\u043e\u043a\u043e\u0432) \u0438 \u0434\u0430\u0436\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435 \u043c\u043e\u0436\u0435\u0442 \u0434\u0430\u0442\u044c \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0438\u043a\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442.<\/p>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c \u0434\u0430 \u043f\u043e\u0432\u043b\u0438\u044f\u043b\u0430 <strong>1803 \u043f\u0440\u043e\u0442\u0438\u0432 1374<\/strong> \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0442\u0435\u0441\u0442\u0435, \u0442.\u0435. \u0440\u043e\u0441\u0442 <strong>31%<\/strong> \u043f\u0440\u043e\u0446\u0435\u043d\u0442. \u0422.\u0435. \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c <strong>1%<\/strong> \u043d\u0430 \u043f\u043e\u0442\u043e\u043a. \u042d\u0442\u043e \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430, \u043d\u043e \u043f\u0440\u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u043c \u043c\u0430\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043e\u0447\u0435\u043d\u044c \u0437\u0430\u043c\u0435\u0442\u043d\u043e.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/62a\/1f2\/7af\/62a1f27afccf11b236b39634149858fe.PNG\" width=\"565\" height=\"195\"\/><figcaption><\/figcaption><\/figure>\n<p>\u041d\u043e \u0435\u0441\u0442\u044c \u0438 \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u043d\u043e\u0432\u043e\u0441\u0442\u044c, Waits \u0441\u0442\u0430\u043b\u0438 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u0437\u043d\u0430\u0447\u0438\u0442 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043e 75 \u043f\u043e\u0442\u043e\u043a\u043e\u0432<\/p>\n<h3>\u041a\u0430\u043a \u043f\u0440\u043e\u0442\u0438\u0441\u043d\u0443\u0442\u044c\u0441\u044f \u0432 \u0431\u0443\u0442\u044b\u043b\u043e\u0447\u043d\u043e\u0435 \u0433\u043e\u0440\u043b\u044b\u0448\u043a\u043e?<\/h3>\n<p>\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0431\u044b\u043b\u0438 \u0434\u0430\u043d\u044b \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"https:\/\/habr.com\/ru\/post\/697504\/\" rel=\"noopener noreferrer nofollow\">\u041a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f ORM \u043a\u0430\u043a \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 \u2014 \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0442 \u043b\u0438 \u0435\u0435 \u0432\u0430\u0448\u0430 \u0421\u0423\u0411\u0414?<\/a> , \u0438 \u044f \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b DML \u043d\u0430 \u043f\u0430\u043a\u0435\u0442 \u0438\u0437 \u0425 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u043d\u0435\u0436\u0435\u043b\u0438 \u043f\u0441\u0435\u0432\u0434\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0438\u043f\u0430 Batching \u0438\u043b\u0438 \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0439 \u0442\u044e\u043d\u0438\u043d\u0433 Transaction log. \u041d\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438. \u0422\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430 \u00a0\u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u0430\u0445 \u2013 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u043c \u00ab orm low performance \u00bb , \u00ab jpa low performance \u00bb . \u041c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438<\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/551902\/\" rel=\"noopener noreferrer nofollow\">\u041f\u043e\u0447\u0435\u043c\u0443 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0437\u0431\u0435\u0433\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f JPA\/Hibernate \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0435 \/ \u0425\u0430\u0431\u0440 (habr.com)<\/a><\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/148044\/\" rel=\"noopener noreferrer nofollow\">\u041e\u0442\u043a\u0443\u0434\u0430 \u0442\u043e\u0440\u043c\u043e\u0437\u0430 \u0432 ORM? \/ \u0425\u0430\u0431\u0440 (habr.com)<\/a><\/p>\n<p><a href=\"https:\/\/blog.logrocket.com\/node-js-orms-why-shouldnt-use\/\" rel=\"noopener noreferrer nofollow\">Node.js ORMs: Why you shouldn\u2019t use them &#8212; LogRocket Blog<\/a><\/p>\n<p><a href=\"https:\/\/www.reddit.com\/r\/programming\/comments\/1cy7xw\/the_two_top_performance_problems_caused_by_orm\/\" rel=\"noopener noreferrer nofollow\">The two top performance problems caused by ORM tools : programming (reddit.com)<\/a><\/p>\n<p><a href=\"https:\/\/www.sivalabs.in\/improve-jpa-performance-using-hypersistence-optimizer\/\" rel=\"noopener noreferrer nofollow\">SivaLabs &#8212; Improve JPA application performance using HypersistenceOptimizer<\/a><\/p>\n<p>\u00a0\u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u043f\u043e\u0432\u0435\u0440\u044c\u044f &#8212; \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u0438\u043d\u044b \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043d\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 Transaction log \u043d\u0435 \u0434\u0430\u0435\u0442, \u00a0\u043d\u043e \u043a \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430\u043c\u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e. \u00a0\u0410 \u043f\u043e\u043a\u0430 \u044d\u0442\u0443 \u043c\u0435\u0442\u043e\u0434\u0438\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043e\u0446\u0435\u043d\u043a\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 Postgres \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0447\u0442\u043e \u0432 1\u0421 \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0431\u0430\u0437\u0443 \u0438\u0437 MS SQL \u0432 Postgres \u043c\u043e\u0436\u043d\u043e \u0448\u0442\u0430\u0442\u043d\u043e\u0439 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u043e\u0439\\\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u0431\u0430\u0437\u044b. \u0414\u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0441\u0442\u0440\u0435\u0447 \u043d\u0430 \u043d\u0430\u0448\u0435\u043c \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c \u043a\u0430\u043d\u0430\u043b\u0435 <strong>t.me\/Chat1CUnlimited<\/strong><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \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\/post\/713724\/\"> https:\/\/habr.com\/ru\/post\/713724\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/697504\/\" rel=\"noopener noreferrer nofollow\">\u041a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f ORM \u043a\u0430\u043a \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 \u2014 \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0442 \u043b\u0438 \u0435\u0435 \u0432\u0430\u0448\u0430 \u0421\u0423\u0411\u0414?<\/a> \u0431\u044b\u043b\u043e \u0436\u0438\u0432\u043e\u0435 \u043e\u0431\u0441\u0443\u0436\u0434\u0435\u043d\u0438\u0435 \u0438 \u043a\u0430\u043a \u044f \u043f\u043e\u043d\u044f\u043b \u0438\u0437 \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u0432, \u043d\u0435 \u0432\u0441\u0435 \u043e\u0441\u043e\u0437\u043d\u0430\u044e\u0442 \u0433\u043b\u0443\u0431\u0438\u043d\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043d\u0438\u0437\u043a\u043e\u0439 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 ORM. \u042f \u0432\u0435\u0440\u044e, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c ORM, \u0433\u0434\u0435 \u043f\u043e\u0442\u0435\u0440\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b, \u043d\u043e \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435 \u043d\u0435 \u0441\u043c\u043e\u0442\u0440\u044f\u0442 \u043a\u0430\u043a \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432 \u0421\u0423\u0411\u0414. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u2013 \u043d\u0438\u0437\u043a\u0430\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c ORM. \u0414\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430 \u0433\u0440\u0430\u043d\u0438\u0446\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0442\u043e\u043d\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0421\u0423\u0411\u0414 \u0438 \u0434\u043b\u044f \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0439 \u043d\u0443\u0436\u043d\u043e \u0438\u043c\u0435\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043e\u043f\u044b\u0442 \u043d\u0430 \u044d\u0442\u0438\u0445 \u0443\u0440\u043e\u0432\u043d\u044f\u0445. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0440\u0435\u0448\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c FAQ \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0442\u0435\u0441\u0442 \u0441 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u043d\u043e\u0439 \u0434\u043b\u0438\u043d\u043d\u043e\u0439 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438. \u00a0\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0443 \u043d\u0430\u0441 \u0437\u0434\u0435\u0441\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u043f\u043e \u043d\u0435\u043f\u0435\u0440\u0435\u0441\u0435\u043a\u0430\u044e\u0449\u0438\u043c\u0441\u044f \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u043c \u043f\u043e\u043b\u044f\u043c, \u0438 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 read committed \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430\u043c\u0438 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442. \u0421\u0442\u0430\u0442\u044c\u044f \u0431\u044b\u043b\u0430 \u0433\u043e\u0442\u043e\u0432\u0430 \u0435\u0449\u0435 \u0432 \u043f\u0440\u043e\u0448\u043b\u043e\u043c \u0433\u043e\u0434\u0443, \u043d\u043e \u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0435\u043b \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/smart-lab.ru\/blog\/868783.php\" rel=\"noopener noreferrer nofollow\">\u043d\u0435\u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u043f\u0440\u043e\u0433\u043d\u043e\u0437 \u043d\u0430 2023 \u0433\u043e\u0434<\/a> \u00a0, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0437\u0430\u0448\u0435\u043b \u043d\u0430 Smart Lab , \u043d\u043e \u043d\u0430 \u0445\u0430\u0431\u0440\u0435 \u043e\u043d \u043d\u0435 \u043f\u0440\u043e\u0448\u0435\u043b \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043d\u0430\u0443\u0447\u043f\u043e\u043f \u2013 \u0432\u0438\u0434\u0438\u043c\u043e \u0440\u0430\u0431\u043e\u0442\u044b \u0443\u0447\u0435\u043d\u043e\u0433\u043e \u0427\u0438\u0436\u0435\u0432\u0441\u043a\u043e\u0433\u043e \u0410 \u0437\u0430\u0431\u044b\u0442\u044b .<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0438\u0437\u043b\u043e\u0436\u0435\u043d FAQ , \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0434\u043b\u044f\u00a0 MS SQL \u0438 Oracle, \u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c Postgres \u0442\u0435\u043c \u0436\u0435 \u043c\u0435\u0442\u043e\u0434\u043e\u043c. \u0412\u043e\u0442 \u0438 \u0443\u0432\u0438\u0434\u0438\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043b\u0438 Postgres \u0438\u043c\u043f\u043e\u0440\u0442\u043e\u0437\u0430\u043c\u0435\u0449\u0435\u043d\u0438\u0435\u043c \u0434\u043b\u044f 1\u0421 \u0438\u043b\u0438 \u043d\u0435\u0442.<\/p>\n<h3>\u0427\u0430\u0441\u0442\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b<\/h3>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441<\/strong>: \u0410 \u043e \u0447\u0451\u043c \u0441\u0442\u0430\u0442\u044c\u044f? \u041e \u0442\u043e\u043c, \u0447\u0442\u043e \u0435\u0449\u0451 \u043e\u0434\u0438\u043d \u0441\u043b\u043e\u0439 \u0430\u0431\u0441\u0442\u0440\u0430\u043a\u0446\u0438\u0438 ORM \u043d\u0430\u0434 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0443? \u0422\u0430\u043a \u044d\u0442\u043e \u043a\u0430\u043a \u0431\u044b \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e.<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> ORM\u00a0 \u0443\u0441\u043a\u043e\u0440\u044f\u0435\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u0439, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u0437\u043d\u0430\u0447\u0438\u0442 \u0447\u0442\u043e \u043e\u043d \u0434\u043e\u043b\u0436\u0435\u043d \u0437\u0430\u043c\u0435\u0434\u043b\u044f\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443. \u0415\u0441\u043b\u0438 ORM \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u043d\u0430\u0431\u043e\u0440\u0430\u043c\u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0435\u0439 (\u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0442.\u0434.), \u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c ORM \u043a\u0440\u0443\u043f\u043d\u044b\u0435 DML , \u0442\u043e \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u043c\u0435\u0434\u043b\u0435\u043d\u0438\u0439 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442. \u041d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u0437\u0430 \u0441\u0447\u0435\u0442 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0430\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0438\u0436\u0435 ) \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e. <\/p>\n<p>\u00a0<strong>\u0412\u043e\u043f\u0440\u043e\u0441<\/strong>: \u0415\u0441\u043b\u0438 \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u043f\u043e\u0442\u043e\u043a \u043c\u0435\u043b\u043a\u0438\u0445 DML \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 ORM, \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u044b \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u0438\u0439 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0421\u0423\u0411\u0414 (ODBC, JDBC)?<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> ORM \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043a\u0440\u0443\u043f\u043d\u044b\u0435 DML , \u043d\u043e \u0435\u0441\u043b\u0438 \u043e\u043d\u0430 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u0441\u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439\\\u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043e\u0434\u043d\u0438\u043c \u043a\u0440\u0443\u043f\u043d\u044b\u043c DML. \u0423\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u0430 Batching, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 JDBC \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043d\u0435 \u0440\u0435\u0448\u0430\u044e\u0442. ORM \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u0441\u043a\u043e\u0440\u0438\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0443, \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0435 \u043c\u043d\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 ORM \u043d\u0430 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u0421\u0423\u0411\u0414 \u043d\u0435 \u0440\u0430\u0441\u0441\u0447\u0438\u0442\u0430\u043d\u044b. \u042d\u0442\u043e \u0436\u0435 \u043d\u0435 \u043f\u043e\u0432\u043e\u0434 \u043e\u0442\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 ORM \u0434\u043b\u044f Highload \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439?<\/p>\n<p>\u00a0<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441:<\/strong> \u00a0\u0421\u0442\u0430\u0442\u044c\u0435 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0447\u0442\u043e SSD \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0443\u0437\u043a\u0438\u043c \u043c\u0435\u0441\u0442\u043e\u043c \u0438\u0437 \u0437\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u044f \u0437\u0430\u043f\u0430\u0441\u0430 \u043f\u043e IOPS. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0441 SSD \u044d\u0442\u043e \u043d\u0435 \u0434\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u043e\u0433 \u043d\u0430 RAM \u0434\u0438\u0441\u043a\u0435 \u043f\u043e\u043a\u0430\u0436\u0435\u0442 \u0438\u0441\u0442\u0438\u043d\u043d\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443.<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong> \u0422\u0435\u0441\u0442\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 , \u0447\u0442\u043e \u0441\u0430\u043c RAM \u0434\u0438\u0441\u043a \u00a0\u00a0\u0441\u0430\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0443\u0437\u043a\u0438\u043c \u043c\u0435\u0441\u0442\u043e\u043c \u0441\u043c \u0442\u0443\u0442 <a href=\"https:\/\/habr.com\/ru\/post\/694554\/\" rel=\"noopener noreferrer nofollow\">\u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0440\u0430\u0431\u043e\u0442\u044b 1C \u0432 \u0440\u0435\u0436\u0438\u043c\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438, MS SQL \u0438 POSTGRES \u043d\u0430 HDD, SSD \u0438 RAMDisk<\/a> \u00a0\u0438 \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0435\u0442 SSD. \u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u0434\u0438\u0441\u043f\u0435\u0442\u0447\u0435\u0440 RAM \u0434\u0438\u0441\u043a\u0430 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0438 \u0432\u0438\u0441\u0438\u0442 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u044f\u0434\u0440\u0435. \u0415\u0441\u043b\u0438 \u043d\u0430\u0439\u0434\u0435\u0442\u0435 RAM \u0434\u0438\u0441\u043a \u0441 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u044b\u043c \u0434\u0438\u0441\u043f\u0435\u0442\u0447\u0435\u0440\u043e\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044e.<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441:<\/strong> \u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442\u0441\u044f \u0447\u0442\u043e Transaction log \u0443\u0437\u043a\u043e\u0435 \u043c\u0435\u0441\u0442\u043e. \u0415\u0441\u043b\u0438 Transaction log \u0443\u0437\u043a\u043e\u0435 \u043c\u0435\u0441\u0442\u043e, \u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 transaction \u043b\u043e\u0433 \u0438\u0434\u0435\u0442 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438\u2013 \u043a\u0430\u043a\u0430\u044f \u0440\u0430\u0437\u043d\u0438\u0446\u0430 \u043f\u0438\u0441\u0430\u0442\u044c \u00a0\u00a0\u043e\u0434\u043d\u0438\u043c \u043a\u0440\u0443\u043f\u043d\u044b\u043c DML \u0438\u043b\u0438\u00a0 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e\u043c \u043c\u0435\u043b\u043a\u0438\u0445 DML?<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442<\/strong>: \u042d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a, \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0438 \u0421\u0423\u0411\u0414 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043d\u0430\u0434 \u043b\u0438\u043a\u0432\u0438\u0434\u0430\u0446\u0438\u0435\u0439 \u0443\u0437\u043a\u0438\u0445 \u043c\u0435\u0441\u0442. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 MS SQL \u00a0\u0437\u0430\u043f\u0438\u0441\u044c \u0432 Transaction Log sql \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u0434\u0435\u043b\u0430\u043b\u0438 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0439 \u0441\u043c \u0442\u0443\u0442 <a href=\"https:\/\/learn.microsoft.com\/en-us\/troubleshoot\/sql\/performance\/troubleshoot-sql-io-performance\" rel=\"noopener noreferrer nofollow\">Troubleshoot slow SQL Server performance caused by I\/O issues<\/a><\/p>\n<p>\u201cPrior to SQL Server 2016, a single Log Writer thread performed all log writes. If there were issues with thread scheduling (for example, high CPU), both the Log Writer thread and log flushes could get delayed. In SQL Server 2016, <strong>up to four Log Writer threads<\/strong> were added to increase the log-writing throughput. See SQL 2016 &#8212; It Just Runs Faster: Multiple Log Writer Workers. In SQL Server 2019, up to <strong>eight Log Writer threads were added<\/strong>, which improves throughput even more. Also, in SQL Server 2019, each regular worker thread can do log writes directly instead of posting to the Log writer thread. With these improvements, WRITELOG waits would rarely be triggered by scheduling issues.\u201d<\/p>\n<p>\u00a0<\/p>\n<p><strong>\u0412\u043e\u043f\u0440\u043e\u0441<\/strong>. \u0415\u0441\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044e \u0431\u043e\u043b\u0435\u0435 \u043a\u0440\u0443\u043f\u043d\u043e\u0439, \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0432 \u0432 \u043d\u0435\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043c\u0435\u043b\u043a\u0438\u0445 DML, \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 transaction log \u0431\u0443\u0434\u0443\u0442 \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u043a\u0440\u0443\u043f\u043d\u044b\u043c\u0438 \u043f\u0430\u0440\u0442\u0438\u044f\u043c\u0438? \u0420\u0430\u0437\u0432\u0435 \u044d\u0442\u043e \u043d\u0435 \u0440\u0435\u0448\u0438\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043c\u0435\u043b\u043a\u0438\u0445 DML?<\/p>\n<p><strong>\u041e\u0442\u0432\u0435\u0442:<\/strong><\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043d\u0430 \u0442\u0440\u0435\u0439\u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0440\u043e\u0436\u0434\u0430\u0435\u0442 \u043e\u0434\u043d\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f .\u0417\u0430\u043f\u0438\u0441\u0430\u0442\u044c() \u0442\u043e \u0442\u0430\u043c \u043c\u0438\u043d\u0438\u043c\u0443\u043c 7 DML \u0432 \u043e\u0434\u043d\u043e\u0439 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438. \u0422.\u0435. \u0443 \u043d\u0430\u0441 \u0438 \u0442\u0430\u043a \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u043d\u0435 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 DML, \u0430 \u043d\u0430 \u0433\u0440\u0443\u043f\u043f\u0443 DML \u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u00a0\u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0439 \u0447\u0430\u0441\u0442\u0438 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442, \u0447\u0442\u043e Transaction log \u044d\u0442\u043e \u0431\u0443\u0442\u044b\u043b\u043e\u0447\u043d\u043e\u0435 \u0433\u043e\u0440\u043b\u044b\u0448\u043a\u043e. \u041d\u043e \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u0435\u0441\u0442\u044c \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 <a href=\"https:\/\/learn.microsoft.com\/en-us\/troubleshoot\/sql\/performance\/troubleshoot-sql-io-performance#writelog\" rel=\"noopener noreferrer nofollow\">Tuning writelog<\/a> \u00a0<\/p>\n<blockquote>\n<p>\u201cToo many small transactions: While <strong>large transactions can lead to blocking<\/strong>, too many small <strong>transactions can lead to another set of issues<\/strong>. If you don&#8217;t explicitly begin a transaction, any insert, delete, or update will result in a transaction (we call this auto transaction). If you do 1,000 inserts in a loop, there will be 1,000 transactions generated. Each transaction in this example needs to commit, which results in a transaction log flush and 1,000 transaction flushes. <strong>When possible, group individual update, delete, or insert into a bigger transaction to reduce transaction log flushes and increase performance<\/strong>. This operation can lead to fewer WRITELOG waits.\u201d<\/p>\n<\/blockquote>\n<p>\u0423 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u0435\u0439 \u0421\u0423\u0411\u0414 \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u0436\u0435 \u043d\u0430\u0439\u0442\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0433\u0440\u0443\u043f\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u043b\u043a\u0438\u0435 DML \u0432 \u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438. \u0412 \u043d\u0430\u0448\u0435\u043c \u0442\u0435\u0441\u0442\u0435 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u0435\u0431\u0435 \u044d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442\u044c \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c,\u00a0 \u0447\u0442\u0435\u043d\u0438\u0435 \u0438\u0434\u0435\u0442 \u0432 \u0441\u0430\u043c\u043e\u043c \u043d\u0430\u0447\u0430\u043b\u0435, \u0430 \u043f\u043e\u043b\u043d\u043e\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430\u043c, \u0438 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0430\u0435\u0442 deadlocks. \u042d\u0442\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0438\u0434\u0435\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f, \u0432\u0435\u0434\u044c \u043f\u0440\u0438 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435 \u043f\u0435\u0440\u0435\u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u0447\u0442\u0435\u043d\u0438\u044f \u043d\u0430\u0431\u043e\u0440\u043e\u0432 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 (\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u0437 \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0432\\ \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0434\u0430\u043d\u043d\u044b\u0445), \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u043d\u0430\u0431\u043e\u0440\u043e\u0432. \u0412\u0441\u0435 \u044d\u0442\u043e \u0432 \u043a\u0440\u0443\u043f\u043d\u043e\u0439 \u0442\u0440\u0430\u043d\u0437\u0430\u0446\u0438\u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u0438\u0442 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c \u043f\u0440\u043e \u0443\u0440\u043e\u0432\u043d\u0438 \u0438\u0437\u043e\u043b\u044f\u0446\u0438\u0438 ( <a href=\"https:\/\/learn.microsoft.com\/ru-RU\/sql\/t-sql\/language-elements\/transaction-isolation-levels?view=sql-server-2017\" rel=\"noopener noreferrer nofollow\">MS SQL Isolation levels<\/a> ) \u043f\u0440\u043e \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0438, \u0434\u0435\u0434\u043b\u043e\u043a\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0432\u043b\u0435\u0447\u044c \u0443\u043a\u0440\u0443\u043f\u043d\u0435\u043d\u0438\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0442\u0430\u043a\u0438\u0435 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b\u0435.<\/p>\n<h3>\u0422\u0435\u0441\u0442 \u0441 \u0443\u0434\u043b\u0438\u043d\u0435\u043d\u043d\u043e\u0439 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0435\u0439<\/h3>\n<p>\u0418\u0442\u0430\u043a , \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0439 \u043a\u043e\u0434 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043d\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0434\u0435\u043b\u0430\u0442\u044c \u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u0442\u0440\u0430\u043d\u0437\u0430\u0446\u0438\u0438<\/p>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b: Waits \u043d\u0430 write log \u0443\u0448\u043b\u0438 \u0432 \u043d\u0438\u0437, \u043d\u043e \u043f\u0440\u0430\u0432\u0434\u0430 \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c (AvgWait_s)\u00a0 \u0434\u043b\u044f writelog \u0432\u0441\u0435-\u0440\u0430\u0432\u043d\u043e \u043f\u043b\u043e\u0445\u043e\u0435 (\u0437\u0430\u043f\u043e\u043c\u043d\u0438\u043c \u044d\u0442\u043e). \u0412 \u0442\u043e\u043f\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u0444\u0430\u0439\u043b\u044b \u0434\u0430\u043d\u043d\u044b\u0445, <\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u2013 \u0441\u0442\u0430\u043b \u043b\u0438 Writelog \u043f\u0438\u0441\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e?<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>Log Bytes Flushed (\u0433\u043e\u043b\u0443\u0431\u043e\u0439) \u2013 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u043b\u0441\u044f \u043f\u043e \u0443\u0440\u043e\u0432\u043d\u044e, \u044d\u0442\u043e \u0438 \u043e\u0431\u044a\u044f\u0441\u043d\u0438\u043c\u043e DML \u0442\u0435 \u0436\u0435 \u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e <strong>\u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u044f \u0432 20 \u0440\u0430\u0437 \u0431\u043e\u043b\u044c\u0448\u0435<\/strong>. \u041d\u043e \u0432\u043e\u0442 \u0421\u0431\u0440\u043e\u0441 Flushes\\sec\u00a0 (\u043f\u0435\u0441\u043e\u0447\u043d\u044b\u0439) \u0440\u0435\u0437\u043a\u043e \u0443\u043f\u0430\u043b\u043e \u0441 60 \u0434\u043e 30 . <\/p>\n<p>\u0410 \u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0435 \u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0432\u0435\u043b\u0438\u0447\u0438\u043d\u0443? \u041f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e Commit, \u044d\u0442\u043e \u043d\u0435 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0441\u043e\u0431\u044b\u0442\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0438\u043d\u0438\u0446\u0438\u0438\u0440\u0443\u0435\u0442 \u0441\u0431\u0440\u043e\u0441 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 transaction log. \u0415\u0441\u0442\u044c \u0435\u0449\u0435 \u0442\u0430\u043a\u043e\u0435 \u043f\u043e\u043d\u044f\u0442\u0438\u0435 \u043a\u0430\u043a Checkpoint , \u043e \u043d\u043e \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 MS SQL , Oracle . \u0415\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0437\u044b\u0432\u0430\u0442\u044c \u044f\u0432\u043d\u043e, \u043b\u0438\u0431\u043e \u043e\u043d\u043e \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f \u2013 \u0441\u043c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0442\u0443\u0442 <a href=\"https:\/\/learn.microsoft.com\/en-us\/SQL\/relational-databases\/logs\/database-checkpoints-sql-server?view=azuresqldb-current\" rel=\"noopener noreferrer nofollow\">Database checkpoints<\/a><\/p>\n<p>\u041a\u043e \u0432\u0441\u0435\u043c\u0443 \u043f\u0440\u043e\u0447\u0435\u043c\u0443 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 Transaction log \u0438\u0434\u0435\u0442 \u0430\u0441\u0438\u043d\u0445\u0440\u043e\u043d\u043d\u043e. \u042f \u0434\u0443\u043c\u0430\u044e, \u0442\u0435 \u043a\u0442\u043e \u0434\u0435\u043b\u0430\u043b \u0440\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0437\u0430\u0446\u0438\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432 1\u0421 \u043f\u043e\u043c\u043d\u044f\u0442, \u043a\u0430\u043a \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0440\u0430\u0441\u0442\u0438 Transaction log \u043f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u0440\u0435\u043a\u0432\u0438\u0437\u0438\u0442\u0430 \u0432 \u043e\u0431\u044a\u0435\u043a\u0442, \u0432\u0435\u0434\u044c \u0432\u0441\u0435 \u0440\u0435\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0438\u0437\u0430\u0446\u0438\u044e 1\u0421 \u0434\u0435\u043b\u0430\u0435\u0442 \u0432 \u043e\u0434\u043d\u043e\u0439! \u0442\u0440\u0430\u043d\u0437\u0430\u0446\u0438\u0438. \u0415\u0441\u043b\u0438 \u0434\u0443\u043c\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0432\u0441\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 commit,\u00a0 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0434\u0430\u0439\u0434\u0435\u0441\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u043e\u043c \u2013 \u043a\u0443\u0434\u0430 \u0431\u0443\u0434\u0443\u0442 \u0434\u0435\u0432\u0430\u0442\u044c\u0441\u044f \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438 \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u043d\u0430 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 \u0438 \u0412\u044b \u043f\u043e\u0439\u043c\u0435\u0442\u0435 \u043a\u0430\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0438\u0440\u0443\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 Transaction log. \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435 \u2013 \u0432 Oracle Redo log \u0438\u043c\u0435\u0435\u0442 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438, \u0442\u0430\u043c \u0435\u0449\u0435 \u0432\u0441\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0439 ?<\/p>\n<p>\u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0434\u0430\u043b\u044c\u0448\u0435 \u2013 \u043c\u043e\u0436\u0435\u0442 \u0443 \u043d\u0430\u0441 \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u043c\u044b\u0445 DML \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443? \u041c\u043e\u0436\u0435\u043c \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 BatchRequest\\sec<\/p>\n<p>\u0415\u0441\u0442\u044c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u2013 \u0440\u0430\u043d\u044c\u0448\u0435 \u0431\u044b\u043b\u043e <strong>\u043d\u0438\u0436\u0435 10 \u0442\u044b\u0441\\\u0441\u0435\u043a<\/strong>, \u0441\u0435\u0439\u0447\u0430\u0441 \u0443\u0436\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e <strong>10 \u0442\u044b\u0441\\\u0441\u0435\u043a<\/strong><\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0443 \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u2013 \u043f\u043e\u0432\u043b\u0438\u044f\u043b\u043e \u043b\u0438 \u044d\u0442\u043e \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432 \u0441\u0430\u043c\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0435? \u041d\u0430\u043f\u043e\u043c\u043d\u044e \u043e\u043d\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043c\u0430\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f (50 \u043f\u043e\u0442\u043e\u043a\u043e\u0432) \u0438 \u0434\u0430\u0436\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0432 \u043a\u0430\u0436\u0434\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435 \u043c\u043e\u0436\u0435\u0442 \u0434\u0430\u0442\u044c \u043c\u0443\u043b\u044c\u0442\u0438\u043f\u043b\u0438\u043a\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442.<\/p>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c \u0434\u0430 \u043f\u043e\u0432\u043b\u0438\u044f\u043b\u0430 <strong>1803 \u043f\u0440\u043e\u0442\u0438\u0432 1374<\/strong> \u0432 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0442\u0435\u0441\u0442\u0435, \u0442.\u0435. \u0440\u043e\u0441\u0442 <strong>31%<\/strong> \u043f\u0440\u043e\u0446\u0435\u043d\u0442. \u0422.\u0435. \u043c\u0435\u043d\u044c\u0448\u0435 \u0447\u0435\u043c <strong>1%<\/strong> \u043d\u0430 \u043f\u043e\u0442\u043e\u043a. \u042d\u0442\u043e \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u043d\u043e \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430, \u043d\u043e \u043f\u0440\u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u043c \u043c\u0430\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043e\u0447\u0435\u043d\u044c \u0437\u0430\u043c\u0435\u0442\u043d\u043e.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u043e \u0435\u0441\u0442\u044c \u0438 \u0445\u043e\u0440\u043e\u0448\u0430\u044f \u043d\u043e\u0432\u043e\u0441\u0442\u044c, Waits \u0441\u0442\u0430\u043b\u0438 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043c\u0435\u043d\u044c\u0448\u0435 \u0437\u043d\u0430\u0447\u0438\u0442 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0434\u043e 75 \u043f\u043e\u0442\u043e\u043a\u043e\u0432<\/p>\n<h3>\u041a\u0430\u043a \u043f\u0440\u043e\u0442\u0438\u0441\u043d\u0443\u0442\u044c\u0441\u044f \u0432 \u0431\u0443\u0442\u044b\u043b\u043e\u0447\u043d\u043e\u0435 \u0433\u043e\u0440\u043b\u044b\u0448\u043a\u043e?<\/h3>\n<p>\u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438 \u0431\u044b\u043b\u0438 \u0434\u0430\u043d\u044b \u0432 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"https:\/\/habr.com\/ru\/post\/697504\/\" rel=\"noopener noreferrer nofollow\">\u041a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044f ORM \u043a\u0430\u043a \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441\u0430 \u2014 \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0442 \u043b\u0438 \u0435\u0435 \u0432\u0430\u0448\u0430 \u0421\u0423\u0411\u0414?<\/a> , \u0438 \u044f \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043a\u0440\u0443\u043f\u043d\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b DML \u043d\u0430 \u043f\u0430\u043a\u0435\u0442 \u0438\u0437 \u0425 \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u043d\u0435\u0436\u0435\u043b\u0438 \u043f\u0441\u0435\u0432\u0434\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u0438 \u0442\u0438\u043f\u0430 Batching \u0438\u043b\u0438 \u0433\u043b\u0443\u0431\u043e\u043a\u0438\u0439 \u0442\u044e\u043d\u0438\u043d\u0433 Transaction log. \u041d\u043e \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0434\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u0430 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438. \u0422\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430 \u00a0\u0432 \u0440\u0430\u0437\u043d\u044b\u0445 \u044f\u0437\u044b\u043a\u0430\u0445 \u2013 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0441\u043b\u043e\u0432\u0430\u043c \u00ab orm low performance \u00bb , \u00ab jpa low performance \u00bb . \u041c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438<\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/551902\/\" rel=\"noopener noreferrer nofollow\">\u041f\u043e\u0447\u0435\u043c\u0443 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0437\u0431\u0435\u0433\u0430\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f JPA\/Hibernate \u0432 \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0435 \/ \u0425\u0430\u0431\u0440 (habr.com)<\/a><\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/148044\/\" rel=\"noopener noreferrer nofollow\">\u041e\u0442\u043a\u0443\u0434\u0430 \u0442\u043e\u0440\u043c\u043e\u0437\u0430 \u0432 ORM? \/ \u0425\u0430\u0431\u0440 (habr.com)<\/a><\/p>\n<p><a href=\"https:\/\/blog.logrocket.com\/node-js-orms-why-shouldnt-use\/\" rel=\"noopener noreferrer nofollow\">Node.js ORMs: Why you shouldn\u2019t use them &#8212; LogRocket Blog<\/a><\/p>\n<p><a href=\"https:\/\/www.reddit.com\/r\/programming\/comments\/1cy7xw\/the_two_top_performance_problems_caused_by_orm\/\" rel=\"noopener noreferrer nofollow\">The two top performance problems caused by ORM tools : programming (reddit.com)<\/a><\/p>\n<p><a href=\"https:\/\/www.sivalabs.in\/improve-jpa-performance-using-hypersistence-optimizer\/\" rel=\"noopener noreferrer nofollow\">SivaLabs &#8212; Improve JPA application performance using HypersistenceOptimizer<\/a><\/p>\n<p>\u00a0\u041d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u043f\u043e\u0432\u0435\u0440\u044c\u044f &#8212; \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u0438\u043d\u044b \u0442\u0440\u0430\u043d\u0437\u0430\u043a\u0446\u0438\u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u043d\u043e\u0439 \u0441\u043f\u043e\u0441\u043e\u0431\u043d\u043e\u0441\u0442\u0438 Transaction log \u043d\u0435 \u0434\u0430\u0435\u0442, \u00a0\u043d\u043e \u043a \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u043c \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441 \u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u043a\u0430\u043c\u0438 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u0442 \u0441 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e. \u00a0\u0410 \u043f\u043e\u043a\u0430 \u044d\u0442\u0443 \u043c\u0435\u0442\u043e\u0434\u0438\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043e\u0446\u0435\u043d\u043a\u0438 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 Postgres \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u0447\u0442\u043e \u0432 1\u0421 \u043f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0431\u0430\u0437\u0443 \u0438\u0437 MS SQL \u0432 Postgres \u043c\u043e\u0436\u043d\u043e \u0448\u0442\u0430\u0442\u043d\u043e\u0439 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u043e\u0439\\\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u0431\u0430\u0437\u044b. \u0414\u043e \u043d\u043e\u0432\u044b\u0445 \u0432\u0441\u0442\u0440\u0435\u0447 \u043d\u0430 \u043d\u0430\u0448\u0435\u043c \u0442\u0435\u043b\u0435\u0433\u0440\u0430\u043c\u043c \u043a\u0430\u043d\u0430\u043b\u0435 <strong>t.me\/Chat1CUnlimited<\/strong><\/p>\n<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p> <!----> <!----><\/div>\n<p> <!----> <!----><br \/> \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\/post\/713724\/\"> https:\/\/habr.com\/ru\/post\/713724\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-344704","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/344704","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=344704"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/344704\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=344704"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=344704"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=344704"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}