{"id":254802,"date":"2015-04-08T15:51:03","date_gmt":"2015-04-08T11:51:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=254802"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=254802","title":{"rendered":"\u041d\u043e\u0432\u043e\u0435 \u0432 Cach\u00e9 2015.1: SQL-\u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430-\u043c\u0430\u0441\u0441\u0438\u0432\u0430"},"content":{"rendered":"<p>     \t\u0412 Cach\u00e9 2015.1 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043b\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0446\u0438\u044e \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043b\u043e\u043d\u043a\u0443. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0434\u043b\u044f SQL \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0447\u0435\u0440\u043d\u044e\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u043d\u043e \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u0430\u043a \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043b\u043e\u043d\u043a\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043b\u0435\u0436\u0430\u0442 \u0432\u0441\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c <a href=\"http:\/\/docs.intersystems.com\/cache20151\/csp\/docbook\/DocBook.UI.Page.cls?KEY=GSQL_queries#GSQL_queries_collection\">\u0437\u0434\u0435\u0441\u044c<\/a>.<br \/>  \u041e \u0442\u043e\u043c, \u043a\u0430\u043a \u0438 \u0433\u0434\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435, \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0418\u043d\u043e\u0433\u0434\u0430 \u0431\u044b\u0432\u0430\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u043c (\u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438 EAV) \u0432 \u043a\u043b\u0430\u0441\u0441\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430-\u043c\u0430\u0441\u0441\u0438\u0432\u044b \u0438 \u0438\u043c\u0435\u0442\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u043e \u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430\u043c: \u043a\u0430\u043a \u043a\u043b\u044e\u0447\u0443, \u0442\u0430\u043a \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044e.  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440<\/b><\/p>\n<div class=\"spoiler_text\">\n<td><font><font color=\"#000080\">Class&nbsp;User.eav&nbsp;Extends&nbsp;%Persistent<br \/>  <\/font><font color=\"#000000\">{<\/p>\n<p>  <\/font><font color=\"#000080\">Index&nbsp;<\/font><font color=\"#000000\">idx1&nbsp;On&nbsp;attributes(ELEMENTS)&nbsp;[&nbsp;<\/font><font color=\"#000080\">Data&nbsp;<\/font><font color=\"#000000\">=&nbsp;entity&nbsp;];<\/p>\n<p>  <\/font><font color=\"#000080\">Index&nbsp;<\/font><font color=\"#000000\">idx2&nbsp;On&nbsp;(attributes(KEYS),&nbsp;attributes(ELEMENTS))&nbsp;[&nbsp;<\/font><font color=\"#000080\">Data&nbsp;<\/font><font color=\"#000000\">=&nbsp;entity&nbsp;];<\/p>\n<p>  <\/font><font color=\"#000080\">Property&nbsp;<\/font><font color=\"#000000\">entity;<\/p>\n<p>  <\/font><font color=\"#000080\">Property&nbsp;<\/font><font color=\"#000000\">attributes&nbsp;<\/font><font color=\"#000080\">As&nbsp;array&nbsp;Of&nbsp;%String<\/font><font color=\"#000000\">(<\/font><font color=\"#000080\">SQLTABLENAME&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#800080\">&quot;attributes&quot;<\/font><font color=\"#000000\">)&nbsp;[&nbsp;<\/font><font color=\"#000080\">SqlFieldName&nbsp;<\/font><font color=\"#000000\">=&nbsp;<\/font><font color=\"#008000\">attr&nbsp;<\/font><font color=\"#000000\">];<\/p>\n<p>  <\/font><font color=\"#000080\">\/\/\/&nbsp;do&nbsp;##class(User.eav).RepopulateAll()<br \/>  ClassMethod&nbsp;<\/font><font color=\"#000000\">RepopulateAll()<br \/>  {<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">do&nbsp;<\/font><font color=\"#000000\">..<\/font><font color=\"#0000ff\">%DeleteExtent<\/font><font color=\"#000000\">()<br \/>  &nbsp;&nbsp;<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#800000\">name<\/font><font color=\"#000000\">=<\/font><font color=\"#0000ff\">$TR<\/font><font color=\"#000000\">(<\/font><font color=\"#008000\">&quot;\u0421\u043e\u0441\u043d\u0430^&nbsp;\u0441\u0438\u0431\u0438^\u0440\u0441\u043a\u0430\u044f&nbsp;\u043a\u0435\u0434\u0440\u043e^\u0432\u0430\u044f&quot;<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;^&quot;<\/font><font color=\"#000000\">,<\/font><font color=\"#0000ff\">$c<\/font><font color=\"#000000\">(769))<br \/>  &nbsp;&nbsp;<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#800000\">obj<\/font><font color=\"#000000\">=..<\/font><font color=\"#0000ff\">%New<\/font><font color=\"#000000\">()<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#800000\">obj<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">entity<\/font><font color=\"#000000\">=<\/font><font color=\"#008000\">&quot;\u0427\u0435\u043b\u043e\u0432\u0435\u043a&quot;<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">do&nbsp;<\/font><font color=\"#800000\">obj<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">attributes<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">SetAt<\/font><font color=\"#000000\">(22,<\/font><font color=\"#008000\">&quot;\u0412\u043e\u0437\u0440\u0430\u0441\u0442&quot;<\/font><font color=\"#000000\">)<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">do&nbsp;<\/font><font color=\"#800000\">obj<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">attributes<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">SetAt<\/font><font color=\"#000000\">(186,<\/font><font color=\"#008000\">&quot;\u0420\u043e\u0441\u0442&quot;<\/font><font color=\"#000000\">)<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">do&nbsp;<\/font><font color=\"#800000\">obj<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">attributes<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">SetAt<\/font><font color=\"#000000\">(<\/font><font color=\"#008000\">&quot;\u0412\u0430\u0441\u044f&quot;<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;\u0418\u043c\u044f&quot;<\/font><font color=\"#000000\">)<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">do&nbsp;<\/font><font color=\"#800000\">obj<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">%Save<\/font><font color=\"#000000\">()<\/p>\n<p>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#800000\">obj<\/font><font color=\"#000000\">=..<\/font><font color=\"#0000ff\">%New<\/font><font color=\"#000000\">()<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">set&nbsp;<\/font><font color=\"#800000\">obj<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">entity<\/font><font color=\"#000000\">=<\/font><font color=\"#008000\">&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">do&nbsp;<\/font><font color=\"#800000\">obj<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">attributes<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">SetAt<\/font><font color=\"#000000\">(186,<\/font><font color=\"#008000\">&quot;\u0412\u043e\u0437\u0440\u0430\u0441\u0442&quot;<\/font><font color=\"#000000\">)<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">do&nbsp;<\/font><font color=\"#800000\">obj<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">attributes<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">SetAt<\/font><font color=\"#000000\">(22,<\/font><font color=\"#008000\">&quot;\u0412\u044b\u0441\u043e\u0442\u0430&quot;<\/font><font color=\"#000000\">)<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">do&nbsp;<\/font><font color=\"#800000\">obj<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">attributes<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">SetAt<\/font><font color=\"#000000\">(<\/font><font color=\"#008000\">&quot;\u0421\u043e\u0441\u043d\u043e\u0432\u044b\u0435&quot;<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;\u0421\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e&quot;<\/font><font color=\"#000000\">)<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">do&nbsp;<\/font><font color=\"#800000\">obj<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">attributes<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">SetAt<\/font><font color=\"#000000\">(<\/font><font color=\"#800000\">name<\/font><font color=\"#000000\">,<\/font><font color=\"#008000\">&quot;\u0418\u043c\u044f&quot;<\/font><font color=\"#000000\">)<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">do&nbsp;<\/font><font color=\"#800000\">obj<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">%Save<\/font><font color=\"#000000\">()<br \/>  &nbsp;&nbsp;<br \/>  &nbsp;&nbsp;<\/font><font color=\"#008000\">\/*<br \/>  &nbsp;&nbsp;<br \/>  &nbsp;&nbsp;; \u0438\u043b\u0438<br \/>  &nbsp;&nbsp;<br \/>  &nbsp;&nbsp;&amp;sql(insert&nbsp;into&nbsp;eav(entity)&nbsp;select&nbsp;&#8216;\u0427\u0435\u043b\u043e\u0432\u0435\u043a&#8217;&nbsp;union&nbsp;select&nbsp;&#8216;\u0414\u0435\u0440\u0435\u0432\u043e&#8217;)<br \/>  &nbsp;&nbsp;&amp;sql(insert&nbsp;into&nbsp;attributes(eav,element_key,attr)<br \/>  &nbsp;&nbsp;select&nbsp;1,&#8217;\u0412\u043e\u0437\u0440\u0430\u0441\u0442&#8217;,22&nbsp;union<br \/>  &nbsp;&nbsp;select&nbsp;1,&#8217;\u0420\u043e\u0441\u0442&#8217;,186&nbsp;union<br \/>  &nbsp;&nbsp;select&nbsp;1,&#8217;\u0418\u043c\u044f&#8217;,&#8217;\u0412\u0430\u0441\u044f&#8217;&nbsp;union<br \/>  &nbsp;&nbsp;select&nbsp;2,&#8217;\u0412\u043e\u0437\u0440\u0430\u0441\u0442&#8217;,186&nbsp;union<br \/>  &nbsp;&nbsp;select&nbsp;2,&#8217;\u0412\u044b\u0441\u043e\u0442\u0430&#8217;,22&nbsp;union<br \/>  &nbsp;&nbsp;select&nbsp;2,&#8217;\u0421\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e&#8217;,&#8217;\u0421\u043e\u0441\u043d\u043e\u0432\u044b\u0435&#8217;&nbsp;union<br \/>  &nbsp;&nbsp;select&nbsp;2,&#8217;\u0418\u043c\u044f&#8217;,:name)<br \/>  &nbsp;&nbsp;*\/<br \/>  &nbsp;&nbsp;<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">do&nbsp;<\/font><font color=\"#000000\">..<\/font><font color=\"#0000ff\">Reindex<\/font><font color=\"#000000\">()<br \/>  }<\/p>\n<p>  <\/font><font color=\"#000080\">\/\/\/&nbsp;do&nbsp;##class(User.eav).Reindex()<br \/>  ClassMethod&nbsp;<\/font><font color=\"#000000\">Reindex()<br \/>  {<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">do&nbsp;<\/font><font color=\"#000000\">..<\/font><font color=\"#0000ff\">%BuildIndices<\/font><font color=\"#000000\">(,1)<\/p>\n<p>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">do&nbsp;$system<\/font><font color=\"#008080\">.SQL<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">TuneTable<\/font><font color=\"#000000\">(<\/font><font color=\"#008000\">&quot;SQLUser.eav&quot;<\/font><font color=\"#000000\">,1)<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">do&nbsp;$system<\/font><font color=\"#008080\">.SQL<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">TuneTable<\/font><font color=\"#000000\">(<\/font><font color=\"#008000\">&quot;SQLUser.attributes&quot;<\/font><font color=\"#000000\">,1)<br \/>  &nbsp;&nbsp;<\/font><font color=\"#0000ff\">do&nbsp;$system<\/font><font color=\"#008080\">.OBJ<\/font><font color=\"#000000\">.<\/font><font color=\"#0000ff\">Compile<\/font><font color=\"#000000\">(<\/font><font color=\"#0000ff\">$classname<\/font><font color=\"#000000\">(),<\/font><font color=\"#008000\">&quot;cu&quot;<\/font><font color=\"#000000\">)<br \/>  }<\/p>\n<p>  }<\/font><\/font><\/td>\n<\/p><\/div>\n<\/div>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f (<font color=\"#0000ff\">do&nbsp;<\/font><font color=\"#000080\">##class<\/font><font color=\"#000000\">(<\/font><font color=\"#008080\">User.eav<\/font><font color=\"#000000\">).<\/font><font color=\"#0000ff\">RepopulateAll<\/font><font color=\"#000000\">()<\/font>) \u0432 \u043d\u0430\u0448\u0438\u0445 \u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445 \u043e\u043a\u0430\u0436\u0443\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/p>\n<p>  \u0422\u0430\u0431\u043b\u0438\u0446\u0430 <b>eav<\/b>:  <\/p>\n<table>\n<tr>\n<th>ID<\/th>\n<th>entity<\/th>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>\u0427\u0435\u043b\u043e\u0432\u0435\u043a<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u0414\u0435\u0440\u0435\u0432\u043e<\/td>\n<\/tr>\n<\/table>\n<p>  \u0422\u0430\u0431\u043b\u0438\u0446\u0430 <b>attributes<\/b>:  <\/p>\n<table>\n<tr>\n<th>eav<\/th>\n<th>ID<\/th>\n<th>attr<\/th>\n<th>element_key<\/th>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>1||\u0412\u043e\u0437\u0440\u0430\u0441\u0442<\/td>\n<td>22<\/td>\n<td>\u0412\u043e\u0437\u0440\u0430\u0441\u0442<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>1||\u0418\u043c\u044f<\/td>\n<td>\u0412\u0430\u0441\u044f<\/td>\n<td>\u0418\u043c\u044f<\/td>\n<\/tr>\n<tr>\n<td>1<\/td>\n<td>1||\u0420\u043e\u0441\u0442<\/td>\n<td>186<\/td>\n<td>\u0420\u043e\u0441\u0442<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>2||\u0412\u043e\u0437\u0440\u0430\u0441\u0442<\/td>\n<td>186<\/td>\n<td>\u0412\u043e\u0437\u0440\u0430\u0441\u0442<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>2||\u0412\u044b\u0441\u043e\u0442\u0430<\/td>\n<td>22<\/td>\n<td>\u0412\u044b\u0441\u043e\u0442\u0430<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>2||\u0418\u043c\u044f<\/td>\n<td>\u0421\u043e\u0441\u043d\u0430\u0301 \u0441\u0438\u0431\u0438\u0301\u0440\u0441\u043a\u0430\u044f \u043a\u0435\u0434\u0440\u043e\u0301\u0432\u0430\u044f<\/td>\n<td>\u0418\u043c\u044f<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>2||\u0421\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e<\/td>\n<td>\u0421\u043e\u0441\u043d\u043e\u0432\u044b\u0435<\/td>\n<td>\u0421\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e<\/td>\n<\/tr>\n<\/table>\n<p>  \u0413\u043b\u043e\u0431\u0430\u043b \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438:  <\/p>\n<pre><code>USER&gt;zw ^User.eavI ^User.eavI(&quot;idx1&quot;,&quot; 186&quot;,1)=$lb(&quot;&quot;,&quot;\u0427\u0435\u043b\u043e\u0432\u0435\u043a&quot;) ^User.eavI(&quot;idx1&quot;,&quot; 186&quot;,2)=$lb(&quot;&quot;,&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;) ^User.eavI(&quot;idx1&quot;,&quot; 22&quot;,1)=$lb(&quot;&quot;,&quot;\u0427\u0435\u043b\u043e\u0432\u0435\u043a&quot;) ^User.eavI(&quot;idx1&quot;,&quot; 22&quot;,2)=$lb(&quot;&quot;,&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;) ^User.eavI(&quot;idx1&quot;,&quot; \u0412\u0410\u0421\u042f&quot;,1)=$lb(&quot;&quot;,&quot;\u0427\u0435\u043b\u043e\u0432\u0435\u043a&quot;) ^User.eavI(&quot;idx1&quot;,&quot; \u0421\u041e\u0421\u041d\u0410\u0301 \u0421\u0418\u0411\u0418\u0301\u0420\u0421\u041a\u0410\u042f \u041a\u0415\u0414\u0420\u041e\u0301\u0412\u0410\u042f&quot;,2)=$lb(&quot;&quot;,&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;) ^User.eavI(&quot;idx1&quot;,&quot; \u0421\u041e\u0421\u041d\u041e\u0412\u042b\u0415&quot;,2)=$lb(&quot;&quot;,&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;) ^User.eavI(&quot;idx2&quot;,&quot;\u0412\u043e\u0437\u0440\u0430\u0441\u0442&quot;,&quot; 186&quot;,2)=$lb(&quot;&quot;,&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;) ^User.eavI(&quot;idx2&quot;,&quot;\u0412\u043e\u0437\u0440\u0430\u0441\u0442&quot;,&quot; 22&quot;,1)=$lb(&quot;&quot;,&quot;\u0427\u0435\u043b\u043e\u0432\u0435\u043a&quot;) ^User.eavI(&quot;idx2&quot;,&quot;\u0412\u044b\u0441\u043e\u0442\u0430&quot;,&quot; 22&quot;,2)=$lb(&quot;&quot;,&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;) ^User.eavI(&quot;idx2&quot;,&quot;\u0418\u043c\u044f&quot;,&quot; \u0412\u0410\u0421\u042f&quot;,1)=$lb(&quot;&quot;,&quot;\u0427\u0435\u043b\u043e\u0432\u0435\u043a&quot;) ^User.eavI(&quot;idx2&quot;,&quot;\u0418\u043c\u044f&quot;,&quot; \u0421\u041e\u0421\u041d\u0410\u0301 \u0421\u0418\u0411\u0418\u0301\u0420\u0421\u041a\u0410\u042f \u041a\u0415\u0414\u0420\u041e\u0301\u0412\u0410\u042f&quot;,2)=$lb(&quot;&quot;,&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;) ^User.eavI(&quot;idx2&quot;,&quot;\u0420\u043e\u0441\u0442&quot;,&quot; 186&quot;,1)=$lb(&quot;&quot;,&quot;\u0427\u0435\u043b\u043e\u0432\u0435\u043a&quot;) ^User.eavI(&quot;idx2&quot;,&quot;\u0421\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e&quot;,&quot; \u0421\u041e\u0421\u041d\u041e\u0412\u042b\u0415&quot;,2)=$lb(&quot;&quot;,&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;) <\/code><\/pre>\n<p>  \u0413\u043b\u043e\u0431\u0430\u043b \u0441 \u0438\u043d\u0434\u0435\u043a\u0441\u0430\u043c\u0438:   <\/p>\n<pre><code>USER&gt;zw ^User.eavI ^User.eavI(&quot;idx1&quot;,&quot; 186&quot;,1)=$lb(&quot;&quot;,&quot;\u0427\u0435\u043b\u043e\u0432\u0435\u043a&quot;) ^User.eavI(&quot;idx1&quot;,&quot; 186&quot;,2)=$lb(&quot;&quot;,&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;) ^User.eavI(&quot;idx1&quot;,&quot; 22&quot;,1)=$lb(&quot;&quot;,&quot;\u0427\u0435\u043b\u043e\u0432\u0435\u043a&quot;) ^User.eavI(&quot;idx1&quot;,&quot; 22&quot;,2)=$lb(&quot;&quot;,&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;) ^User.eavI(&quot;idx1&quot;,&quot; \u0412\u0410\u0421\u042f&quot;,1)=$lb(&quot;&quot;,&quot;\u0427\u0435\u043b\u043e\u0432\u0435\u043a&quot;) ^User.eavI(&quot;idx1&quot;,&quot; \u0421\u041e\u0421\u041d\u0410\u0301 \u0421\u0418\u0411\u0418\u0301\u0420\u0421\u041a\u0410\u042f \u041a\u0415\u0414\u0420\u041e\u0301\u0412\u0410\u042f&quot;,2)=$lb(&quot;&quot;,&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;) ^User.eavI(&quot;idx1&quot;,&quot; \u0421\u041e\u0421\u041d\u041e\u0412\u042b\u0415&quot;,2)=$lb(&quot;&quot;,&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;) ^User.eavI(&quot;idx2&quot;,&quot;\u0412\u043e\u0437\u0440\u0430\u0441\u0442&quot;,&quot; 186&quot;,2)=$lb(&quot;&quot;,&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;) ^User.eavI(&quot;idx2&quot;,&quot;\u0412\u043e\u0437\u0440\u0430\u0441\u0442&quot;,&quot; 22&quot;,1)=$lb(&quot;&quot;,&quot;\u0427\u0435\u043b\u043e\u0432\u0435\u043a&quot;) ^User.eavI(&quot;idx2&quot;,&quot;\u0412\u044b\u0441\u043e\u0442\u0430&quot;,&quot; 22&quot;,2)=$lb(&quot;&quot;,&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;) ^User.eavI(&quot;idx2&quot;,&quot;\u0418\u043c\u044f&quot;,&quot; \u0412\u0410\u0421\u042f&quot;,1)=$lb(&quot;&quot;,&quot;\u0427\u0435\u043b\u043e\u0432\u0435\u043a&quot;) ^User.eavI(&quot;idx2&quot;,&quot;\u0418\u043c\u044f&quot;,&quot; \u0421\u041e\u0421\u041d\u0410\u0301 \u0421\u0418\u0411\u0418\u0301\u0420\u0421\u041a\u0410\u042f \u041a\u0415\u0414\u0420\u041e\u0301\u0412\u0410\u042f&quot;,2)=$lb(&quot;&quot;,&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;) ^User.eavI(&quot;idx2&quot;,&quot;\u0420\u043e\u0441\u0442&quot;,&quot; 186&quot;,1)=$lb(&quot;&quot;,&quot;\u0427\u0435\u043b\u043e\u0432\u0435\u043a&quot;) ^User.eavI(&quot;idx2&quot;,&quot;\u0421\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e&quot;,&quot; \u0421\u041e\u0421\u041d\u041e\u0412\u042b\u0415&quot;,2)=$lb(&quot;&quot;,&quot;\u0414\u0435\u0440\u0435\u0432\u043e&quot;) <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441:  <\/p>\n<pre><code class=\"sql\">select entity from eav where attributes-&gt;attr = 22  entity \u0427\u0435\u043b\u043e\u0432\u0435\u043a \u0414\u0435\u0440\u0435\u0432\u043e <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0440\u043e\u0441 \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442, \u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043f\u043e\u043b\u043d\u043e\u0435 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435, \u0430 \u043d\u0435 \u043d\u0430\u0448\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u044b. \u0415\u0441\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 SMP (\u041f\u043e\u0440\u0442\u0430\u043b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439) \u043d\u0430 \u043d\u0430\u0448\u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0442\u043e \u043c\u044b \u0432 \u043d\u0438\u0445 \u043d\u0435 \u043d\u0430\u0439\u0434\u0451\u043c idx1 \u0438 idx2, \u0445\u043e\u0442\u044f \u043a\u0430\u043a \u043c\u044b \u0440\u0430\u043d\u0435\u0435 \u0432\u0438\u0434\u0435\u043b\u0438, \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043d\u0438\u0445 \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u044b.<\/p>\n<p>  \u042d\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e SQL-\u044f\u0434\u0440\u043e \u00ab\u0432\u0438\u0434\u0438\u0442\u00bb \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u043f\u043e \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f\u043c-\u043c\u0430\u0441\u0441\u0438\u0432\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0430\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0438\u0441\u043a\u043b\u044e\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430 \u043f\u043e\u043b\u044f\u0445 \u043f\u043e\u0434\u0442\u0430\u0431\u043b\u0438\u0446\u044b-\u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0438 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043a\u043b\u044e\u0447, \u0442.\u0435. propArray(KEY). \u041e\u0431\u0430 \u043d\u0430\u0448\u0438\u0445 \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043f\u043e\u043b\u0435 entity, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432 \u043f\u043e\u0434\u0442\u0430\u0431\u043b\u0438\u0446\u0435 attributes.<\/p>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u0438\u0434\u0435\u043d \u0438\u043d\u0434\u0435\u043a\u0441 <font color=\"#000080\">Index<\/font> idx3 On attributes(ELEMENTS); \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u043d \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 attributes(KEYS), \u0430 \u0432\u043e\u0442 \u0438\u043d\u0434\u0435\u043a\u0441\u044b:  <\/p>\n<ul>\n<li><font color=\"#000080\">Index<\/font> idx4 On (attributes(KEYS), attributes(ELEMENTS)); <\/li>\n<li><font color=\"#000080\">Index<\/font> idx5 On (attributes(ELEMENTS), attributes(KEYS)); <\/li>\n<\/ul>\n<p> \u0431\u0443\u0434\u0443\u0442 \u0432\u0438\u0434\u043d\u044b \u0438 \u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0431\u0443\u0434\u0443\u0442 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0440\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445, \u043d\u043e \u043d\u0435 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0442\u0438\u043f\u043e\u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043e\u043d\u0438 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b.<\/p>\n<h3>\u0422\u0430\u043a \u043a\u0430\u043a \u0436\u0435 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0443\u0441\u0438\u043b\u0438\u044f\u043c\u0438 \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u043d\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438-\u043c\u0430\u0441\u0441\u0438\u0432\u0430 SQL-\u044f\u0434\u0440\u043e\u043c?<\/h3>\n<p>  \u0412 \u0432\u0435\u0440\u0441\u0438\u0438 Cach\u00e9 2015.1 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0435\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e \u043a\u0430\u043a \u043f\u043e\u043b\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u0435\u0441\u043b\u0438 \u044d\u0442\u0430 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u043f\u0440\u043e\u0435\u0446\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u043f\u043e\u0434\u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043c\u0435\u0442\u043e\u0434\u044b <a href=\"http:\/\/docs.intersystems.com\/cache20151\/csp\/docbook\/DocBook.UI.Page.cls?KEY=GSQL_queries#GSQL_queries_collection\">SetCollectionProjection\/GetCollectionProjection<\/a>.<br \/>  \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u044d\u0442\u0430 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u0430.<\/p>\n<p>  \u0412 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043d\u0435\u0442, \u043d\u043e \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u044d\u0442\u0443 \u0444\u0438\u0447\u0443 \u0432\u0440\u0443\u0447\u043d\u0443\u044e:  <\/p>\n<pre><code>%SYS&gt;set ^%SYS(&quot;sql&quot;,&quot;sys&quot;,&quot;collection projection&quot;)=1 <\/code><\/pre>\n<p>  \u041f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043f\u0435\u0440\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0441\u044b.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0432\u043a\u043b\u044e\u0447\u0438\u043c \u044d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0430\u043c \u0434\u0430\u043b\u043e.<\/p>\n<p>  \u0412 SMP \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0442\u0430\u043b\u0438 \u0432\u0438\u0434\u043d\u044b \u043d\u0430\u0448\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u044b, \u0430 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 eav \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0441\u043a\u0440\u044b\u0442\u043e\u0435 \u043f\u043e\u043b\u0435-\u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f attr. \u0422\u0435\u043c \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 \u043d\u0430\u0448 \u0437\u0430\u043f\u0440\u043e\u0441 \u043f\u043e \u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u043d\u0435 \u0432\u0438\u0434\u0438\u0442 \u0438\u043d\u0434\u0435\u043a\u0441\u044b idx1\/idx2.<\/p>\n<p>  \u0414\u043b\u044f \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0443\u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u043c \u043f\u0440\u0435\u0434\u0438\u043a\u0430\u0442\u043e\u043c <a href=\"http:\/\/docs.intersystems.com\/cache20151\/csp\/docbook\/DocBook.UI.Page.cls?KEY=RSQL_forsomeelement\">FOR SOME %ELEMENT<\/a>:<\/p>\n<pre><code class=\"sql\">select entity from eav where for some %element(attr) (%value = 22)  entity \u0427\u0435\u043b\u043e\u0432\u0435\u043a \u0414\u0435\u0440\u0435\u0432\u043e <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043d \u0438\u043d\u0434\u0435\u043a\u0441 idx1. \u041d\u0435\u043c\u043d\u043e\u0433\u043e \u0435\u0433\u043e \u0432\u0438\u0434\u043e\u0438\u0437\u043c\u0435\u043d\u0438\u043c:<\/p>\n<pre><code class=\"sql\">select entity from eav where for some %element(attr) (%value = 22 and %key= '\u0412\u043e\u0437\u0440\u0430\u0441\u0442')  entity \u0427\u0435\u043b\u043e\u0432\u0435\u043a <\/code><\/pre>\n<pre><code class=\"sql\">select entity from eav where for some %element(attr) (%value = 22 and %key= '\u0412\u044b\u0441\u043e\u0442\u0430')  entity \u0414\u0435\u0440\u0435\u0432\u043e <\/code><\/pre>\n<p>  \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0434\u0432\u0443\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u0443\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u0434\u0435\u0439\u0441\u0442\u0432\u043e\u0432\u0430\u043d \u0438\u043d\u0434\u0435\u043a\u0441 idx2 \u0432\u043c\u0435\u0441\u0442\u043e idx1.     \t<\/p>\n<div class=\"clear\"><\/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=\"http:\/\/habrahabr.ru\/post\/255203\/\"> http:\/\/habrahabr.ru\/post\/255203\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u0412 Cach\u00e9 2015.1 \u043f\u043e\u044f\u0432\u0438\u043b\u0430\u0441\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0434\u043b\u044f \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439 \u043f\u0440\u043e\u0435\u043a\u0446\u0438\u044e \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043b\u043e\u043d\u043a\u0443. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0434\u043b\u044f SQL \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0434\u0430\u043d\u043d\u044b\u043c \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043e\u0447\u0435\u0440\u043d\u044e\u044e \u0442\u0430\u0431\u043b\u0438\u0446\u0443, \u043d\u043e \u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u043a\u0430\u043a \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043b\u043e\u043d\u043a\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043b\u0435\u0436\u0430\u0442 \u0432\u0441\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c <a href=\"http:\/\/docs.intersystems.com\/cache20151\/csp\/docbook\/DocBook.UI.Page.cls?KEY=GSQL_queries#GSQL_queries_collection\">\u0437\u0434\u0435\u0441\u044c<\/a>.<br \/>  \u041e \u0442\u043e\u043c, \u043a\u0430\u043a \u0438 \u0433\u0434\u0435 \u044d\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u043d\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0435, \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f.  <\/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-254802","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/254802","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=254802"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/254802\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=254802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=254802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=254802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}