{"id":479721,"date":"2026-05-14T10:31:16","date_gmt":"2026-05-14T10:31:16","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=479721"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=479721","title":{"rendered":"\u041a\u043e\u0433\u0434\u0430 bottleneck \u043d\u0435 \u0432 \u0411\u0414: \u0443\u0441\u043a\u043e\u0440\u044f\u0435\u043c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e Excel \u2014 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0432 Go"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u0412\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a!<\/p>\n<p>\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u0436\u0438\u0442\u044b\u0439 \u043e\u043f\u044b\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043e\u0442\u0447\u0435\u0442\u043e\u043c \u0445\u043e\u0447\u0443 \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u0432\u0441\u0435\u043e\u0431\u0449\u0435\u0435 \u043e\u0431\u043e\u0437\u0440\u0435\u043d\u0438\u0435, <\/p>\n<p>\u0432\u0434\u0440\u0443\u0433 \u043a\u043e\u043c\u0443-\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u0435\u043d. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0442\u043e\u043c\u0438\u0442\u044c \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0440\u0430\u0437\u0443 \u043d\u0430\u0447\u043d\u0435\u043c &#171;\u0440\u0430\u0437\u0431\u043e\u0440 \u043f\u043e\u043b\u0451\u0442\u0430&#187;.<\/p>\n<p>\u0412 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u0443 \u043d\u0430\u0441 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u043f\u0440\u043e\u0441:<\/p>\n<ul>\n<li>\n<p>\u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c Excel-\u043e\u0442\u0447\u0451\u0442<\/p>\n<\/li>\n<li>\n<p>\u043e\u043a\u043e\u043b\u043e 150k \u0441\u0442\u0440\u043e\u043a \u0434\u0430\u043d\u043d\u044b\u0445<\/p>\n<\/li>\n<li>\n<p>Go + excelize<\/p>\n<\/li>\n<li>\n<p>\u043e\u0431\u044b\u0447\u043d\u044b\u0439 HTTP endpoint<\/p>\n<\/li>\n<\/ul>\n<p>SQL-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0431\u044b\u0441\u0442\u0440\u043e. \u0418\u043d\u0434\u0435\u043a\u0441\u044b \u0431\u044b\u043b\u0438 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u041f\u0430\u043c\u044f\u0442\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0445\u0432\u0430\u0442\u0430\u043b\u043e.<\/p>\n<p>\u041d\u043e \u0441\u0430\u043c Excel-\u043e\u0442\u0447\u0451\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u043c\u0438\u043d\u0443\u0442\u044b.<\/p>\n<p>\u041d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u0430 \u043e\u043a\u043e\u043b\u043e 16 \u0441\u0435\u043a\u0443\u043d\u0434. \u041d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u2014 35-40 \u0441\u0435\u043a\u0443\u043d\u0434, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e nginx \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c <code>502 Bad Gateway<\/code>.<\/p>\n<p>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0442\u0430\u043c, \u0433\u0434\u0435 \u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c.<\/p>\n<p>Bottleneck \u0431\u044b\u043b:<\/p>\n<ul>\n<li>\n<p>\u043d\u0435 \u0432 \u0411\u0414<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435 \u0432 \u0441\u0435\u0442\u0438<\/p>\n<\/li>\n<li>\n<p>\u043d\u0435 \u0432 JSON<\/p>\n<\/li>\n<li>\n<p>\u0430 \u0432 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 Excel.<\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u0438\u0447\u0451\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0443\u0445\u043e\u0434\u0438\u043b\u043e \u043d\u0435 \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u043d\u0430:<\/p>\n<ul>\n<li>\n<p>\u0441\u0442\u0438\u043b\u0438<\/p>\n<\/li>\n<li>\n<p>XML-\u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e<\/p>\n<\/li>\n<li>\n<p>allocations<\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b <code>SetCellStyle<\/code><\/p>\n<\/li>\n<li>\n<p>\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0442\u044b\u0441\u044f\u0447 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u043a\u043b\u043e\u0432.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u043a\u0430\u0436\u0443:<\/p>\n<ul>\n<li>\n<p>\u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0430\u0438\u0432\u043d\u0430\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f Excel \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0430\u044f<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a <code>SetCellStyle<\/code> \u0443\u0431\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u0435\u043d <code>StreamWriter<\/code><\/p>\n<\/li>\n<li>\n<p>\u043f\u043e\u0447\u0435\u043c\u0443 <code>StreamWriter<\/code> \u043b\u043e\u043c\u0430\u0435\u0442 \u0448\u0430\u0431\u043b\u043e\u043d\u044b<\/p>\n<\/li>\n<li>\n<p>\u043a\u0430\u043a \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043f\u043e\u0442\u043e\u043a\u043e\u0432\u0443\u044e \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u0438 Excel template<\/p>\n<\/li>\n<li>\n<p>\u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 Excel-\u044d\u043a\u0441\u043f\u043e\u0440\u0442\u044b \u043b\u0443\u0447\u0448\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u044b\u043d\u043e\u0441\u0438\u0442\u044c \u0438\u0437 HTTP lifecycle.<\/p>\n<\/li>\n<\/ul>\n<h2>\u041d\u0430\u0438\u0432\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/h2>\n<p>\u041f\u0435\u0440\u0432\u043e\u0435, \u0441 \u0447\u0435\u0433\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043b\u044e\u0431\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u2014 \u044d\u0442\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0447\u0435\u0440\u0435\u0437 <code>excelize.NewFile()<\/code> \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u044f\u0447\u0435\u0435\u043a.<\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0432\u0441\u0451 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e: \u0435\u0441\u0442\u044c \u0444\u0430\u0439\u043b, \u0435\u0441\u0442\u044c \u0446\u0438\u043a\u043b \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c, \u0435\u0441\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 \u044f\u0447\u0435\u0439\u043a\u0438.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0443\u043f\u0440\u043e\u0449\u0451\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"go\">xlsx := excelize.NewFile()sheet := \"Report\"index, _ := xlsx.NewSheet(sheet)xlsx.DeleteSheet(\"Sheet1\")startRow := 4for i, v := range payments {    row := startRow + i    xlsx.SetCellValue(sheet, fmt.Sprintf(\"A%d\", row), i+1)    xlsx.SetCellValue(sheet, fmt.Sprintf(\"B%d\", row), v.Account)    xlsx.SetCellValue(sheet, fmt.Sprintf(\"C%d\", row), v.Amount)    xlsx.SetCellValue(sheet, fmt.Sprintf(\"D%d\", row), v.Reward)    xlsx.SetCellValue(sheet, fmt.Sprintf(\"E%d\", row), v.ServiceName)}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u2014 \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e. \u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u043b\u0430\u0435\u0442 \u0440\u043e\u0432\u043d\u043e \u0442\u043e, \u0447\u0442\u043e \u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f: \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442 Excel-\u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e.<\/p>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u201c\u0431\u0435\u0437 \u0441\u0442\u0438\u043b\u0435\u0439 Excel \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u043b\u043e\u0445\u043e\u201d.<\/p>\n<p>\u0418 \u0438\u043c\u0435\u043d\u043d\u043e \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438:<\/p>\n<pre><code class=\"go\">xlsx.SetCellStyle(sheet, fmt.Sprintf(\"A%d\", row), fmt.Sprintf(\"D%d\", row), someStyle)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0418, \u0447\u0442\u043e \u0432\u0430\u0436\u043d\u043e \u2014 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u043a\u043b\u0430 \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.<\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043e\u0434\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0432 \u0437\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0432:<\/p>\n<ul>\n<li>\n<p>\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u044f\u0447\u0435\u0435\u043a<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0438\u043b\u0435\u0439<\/p>\n<\/li>\n<li>\n<p>\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e XML-\u0443\u0437\u043b\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0430\u0439\u043b\u0430<\/p>\n<\/li>\n<li>\n<p>\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 allocations \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430 \u043e\u0431\u044a\u0451\u043c\u0430\u0445 \u0432 100k+ \u0441\u0442\u0440\u043e\u043a \u044d\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0438\u0433\u0440\u0430\u0442\u044c \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0440\u043e\u043b\u044c.<\/p>\n<p>\u0418 \u0435\u0441\u043b\u0438 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u044d\u0442\u043e \u0435\u0449\u0451 \u0442\u0435\u0440\u043f\u0438\u043c\u043e, \u0442\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u043e\u0434 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u044d\u0442\u043e \u043b\u0435\u0433\u043a\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0441\u0435\u043a\u0443\u043d\u0434 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0438, \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, timeout \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 nginx.<\/p>\n<h2>\u0413\u0434\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430<\/h2>\n<p>\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u2014 \u0411\u0414, \u0441\u0435\u0442\u044c, \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 <em>explain analyse  <\/em>\u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0431\u044b\u043b\u0438 \u0445\u043e\u0440\u043e\u0448\u0438\u043c\u0438 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u043e\u0431\u044a\u0435\u043c\u0430<em>:<\/em><\/p>\n<details class=\"spoiler\">\n<summary>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0430\u043d\u0430\u043b\u0438\u0437\u0430<\/summary>\n<div class=\"spoiler__content\">\n<pre><code class=\"pgsql\">Limit  (cost=2.16..64407.86 rows=155169 width=461) (actual time=0.951..1432.129 rows=157770 loops=1)  -&gt;  Nested Loop  (cost=2.16..64407.86 rows=155169 width=461) (actual time=0.949..1405.383 rows=157770 loops=1)        -&gt;  Nested Loop  (cost=1.88..60261.77 rows=155169 width=436) (actual time=0.840..1245.680 rows=157770 loops=1)              -&gt;  Nested Loop  (cost=1.73..56479.45 rows=155169 width=412) (actual time=0.786..1106.804 rows=157770 loops=1)                    -&gt;  Nested Loop  (cost=1.59..52987.72 rows=155169 width=388) (actual time=0.728..963.468 rows=157770 loops=1)                          -&gt;  Nested Loop  (cost=1.43..49112.43 rows=155169 width=354) (actual time=0.676..820.912 rows=157770 loops=1)                                -&gt;  Nested Loop  (cost=1.15..44973.22 rows=155169 width=314) (actual time=0.503..666.356 rows=157770 loops=1)                                      -&gt;  Nested Loop  (cost=1.00..41403.40 rows=155169 width=290) (actual time=0.359..530.395 rows=157770 loops=1)                                            -&gt;  Nested Loop  (cost=0.72..37512.22 rows=155169 width=271) (actual time=0.304..390.222 rows=157770 loops=1)                                                  -&gt;  Index Scan using idx_payments_export on payments p  (cost=0.43..33525.35 rows=155169 width=220) (actual time=0.199..192.239 rows=157770 loops=1)                                                        Index Cond: ((created_at &gt;= '2025-07-01 00:00:00+00'::timestamp with time zone) AND (created_at &lt; '2026-04-30 23:59:00+00'::timestamp with time zone))                                                  -&gt;  Memoize  (cost=0.29..0.31 rows=1 width=59) (actual time=0.000..0.000 rows=1 loops=157770)                                                        Cache Key: p.dealer_id                                                        Cache Mode: logical                                                        Hits: 157443  Misses: 327  Evictions: 0  Overflows: 0  Memory Usage: 54kB                                                        -&gt;  Index Scan using dealers_pkey on dealers d  (cost=0.28..0.30 rows=1 width=59) (actual time=0.012..0.012 rows=1 loops=327)                                                              Index Cond: (id = p.dealer_id)                                            -&gt;  Memoize  (cost=0.29..0.30 rows=1 width=35) (actual time=0.000..0.000 rows=1 loops=157770)                                                  Cache Key: p.srv_id                                                  Cache Mode: logical                                                  Hits: 157718  Misses: 52  Evictions: 0  Overflows: 0  Memory Usage: 8kB                                                  -&gt;  Index Scan using services_pkey on services s  (cost=0.28..0.29 rows=1 width=35) (actual time=0.042..0.042 rows=1 loops=52)                                                        Index Cond: (id = p.srv_id)                                      -&gt;  Memoize  (cost=0.14..0.17 rows=1 width=40) (actual time=0.000..0.000 rows=1 loops=157770)                                            Cache Key: d.region_id                                            Cache Mode: logical                                            Hits: 157765  Misses: 5  Evictions: 0  Overflows: 0  Memory Usage: 1kB                                            -&gt;  Index Scan using regions_pkey on regions r  (cost=0.13..0.16 rows=1 width=40) (actual time=0.030..0.030 rows=1 loops=5)                                                  Index Cond: (id = d.region_id)                                -&gt;  Memoize  (cost=0.29..0.31 rows=1 width=56) (actual time=0.000..0.000 rows=1 loops=157770)                                      Cache Key: p.user_id                                      Cache Mode: logical                                      Hits: 157174  Misses: 596  Evictions: 0  Overflows: 0  Memory Usage: 96kB                                      -&gt;  Index Scan using tusers_pkey on tusers u  (cost=0.28..0.30 rows=1 width=56) (actual time=0.013..0.013 rows=1 loops=596)                                            Index Cond: (id = p.user_id)                          -&gt;  Memoize  (cost=0.15..0.27 rows=1 width=50) (actual time=0.000..0.000 rows=1 loops=157770)                                Cache Key: d.branch_id                                Cache Mode: logical                                Hits: 157745  Misses: 25  Evictions: 0  Overflows: 0  Memory Usage: 4kB                                -&gt;  Index Scan using branches_pkey on branches b  (cost=0.14..0.26 rows=1 width=50) (actual time=0.015..0.015 rows=1 loops=25)                                      Index Cond: (id = d.branch_id)                    -&gt;  Memoize  (cost=0.14..0.16 rows=1 width=40) (actual time=0.000..0.000 rows=1 loops=157770)                          Cache Key: p.partner_id                          Cache Mode: logical                          Hits: 157768  Misses: 2  Evictions: 0  Overflows: 0  Memory Usage: 1kB                          -&gt;  Index Scan using partners_pkey on partners pr  (cost=0.13..0.15 rows=1 width=40) (actual time=0.028..0.028 rows=1 loops=2)                                Index Cond: (id = p.partner_id)              -&gt;  Memoize  (cost=0.15..0.19 rows=1 width=40) (actual time=0.000..0.000 rows=1 loops=157770)                    Cache Key: s.category_id                    Cache Mode: logical                    Hits: 157760  Misses: 10  Evictions: 0  Overflows: 0  Memory Usage: 2kB                    -&gt;  Index Scan using categories_pkey on categories c  (cost=0.14..0.18 rows=1 width=40) (actual time=0.009..0.009 rows=1 loops=10)                          Index Cond: (id = s.category_id)        -&gt;  Memoize  (cost=0.29..0.32 rows=1 width=16) (actual time=0.000..0.000 rows=1 loops=157770)              Cache Key: p.term_id              Cache Mode: logical              Hits: 157180  Misses: 590  Evictions: 0  Overflows: 0  Memory Usage: 70kB              -&gt;  Index Scan using terminals_pkey on terminals t  (cost=0.28..0.31 rows=1 width=16) (actual time=0.017..0.017 rows=1 loops=590)                    Index Cond: (id = p.term_id)Planning Time: 21.857 msExecution Time: 1445.455 ms<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<\/div>\n<\/details>\n<p><em> <\/em>SQL \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b \u0431\u044b\u0441\u0442\u0440\u043e, \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u0438 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e, \u0430 \u043e\u0431\u0449\u0438\u0439 \u043e\u0442\u0432\u0435\u0442 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u043b 30\u201340 \u0441\u0435\u043a\u0443\u043d\u0434.<\/p>\n<p>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u0434 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 nginx \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c <code>502<\/code>.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u043b\u043e \u0432\u0438\u0434\u043d\u043e: \u0432\u0440\u0435\u043c\u044f \u0443\u0445\u043e\u0434\u0438\u0442 \u043d\u0435 \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u043d\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e Excel \u0447\u0435\u0440\u0435\u0437 <code>excelize<\/code>.<\/p>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0432\u043a\u043b\u0430\u0434 \u0434\u0430\u0432\u0430\u043b\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u043a\u043b\u0430 \u2014 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e <code>SetCellStyle<\/code> \u0438 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u044f\u0447\u0435\u0439\u043a\u0430\u043c\u0438.<\/p>\n<p>\u0421\u0442\u0430\u043b\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e: \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043d\u0435 \u0432 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0432 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0438 Excel-\u0444\u0430\u0439\u043b\u0430.<\/p>\n<h2>\u041f\u043e\u0447\u0435\u043c\u0443 Excel \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u043c<\/h2>\n<p>\u0424\u043e\u0440\u043c\u0430\u0442 <code>.xlsx<\/code> \u2014 \u044d\u0442\u043e \u043d\u0435 \u201c\u0442\u0430\u0431\u043b\u0438\u0446\u0430\u201d, \u0430 ZIP-\u0430\u0440\u0445\u0438\u0432 \u0441 \u043d\u0430\u0431\u043e\u0440\u043e\u043c XML-\u0444\u0430\u0439\u043b\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 (\u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0441\u0430\u043c \u0443\u0437\u043d\u0430\u043b).<\/p>\n<p>\u041a\u0430\u0436\u0434\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0432 Excel \u0447\u0435\u0440\u0435\u0437 <code>excelize<\/code> \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432:<\/p>\n<ul>\n<li>\n<p>\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e XML-\u0443\u0437\u043b\u043e\u0432<\/p>\n<\/li>\n<li>\n<p>\u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0432 \u0430\u0440\u0445\u0438\u0432<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043e\u0431\u044a\u0451\u043c\u0430\u0445 \u044d\u0442\u043e \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u043e.<\/p>\n<p>\u041d\u043e \u043d\u0430 100k+ \u0441\u0442\u0440\u043e\u043a \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0434\u0432\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:<\/p>\n<h4>1. \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u044f\u0447\u0435\u0439\u043a\u0430\u043c\u0438<\/h4>\n<p>\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043c\u0435\u0442\u043e\u0434\u044b \u0432\u0440\u043e\u0434\u0435 <code>SetCellValue<\/code> \u0438\u043b\u0438 <code>SetCellStyle<\/code>, \u043e\u043d\u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u044e\u0442 <strong>\u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0443 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0443\u044e \u044f\u0447\u0435\u0439\u043a\u0443<\/strong>. \u041a\u0430\u0436\u0434\u043e\u0435 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0435 \u2014 \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044f: \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 XML\u2011\u0444\u0430\u0439\u043b Excel, \u043d\u0430\u0445\u043e\u0434\u0438\u0442 \u043d\u0443\u0436\u043d\u0443\u044e \u044f\u0447\u0435\u0439\u043a\u0443 \u0438 \u0432\u043d\u043e\u0441\u0438\u0442 \u043f\u0440\u0430\u0432\u043a\u0443.<\/p>\n<p><strong>2. \u0421\u0442\u0438\u043b\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u043a\u043b\u0430<\/strong><br \/>\u041f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0438\u043b\u044f \u043d\u0435 \u201c\u043a\u044d\u0448\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u043e \u0441\u0442\u0440\u043e\u043a\u0435\u201d, \u0430 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0432\u044b\u0437\u043e\u0432\u0430.<\/p>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0438\u0441\u044c\u044e \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043c\u0435\u043b\u043a\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043d\u0430\u0434 XML-\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439.<\/p>\n<p>\u0418 \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u2014 \u0442\u0435\u043c \u0441\u0438\u043b\u044c\u043d\u0435\u0435 \u0440\u0430\u0441\u0442\u0451\u0442 \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u043d\u0435 \u0441\u0430\u043c\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0438\u0445 \u201c\u043e\u0431\u0451\u0440\u0442\u043a\u0438\u201d \u0432 Excel.<\/p>\n<h2>\u041f\u0435\u0440\u0432\u0430\u044f \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0430\u0446\u0438\u044f: \u0443\u0431\u0438\u0440\u0430\u0435\u043c \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u044b\u0435 \u043f\u043e\u0442\u0435\u0440\u0438<\/h2>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u043b\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043d\u0435 \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435, \u0430 \u0432 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0445 \u043c\u0435\u043b\u043e\u0447\u0430\u0445 \u0432\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u043a\u043b\u0430.<\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u0443\u0431\u0440\u0430\u043b\u0438 \u0441\u0430\u043c\u043e\u0435 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e\u0435:<\/p>\n<p><strong>1. \u0424\u043e\u0440\u043c\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0442\u0440\u043e\u043a<\/strong><br \/><code>fmt.Sprintf<\/code> \u0432 \u0446\u0438\u043a\u043b\u0435 \u0434\u043b\u044f \u0430\u0434\u0440\u0435\u0441\u0430\u0446\u0438\u0438 \u044f\u0447\u0435\u0435\u043a \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u043b\u0438\u0448\u043d\u0438\u043c. \u0415\u0433\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u043b\u0438 \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u0434\u0435\u0448\u0451\u0432\u0443\u044e \u0441\u0431\u043e\u0440\u043a\u0443 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442.<\/p>\n<p><strong>2. \u041f\u043e\u0432\u0442\u043e\u0440\u044f\u044e\u0449\u0438\u0435\u0441\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f<\/strong><br \/>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u0440\u043e\u0434\u0435 \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u0432 \u0438 \u0442\u0438\u043f\u043e\u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u043e\u0432 \u0432\u044b\u043d\u0435\u0441\u043b\u0438 \u0432 map \u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0443\u0441\u043b\u043e\u0432\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u0435\u0440\u0435\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u0439 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438.<\/p>\n<p><strong>3. \u041b\u0438\u0448\u043d\u0438\u0435 allocations<\/strong><br \/>\u0421\u043b\u0430\u0439\u0441\u044b \u0438 \u0431\u0443\u0444\u0435\u0440\u044b \u043d\u0430\u0447\u0430\u043b\u0438 \u043f\u0435\u0440\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u043d\u0430 GC.<\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u0434 \u0441\u0442\u0430\u043b \u043b\u0435\u0433\u0447\u0435, \u043d\u043e \u043a\u043b\u044e\u0447\u0435\u0432\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u2014 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 <code>excelize<\/code> \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u044f\u0447\u0435\u0435\u043a \u0438 \u0441\u0442\u0438\u043b\u0435\u0439 \u0432\u0441\u0451 \u0435\u0449\u0451 \u0434\u043e\u043c\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043b\u0430 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<h2>\u0428\u0430\u0433 2: \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 \u0448\u0430\u0431\u043b\u043e\u043d<\/h2>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0443\u0441\u043a\u043e\u0440\u0435\u043d\u0438\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043b\u043e\u0433\u0438\u0447\u043d\u044b\u043c \u0448\u0430\u0433\u043e\u043c \u0441\u0442\u0430\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Excel-\u0448\u0430\u0431\u043b\u043e\u043d\u0430.<\/p>\n<p>\u0418\u0434\u0435\u044f \u0431\u044b\u043b\u0430 \u043f\u0440\u043e\u0441\u0442\u0430\u044f: \u0432\u0437\u044f\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u044b\u0439 <code>.xlsx<\/code> \u0444\u0430\u0439\u043b \u0441 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435\u043c \u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0435\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u043d\u0435 \u0442\u0440\u043e\u0433\u0430\u044f \u0441\u0442\u0438\u043b\u0438 \u0432 \u043a\u043e\u0434\u0435.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u0442\u0430\u043a:<\/p>\n<pre><code class=\"go\">xlsx, err := excelize.OpenFile(\"templates\/cash-in.xlsx\")if err != nil {    return nil, err}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043c\u044b \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u043b\u0438 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0435 \u043f\u043e\u043b\u044f (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0435\u0440\u0438\u043e\u0434 \u043e\u0442\u0447\u0451\u0442\u0430):<\/p>\n<pre><code class=\"go\">_ = xlsx.SetCellValue(templateSheet, \"B2\",    \"C: \"+dateFrom.Format(\"02-01-2006 15:04:05\"))_ = xlsx.SetCellValue(templateSheet, \"C2\",    \"\u041f\u043e: \"+dateTo.Format(\"02-01-2006 15:04:05\"))<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0418 \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u044b\u0442\u0430\u043b\u0438\u0441\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043e\u0442\u0447\u0451\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u2014 \u0441\u0442\u0438\u043b\u0438 \u0438 \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u043b\u0438\u0441\u044c.<\/p>\n<p>\u041d\u043e \u043f\u0440\u0438 \u043e\u0431\u044a\u0451\u043c\u0435 ~150k \u0441\u0442\u0440\u043e\u043a \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u043e\u0441\u0442\u0430\u0432\u0430\u043b\u0430\u0441\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439:<br \/>\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u0430 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0441\u0435\u043a\u0443\u043d\u0434.<\/p>\n<h2>\u0428\u0430\u0433 3: \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 StreamWriter<\/h2>\n<p>\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0448\u0430\u0433\u043e\u043c \u043c\u044b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b\u0438 <code>StreamWriter<\/code>, \u0447\u0442\u043e\u0431\u044b \u0443\u0439\u0442\u0438 \u043e\u0442 cell-level API \u0438 \u043b\u0438\u0448\u043d\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043d\u0430\u0434 \u044f\u0447\u0435\u0439\u043a\u0430\u043c\u0438.<\/p>\n<p>\u0411\u0430\u0437\u043e\u0432\u0430\u044f \u0441\u0445\u0435\u043c\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b\u0430 \u0442\u0430\u043a:<\/p>\n<pre><code class=\"go\">sw, err := xlsx.NewStreamWriter(\"Data\")if err != nil {    return err}row := make([]interface{}, 0, 20)for i, v := range payments {terminalType := \"\u0422\u0438\u043f1\"if v.TerminalType == 2 {terminalType = \"\u0422\u0438\u043f2\"}row = row[:0] \/\/ \u043e\u0447\u0438\u0449\u0430\u0435\u043crow = append(row,i+1,v.Account,v.Amount,v.Reward,...)cell, _ := excelize.CoordinatesToCellName(1, startRow+i)if err := sw.SetRow(cell, row); err != nil {return err}}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043d\u0430 \u043f\u043e\u0442\u043e\u043a\u043e\u0432\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c:<\/p>\n<ul>\n<li>\n<p>\u0441\u043d\u0438\u0437\u0438\u043b\u0430\u0441\u044c \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u043d\u0430 \u043f\u0430\u043c\u044f\u0442\u044c<\/p>\n<\/li>\n<li>\n<p>\u0443\u0441\u043a\u043e\u0440\u0438\u043b\u0430\u0441\u044c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445<\/p>\n<\/li>\n<li>\n<p>\u0443\u043c\u0435\u043d\u044c\u0448\u0438\u043b\u043e\u0441\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u0432\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u043a\u043b\u0430<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u043e \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u043d\u043e\u0432\u044b\u0439 \u044d\u0444\u0444\u0435\u043a\u0442: <code>StreamWriter<\/code> \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0438 \u0447\u0430\u0441\u0442\u044c \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u0442\u0435\u0440\u044f\u043b\u0430\u0441\u044c.<\/p>\n<p>\u042d\u0442\u043e \u0438 \u0441\u0442\u0430\u043b\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043a \u0433\u0438\u0431\u0440\u0438\u0434\u043d\u043e\u0439 \u0441\u0445\u0435\u043c\u0435.<\/p>\n<h2>\u0424\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0445\u0435\u043c\u0430: \u0448\u0430\u0431\u043b\u043e\u043d + \u043f\u043e\u0442\u043e\u043a\u043e\u0432\u0430\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f<\/h2>\n<p>\u0412 \u0438\u0442\u043e\u0433\u0435 \u043c\u044b \u043f\u0440\u0438\u0448\u043b\u0438 \u043a \u0433\u0438\u0431\u0440\u0438\u0434\u043d\u043e\u043c\u0443 \u0440\u0435\u0448\u0435\u043d\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u0438\u043b\u043e \u0441\u0438\u043b\u044c\u043d\u044b\u0435 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u043e\u0431\u043e\u0438\u0445 \u043f\u043e\u0434\u0445\u043e\u0434\u043e\u0432:<\/p>\n<ul>\n<li>\n<p>\u0448\u0430\u0431\u043b\u043e\u043d \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0432\u0438\u0434 \u043e\u0442\u0447\u0451\u0442\u0430<\/p>\n<\/li>\n<li>\n<p><code>StreamWriter<\/code> \u2014 \u0437\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c<\/p>\n<\/li>\n<\/ul>\n<p>\u0418\u0434\u0435\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u043b\u0430\u0441\u044c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<h3>1. \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0448\u0430\u0431\u043b\u043e\u043d\u043e\u043c<\/h3>\n<p>\u0428\u0430\u0431\u043b\u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f \u0438 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<pre><code class=\"go\">xlsx, err := excelize.OpenFile(\"templates\/example.xlsx\")if err != nil {    return nil, err}_ = xlsx.SetCellValue(\"\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043b\u0438\u0441\u0442\", \"B2\",    \"C: \"+dateFrom.Format(\"02-01-2006 15:04:05\"))_ = xlsx.SetCellValue(\"\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043b\u0438\u0441\u0442\", \"C2\",    \"\u041f\u043e: \"+dateTo.Format(\"02-01-2006 15:04:05\"))<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0428\u0430\u0431\u043b\u043e\u043d \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442:<\/p>\n<ul>\n<li>\n<p>\u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438<\/p>\n<\/li>\n<li>\n<p>\u0441\u0442\u0438\u043b\u0438<\/p>\n<\/li>\n<li>\n<p>\u0448\u0438\u0440\u0438\u043d\u044b \u043a\u043e\u043b\u043e\u043d\u043e\u043a<\/p>\n<\/li>\n<li>\n<p>\u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435 \u043e\u0442\u0447\u0451\u0442\u0430<\/p>\n<\/li>\n<\/ul>\n<h3>2. \u041f\u043e\u0442\u043e\u043a\u043e\u0432\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0445<\/h3>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u043f\u0438\u0448\u0443\u0442\u0441\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0447\u0435\u0440\u0435\u0437 <code>StreamWriter<\/code>, \u0431\u0435\u0437 \u0440\u0430\u0431\u043e\u0442\u044b \u0441\u043e \u0441\u0442\u0438\u043b\u044f\u043c\u0438:<\/p>\n<pre><code class=\"go\">sw, err := xlsx.NewStreamWriter(\"Data\")if err != nil {    return err}for i, v := range payments {    terminalType := \"\u0422\u0438\u043f1\"    if v.TerminalType == 2 {        terminalType = \"\u0422\u0438\u043f2\"    }    row := []interface{}{        i + 1,        v.Account,        v.Amount,        ...    }    cell, _ := excelize.CoordinatesToCellName(1, startRow+i)    if err := sw.SetRow(cell, row); err != nil {        return err    }}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>3. \u0421\u0432\u044f\u0437\u044b\u0432\u0430\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u0430 \u0438 \u0434\u0430\u043d\u043d\u044b\u0445<\/h3>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442\u0441\u044f \u0444\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430:<\/p>\n<ul>\n<li>\n<p>\u043f\u0435\u0440\u0435\u043d\u043e\u0441 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0438\u0437 \u0448\u0430\u0431\u043b\u043e\u043d\u0430<\/p>\n<\/li>\n<li>\n<p>\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0448\u0438\u0440\u0438\u043d \u043a\u043e\u043b\u043e\u043d\u043e\u043a<\/p>\n<\/li>\n<li>\n<p>\u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0438\u043b\u0435\u0439<\/p>\n<\/li>\n<li>\n<p>\u0437\u0430\u043c\u0435\u043d\u0430 \u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0438\u043c\u0435\u043d\u043e\u0432\u0430\u043d\u0438\u0435 sheet<\/p>\n<\/li>\n<\/ul>\n<pre><code class=\"go\">headers, _ := xlsx.GetRows(\"\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043b\u0438\u0441\u0442\")if len(headers) &gt;= 3 {    cell, _ := excelize.CoordinatesToCellName(1, 3)    _ = xlsx.SetSheetRow(\"Data\", cell, &amp;headers[2])}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<h3>\u0418\u0442\u043e\u0433\u043e\u0432\u0430\u044f \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0430<\/h3>\n<p>\u0412 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438:<\/p>\n<ul>\n<li>\n<p>\u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u043f\u043e\u0442\u043e\u043a\u043e\u0432\u044b\u0439 \u0440\u0435\u043d\u0434\u0435\u0440 \u0434\u0430\u043d\u043d\u044b\u0445<\/p>\n<\/li>\n<li>\n<p>\u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0448\u0430\u0431\u043b\u043e\u043d\u043d\u043e\u0433\u043e \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u0434\u0430\u0436\u0435 \u043d\u0430 150k+ \u0441\u0442\u0440\u043e\u043a\u0430\u0445<\/p>\n<\/li>\n<\/ul>\n<h2>\u0418\u0442\u043e\u0433<\/h2>\n<p>\u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u0432\u044b\u0432\u043e\u0434 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043d\u0435\u043e\u0436\u0438\u0434\u0430\u043d\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u043c:<\/p>\n<blockquote>\n<p>bottleneck \u0432 Excel-\u043e\u0442\u0447\u0451\u0442\u0430\u0445 \u0447\u0430\u0449\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0435 \u0432 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0432 \u0441\u043f\u043e\u0441\u043e\u0431\u0435 \u0438\u0445 \u0437\u0430\u043f\u0438\u0441\u0438.<\/p>\n<\/blockquote>\n<p>\u041f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043d\u0430 \u0433\u0438\u0431\u0440\u0438\u0434\u043d\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f \u0441\u0442\u0430\u043b\u0430 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0438 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b\u0430 \u0443\u043f\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0432 \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u044b nginx \u0434\u0430\u0436\u0435 \u043d\u0430 \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043e\u0431\u044a\u0451\u043c\u0430\u0445.<\/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\/1035124\/\">https:\/\/habr.com\/ru\/articles\/1035124\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a!\u041d\u0435\u0434\u0430\u0432\u043d\u043e \u043f\u0435\u0440\u0435\u0436\u0438\u0442\u044b\u0439 \u043e\u043f\u044b\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043e\u0442\u0447\u0435\u0442\u043e\u043c \u0445\u043e\u0447\u0443 \u0432\u044b\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043d\u0430 \u0432\u0441\u0435\u043e\u0431\u0449\u0435\u0435 \u043e\u0431\u043e\u0437\u0440\u0435\u043d\u0438\u0435, \u0432\u0434\u0440\u0443\u0433 \u043a\u043e\u043c\u0443-\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u0435\u043d. \u0427\u0442\u043e\u0431\u044b \u043d\u0435 \u0442\u043e\u043c\u0438\u0442\u044c \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043f\u043e\u0434\u0445\u043e\u0434, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0441\u0440\u0430\u0437\u0443 \u043d\u0430\u0447\u043d\u0435\u043c &#171;\u0440\u0430\u0437\u0431\u043e\u0440 \u043f\u043e\u043b\u0451\u0442\u0430&#187;.\u0412 \u043a\u0430\u043a\u043e\u0439-\u0442\u043e \u043c\u043e\u043c\u0435\u043d\u0442 \u0443 \u043d\u0430\u0441 \u043f\u043e\u044f\u0432\u0438\u043b\u0441\u044f \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u043f\u0440\u043e\u0441:\u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c Excel-\u043e\u0442\u0447\u0451\u0442\u043e\u043a\u043e\u043b\u043e 150k \u0441\u0442\u0440\u043e\u043a \u0434\u0430\u043d\u043d\u044b\u0445Go + excelize\u043e\u0431\u044b\u0447\u043d\u044b\u0439 HTTP endpointSQL-\u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0438 \u0431\u044b\u0441\u0442\u0440\u043e. \u0418\u043d\u0434\u0435\u043a\u0441\u044b \u0431\u044b\u043b\u0438 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435. \u041f\u0430\u043c\u044f\u0442\u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0445\u0432\u0430\u0442\u0430\u043b\u043e.\u041d\u043e \u0441\u0430\u043c Excel-\u043e\u0442\u0447\u0451\u0442 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u043c\u0438\u043d\u0443\u0442\u044b.\u041d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0430 \u0437\u0430\u043d\u0438\u043c\u0430\u043b\u0430 \u043e\u043a\u043e\u043b\u043e 16 \u0441\u0435\u043a\u0443\u043d\u0434. \u041d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u2014 35-40 \u0441\u0435\u043a\u0443\u043d\u0434, \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e nginx \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c 502 Bad Gateway.\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u0442\u0430\u043c, \u0433\u0434\u0435 \u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c.Bottleneck \u0431\u044b\u043b:\u043d\u0435 \u0432 \u0411\u0414\u043d\u0435 \u0432 \u0441\u0435\u0442\u0438\u043d\u0435 \u0432 JSON\u0430 \u0432 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 Excel.\u041f\u0440\u0438\u0447\u0451\u043c \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0443\u0445\u043e\u0434\u0438\u043b\u043e \u043d\u0435 \u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u043d\u0430:\u0441\u0442\u0438\u043b\u0438XML-\u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044eallocations\u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u044b\u0435 \u0432\u044b\u0437\u043e\u0432\u044b SetCellStyle\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0442\u044b\u0441\u044f\u0447 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u043a\u043b\u043e\u0432.\u0412 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u043e\u043a\u0430\u0436\u0443:\u043f\u043e\u0447\u0435\u043c\u0443 \u043d\u0430\u0438\u0432\u043d\u0430\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044f Excel \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u0430\u044f\u043a\u0430\u043a SetCellStyle \u0443\u0431\u0438\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u0437\u0430\u0447\u0435\u043c \u043d\u0443\u0436\u0435\u043d StreamWriter\u043f\u043e\u0447\u0435\u043c\u0443 StreamWriter \u043b\u043e\u043c\u0430\u0435\u0442 \u0448\u0430\u0431\u043b\u043e\u043d\u044b\u043a\u0430\u043a \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u043f\u043e\u0442\u043e\u043a\u043e\u0432\u0443\u044e \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u0438 Excel template\u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0431\u043e\u043b\u044c\u0448\u0438\u0435 Excel-\u044d\u043a\u0441\u043f\u043e\u0440\u0442\u044b \u043b\u0443\u0447\u0448\u0435 \u0432\u043e\u043e\u0431\u0449\u0435 \u0432\u044b\u043d\u043e\u0441\u0438\u0442\u044c \u0438\u0437 HTTP lifecycle.\u041d\u0430\u0438\u0432\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f\u041f\u0435\u0440\u0432\u043e\u0435, \u0441 \u0447\u0435\u0433\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043b\u044e\u0431\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0440\u043e\u0434\u0430 \u2014 \u044d\u0442\u043e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u043f\u043e\u0434\u0445\u043e\u0434 \u0447\u0435\u0440\u0435\u0437 excelize.NewFile() \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u044f\u0447\u0435\u0435\u043a.\u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0432\u0441\u0451 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e: \u0435\u0441\u0442\u044c \u0444\u0430\u0439\u043b, \u0435\u0441\u0442\u044c \u0446\u0438\u043a\u043b \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c, \u0435\u0441\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 \u044f\u0447\u0435\u0439\u043a\u0438.\u041f\u0440\u0438\u043c\u0435\u0440 \u0443\u043f\u0440\u043e\u0449\u0451\u043d\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:xlsx := excelize.NewFile()sheet := &#171;Report&#187;index, _ := xlsx.NewSheet(sheet)xlsx.DeleteSheet(&#171;Sheet1&#187;)startRow := 4for i, v := range payments {    row := startRow + i    xlsx.SetCellValue(sheet, fmt.Sprintf(&#171;A%d&#187;, row), i+1)    xlsx.SetCellValue(sheet, fmt.Sprintf(&#171;B%d&#187;, row), v.Account)    xlsx.SetCellValue(sheet, fmt.Sprintf(&#171;C%d&#187;, row), v.Amount)    xlsx.SetCellValue(sheet, fmt.Sprintf(&#171;D%d&#187;, row), v.Reward)    xlsx.SetCellValue(sheet, fmt.Sprintf(&#171;E%d&#187;, row), v.ServiceName)}\u041d\u0430 \u043f\u0435\u0440\u0432\u044b\u0439 \u0432\u0437\u0433\u043b\u044f\u0434 \u2014 \u043d\u0438\u0447\u0435\u0433\u043e \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e. \u041e\u0431\u044b\u0447\u043d\u044b\u0439 \u043a\u043e\u0434, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u0435\u043b\u0430\u0435\u0442 \u0440\u043e\u0432\u043d\u043e \u0442\u043e, \u0447\u0442\u043e \u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f: \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0435\u0442 Excel-\u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e.\u0414\u0430\u043b\u044c\u0448\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u0438\u0435, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u201c\u0431\u0435\u0437 \u0441\u0442\u0438\u043b\u0435\u0439 Excel \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u043b\u043e\u0445\u043e\u201d.\u0418 \u0438\u043c\u0435\u043d\u043d\u043e \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u0434\u0435\u0433\u0440\u0430\u0434\u0430\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438:xlsx.SetCellStyle(sheet, fmt.Sprintf(&#171;A%d&#187;, row), fmt.Sprintf(&#171;D%d&#187;, row), someStyle)\u0418, \u0447\u0442\u043e \u0432\u0430\u0436\u043d\u043e \u2014 \u044d\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u043a\u043b\u0430 \u043d\u0430 \u043a\u0430\u0436\u0434\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443.\u0412 \u0438\u0442\u043e\u0433\u0435 \u043e\u0434\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0432 \u0437\u0430\u043f\u0438\u0441\u044c \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0432:\u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a\u043e\u043e\u0440\u0434\u0438\u043d\u0430\u0442 \u044f\u0447\u0435\u0435\u043a\u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0442\u0438\u043b\u0435\u0439\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e XML-\u0443\u0437\u043b\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 \u0444\u0430\u0439\u043b\u0430\u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0445 allocations \u0432 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435\u041d\u0430 \u043e\u0431\u044a\u0451\u043c\u0430\u0445 \u0432 100k+ \u0441\u0442\u0440\u043e\u043a \u044d\u0442\u043e \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0438\u0433\u0440\u0430\u0442\u044c \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u0440\u043e\u043b\u044c.\u0418 \u0435\u0441\u043b\u0438 \u043d\u0430 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435 \u044d\u0442\u043e \u0435\u0449\u0451 \u0442\u0435\u0440\u043f\u0438\u043c\u043e, \u0442\u043e \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043f\u043e\u0434 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 \u044d\u0442\u043e \u043b\u0435\u0433\u043a\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0441\u0435\u043a\u0443\u043d\u0434 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0438, \u043a\u0430\u043a \u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u0435, timeout \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 nginx.\u0413\u0434\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u0434\u043e\u0437\u0440\u0435\u043d\u0438\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u2014 \u0411\u0414, \u0441\u0435\u0442\u044c, \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043b\u0438 explain analyse  \u0438 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u0438 \u0431\u044b\u043b\u0438 \u0445\u043e\u0440\u043e\u0448\u0438\u043c\u0438 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u043e\u0431\u044a\u0435\u043c\u0430:\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0430\u043d\u0430\u043b\u0438\u0437\u0430Limit  (cost=2.16..64407.86 rows=155169 width=461) (actual time=0.951..1432.129 rows=157770 loops=1)  -&gt;  Nested Loop  (cost=2.16..64407.86 rows=155169 width=461) (actual time=0.949..1405.383 rows=157770 loops=1)        -&gt;  Nested Loop  (cost=1.88..60261.77 rows=155169 width=436) (actual time=0.840..1245.680 rows=157770 loops=1)              -&gt;  Nested Loop  (cost=1.73..56479.45 rows=155169 width=412) (actual time=0.786..1106.804 rows=157770 loops=1)                    -&gt;  Nested Loop  (cost=1.59..52987.72 rows=155169 width=388) (actual time=0.728..963.468 rows=157770 loops=1)                          -&gt;  Nested Loop  (cost=1.43..49112.43 rows=155169 width=354) (actual time=0.676..820.912 rows=157770 loops=1)                                -&gt;  Nested Loop  (cost=1.15..44973.22 rows=155169 width=314) (actual time=0.503..666.356 rows=157770 loops=1)                                      -&gt;  Nested Loop  (cost=1.00..41403.40 rows=155169 width=290) (actual time=0.359..530.395 rows=157770 loops=1)                                            -&gt;  Nested Loop  (cost=0.72..37512.22 rows=155169 width=271) (actual time=0.304..390.222 rows=157770 loops=1)                                                  -&gt;  Index Scan using idx_payments_export on payments p  (cost=0.43..33525.35 rows=155169 width=220) (actual time=0.199..192.239 rows=157770 loops=1)                                                        Index Cond: ((created_at &gt;= &#8216;2025-07-01 00:00:00+00&#8217;::timestamp with time zone) AND (created_at &lt; &#8216;2026-04-30 23:59:00+00&#8217;::timestamp with time zone))                                                  -&gt;  Memoize  (cost=0.29..0.31 rows=1 width=59) (actual time=0.000..0.000 rows=1 loops=157770)                                                        Cache Key: p.dealer_id                                                        Cache Mode: logical                                                        Hits: 157443  Misses: 327  Evictions: 0  Overflows: 0  Memory Usage: 54kB                                                        -&gt;  Index Scan using dealers_pkey on dealers d  (cost=0.28..0.30 rows=1 width=59) (actual time=0.012..0.012 rows=1 loops=327)                                                              Index Cond: (id = p.dealer_id)                                            -&gt;  Memoize  (cost=0.29..0.30 rows=1 width=35) (actual time=0.000..0.000 rows=1 loops=157770)                                                  Cache Key: p.srv_id                                                  Cache Mode: logical                                                  Hits: 157718  Misses: 52  Evictions: 0  Overflows: 0  Memory Usage: 8kB                                                  -&gt;  Index Scan using services_pkey on services s  (cost=0.28..0.29 rows=1 width=35) (actual time=0.042..0.042 rows=1 loops=52)                                                        Index Cond: (id = p.srv_id)                                      -&gt;  Memoize  (cost=0.14..0.17 rows=1 width=40) (actual time=0.000..0.000 rows=1 loops=157770)                                            Cache Key: d.region_id                                            Cache Mode: logical                                            Hits: 157765  Misses: 5  Evictions: 0  Overflows: 0  Memory Usage: 1kB                                            -&gt;  Index Scan using regions_pkey on regions r  (cost=0.13..0.16 rows=1 width=40) (actual time=0.030..0.030 rows=1 loops=5)                                                  Index Cond: (id = d.region_id)                                -&gt;  Memoize  (cost=0.29..0.31 rows=1 width=56) (actual time=0.000..0.000 rows=1 loops=157770)                                      Cache Key: p.user_id                                      Cache Mode: logical                                      Hits: 157174  Misses: 596  Evictions: 0  Overflows: 0  Memory Usage: 96kB                                      -&gt;  Index Scan using tusers_pkey on tusers u  (cost=0.28..0.30 rows=1 width=56) (actual time=0.013..0.013 rows=1 loops=596)                                            Index Cond: (id = p.user_id)                          -&gt;  Memoize  (cost=0.15..0.27 rows=1 width=50) (actual time=0.000..0.000 rows=1 loops=157770)                                Cache Key: d.branch_id                                Cache Mode: logical                                Hits: 157745  Misses: 25  Evictions: 0  Overflows: 0  Memory Usage: 4kB                                -&gt;  Index Scan using branches_pkey on branches b  (cost=0.14..0.26 rows=1 width=50) (actual time=0.015..0.015 rows=1 loops=25)                                      Index Cond: (id = d.branch_id)                    -&gt;  Memoize  (cost=0.14..0.16 rows=1 width=40) (actual time=0.000..0.000 rows=1 loops=157770)                          Cache Key: p.partner_id                          Cache Mode: logical                          Hits: 157768  Misses: 2  Evictions: 0  Overflows: 0  Memory Usage: 1kB                          -&gt;  Index Scan using partners_pkey on partners pr  (cost=0.13..0.15 rows=1 width=40) (actual time=0.028..0.028 rows=1 loops=2)                                Index Cond: (id = p.partner_id)              -&gt;  Memoize  (cost=0.15..0.19 rows=1 width=40) (actual time=0.000..0.000 rows=1 loops=157770)                    Cache Key: s.category_id                    Cache Mode: logical                    Hits: 157760  Misses: 10  Evictions: 0  Overflows: 0  Memory Usage: 2kB                    -&gt;  Index Scan using categories_pkey on categories c  (cost=0.14..0.18 rows=1 width=40) (actual time=0.009..0.009 rows=1 loops=10)                          Index Cond: (id = s.category_id)        -&gt;  Memoize  (cost=0.29..0.32 rows=1 width=16) (actual time=0.000..0.000 rows=1 loops=157770)              Cache Key: p.term_id              Cache Mode: logical              Hits: 157180  Misses: 590  Evictions: 0  Overflows: 0  Memory Usage: 70kB              -&gt;  Index Scan using terminals_pkey on terminals t  (cost=0.28..0.31 rows=1 width=16) (actual time=0.017..0.017 rows=1 loops=590)                    Index Cond: (id = p.term_id)Planning Time: 21.857 msExecution Time: 1445.455 ms SQL \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u043b \u0431\u044b\u0441\u0442\u0440\u043e, \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u0438 \u043c\u0433\u043d\u043e\u0432\u0435\u043d\u043d\u043e, \u0430 \u043e\u0431\u0449\u0438\u0439 \u043e\u0442\u0432\u0435\u0442 \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u0437\u0430\u043d\u0438\u043c\u0430\u043b 30\u201340 \u0441\u0435\u043a\u0443\u043d\u0434.\u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u043f\u043e\u0434 \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u043e\u0439 nginx \u043d\u0430\u0447\u0438\u043d\u0430\u043b \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c 502.\u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0444\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u043b\u043e \u0432\u0438\u0434\u043d\u043e: \u0432\u0440\u0435\u043c\u044f \u0443\u0445\u043e\u0434\u0438\u0442 \u043d\u0435 \u043d\u0430 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u043d\u0430 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e Excel \u0447\u0435\u0440\u0435\u0437 excelize.\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0432\u043a\u043b\u0430\u0434 \u0434\u0430\u0432\u0430\u043b\u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u0446\u0438\u043a\u043b\u0430 \u2014 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e SetCellStyle \u0438 \u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u044f\u0447\u0435\u0439\u043a\u0430\u043c\u0438.\u0421\u0442\u0430\u043b\u043e \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e: \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043d\u0435 \u0432 \u0434\u0430\u043d\u043d\u044b\u0445, \u0430 \u0432 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0438 Excel-\u0444\u0430\u0439\u043b\u0430.\u041f\u043e\u0447\u0435\u043c\u0443 Excel \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u044b\u043c\u0424\u043e\u0440\u043c\u0430\u0442 .xlsx \u2014 \u044d\u0442\u043e \u043d\u0435 \u201c\u0442\u0430\u0431\u043b\u0438\u0446\u0430\u201d, \u0430 ZIP-\u0430\u0440\u0445\u0438\u0432 \u0441 \u043d\u0430\u0431\u043e\u0440\u043e\u043c XML-\u0444\u0430\u0439\u043b\u043e\u0432 \u0432\u043d\u0443\u0442\u0440\u0438 (\u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0441\u0430\u043c \u0443\u0437\u043d\u0430\u043b).\u041a\u0430\u0436\u0434\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0432 Excel \u0447\u0435\u0440\u0435\u0437 excelize \u0444\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432:\u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e XML-\u0443\u0437\u043b\u043e\u0432\u0443\u043f\u0430\u043a\u043e\u0432\u043a\u0443 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0432 \u0430\u0440\u0445\u0438\u0432\u041d\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043e\u0431\u044a\u0451\u043c\u0430\u0445 \u044d\u0442\u043e \u043d\u0435\u0437\u0430\u043c\u0435\u0442\u043d\u043e.\u041d\u043e \u043d\u0430 100k+ \u0441\u0442\u0440\u043e\u043a \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u043f\u0440\u043e\u044f\u0432\u043b\u044f\u0442\u044c\u0441\u044f \u0434\u0432\u0435 \u043a\u043b\u044e\u0447\u0435\u0432\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b:1. \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u044f\u0447\u0435\u0439\u043a\u0430\u043c\u0438\u041a\u043e\u0433\u0434\u0430 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u043c\u0435\u0442\u043e\u0434\u044b \u0432\u0440\u043e\u0434\u0435&#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-479721","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/479721","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=479721"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/479721\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=479721"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=479721"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=479721"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}