{"id":164803,"date":"2013-01-06T08:44:04","date_gmt":"2013-01-06T04:44:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=164803"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=164803","title":{"rendered":"<span class=\"post_title\">Postgre(no)SQL \u0438\u043b\u0438 \u0441\u043d\u043e\u0432\u0430 \u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0433\u0438\u0431\u043a\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t\u041a\u043e\u0433\u0434\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u0437\u0430\u0445\u043e\u0434\u0438\u0442 \u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0432 \u0411\u0414 \u0433\u0438\u0431\u043a\u0438\u0445 (\u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043d\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445, \u0447\u0430\u0441\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0445) \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0434\u0430\u043d\u043d\u044b\u0445, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u043a \u00ab\u0432\u0435\u043b\u0438\u043a\u043e\u043c\u0443 \u0438 \u0443\u0436\u0430\u0441\u043d\u043e\u043c\u0443\u00bb EAV-\u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0443, \u043b\u0438\u0431\u043e \u043a \u043d\u044b\u043d\u0435 \u043c\u043e\u0434\u043d\u044b\u043c NOSQL \u0431\u0430\u0437\u0430\u043c \u0434\u0430\u043d\u043d\u044b\u0445.<br \/>  \u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0442\u0430\u043a\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u0442\u0430\u043b\u0430 \u0438 \u043f\u0435\u0440\u0435\u0434\u043e \u043c\u043d\u043e\u0439.<br \/>   \u2014 <b>EAV<\/b>. \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0443 \u043c\u0435\u043d\u044f \u0441\u0442\u043e\u0439\u043a\u0443\u044e \u043d\u0435\u043f\u0440\u0438\u044f\u0437\u043d\u044c, \u0434\u0430 \u0438 \u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u0431\u044b\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0432\u0441\u0435\u0433\u043e \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e (\u041a\u0430\u0439\u0442, \u0424\u0430\u0443\u043b\u0435\u0440, \u041a\u0430\u0440\u0432\u0438\u043d, \u0413\u043e\u0440\u043c\u0430\u043d). \u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043c\u0438\u043d\u0443\u0441 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u043f\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0436\u0435 \u043d\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044f\u043c\u0438 (\u00ab\u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u00bb, \u00ab\u0414\u043e\u043c\u00bb, \u00ab\u041a\u043b\u0438\u0435\u043d\u0442\u00bb, \u0442\u043e \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u0438 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d SQL), \u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438, \u043e\u0440\u0430\u0433\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 (\u0438\u0437\u0432\u0438\u043d\u0438\u0442\u0435 \u0437\u0430 \u0441\u0443\u043c\u0431\u0443\u0440). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u043e \u0431\u044b\u043b \u0441\u0430\u043c\u044b\u0439 \u043d\u0435 \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442.<br \/>   \u2014 <b>NOSQL<\/b>. \u041f\u043e\u043d\u0430\u0447\u0430\u043b\u0443 \u043e\u0447\u0435\u043d\u044c \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b \u044d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 (\u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 MongoDB). \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043e\u043a, \u043f\u0435\u0440\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0448\u044c \u0438\u0441\u043f\u044b\u0442\u044b\u0432\u0430\u0442\u044c \u0447\u0443\u0432\u0441\u0442\u0432\u043e \u0442\u043e\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0432\u043e\u0431\u043e\u0434\u044b, \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0437\u0430\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0434\u044b\u0445\u0430\u043d\u0438\u0435. \u0425\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043b\u044e\u0431\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u044b\u0445 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439, \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a \u043d\u0438\u043c \u2014 \u043a\u0440\u0430\u0441\u043e\u0442\u0430! \u041d\u043e \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u0439\u0444\u043e\u0440\u0438\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043f\u0430\u0434\u0430\u0442\u044c, \u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f:<br \/>   \u2014 \u0411\u0435\u0434\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 (\u0418\u041c\u0425\u041e) + \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0434\u0436\u043e\u0439\u043d\u043e\u0432;<br \/>   \u2014 \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u0445\u0435\u043c (\u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0431\u044b\u043b\u0430 \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 (\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u044d\u0442\u0443) <a href=\"http:\/\/habrahabr.ru\/post\/164361\/\">habrahabr.ru\/post\/164361\/<\/a>);<br \/>   \u2014 \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0441\u0441\u044b\u043b\u043e\u0447\u043d\u043e\u0439 \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u0438;<br \/>   \u2014 \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u0438\u0431\u0430\u043c\u0431\u0430\u0441\u043e\u0432 \u0432 \u0432\u0438\u0434\u0435 \u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\/\u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u0432, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439 \u0438 \u043c\u043d\u043e\u0433\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e.<br \/>   \u2014 \u0412 \u043c\u043e\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043f\u043e\u043c\u0438\u043c\u043e \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0433\u0438\u0431\u043a\u043e\u0439(\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0439) \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u2014 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u0438\u0439, \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 \u0438 \u0442.\u0434. \u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 (\u043e\u043f\u044f\u0442\u044c \u0436\u0435 \u0438\u043c\u0445\u043e) \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435 \u0438 (\u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435) \u043d\u0430\u0434\u0435\u0436\u043d\u0435\u0435 \u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0431\u0430\u0437\u0435 (\u0442\u0430 \u0436\u0435 \u0441\u0430\u043c\u0430\u044f \u0441\u0441\u044b\u043b\u043e\u0447\u043d\u0430\u044f \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u0438 \u043f\u0440.).<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u041f\u0435\u0440\u0432\u0443\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 (\u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e) \u044f \u043f\u044b\u0442\u0430\u043b\u0441\u044f \u0440\u0435\u0448\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e ORM (\u044d\u0442\u043e \u0431\u044b\u043b Spring Data), \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u043b \u043f\u0438\u0441\u0430\u0442\u044c \u0441\u043d\u043e\u0441\u043d\u044b\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c, \u043e\u0434\u043d\u0430\u043a\u043e \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u043a\u043b\u0430\u0441\u0441\u044b (\u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043d\u0443\u0436\u043d\u044b\u043c \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f\u043c) \u0438 \u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445 \u043e\u043f\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0436\u0435 \u0438\u043c\u0438. \u0414\u043b\u044f \u043c\u0435\u043d\u044f \u044d\u0442\u043e \u043d\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u043b\u043e, \u0442.\u043a. \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0438 \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c\u0441\u044f \u0447\u0430\u0441\u0442\u043e \u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u2014 \u00ab\u043d\u0430 \u0445\u043e\u0434\u0443\u00bb.<br \/>  \u0412\u0442\u043e\u0440\u0443\u044e \u2014 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0432\u0441\u0435\u0445 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e\u0441\u0442\u044c \u0432\u0432\u043e\u0434\u0438\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0442.\u0434.<br \/>  \u0414\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043c \u0434\u0435\u043b\u043e \u043d\u0435 \u0434\u043e\u0448\u043b\u043e, \u0431\u0440\u043e\u0441\u0438\u043b\u2026<br \/>  \u0423\u0436\u0435 \u043d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u043c\u043e\u044f \u0431\u0430\u0437\u0430 \u0441\u0442\u0430\u043b\u0430 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u0445\u0440\u0443\u043f\u043a\u043e\u0435 \u0441\u043e\u043e\u0440\u0443\u0436\u0435\u043d\u0438\u0435, \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0437\u0430\u0432\u0438\u0441\u044f\u0449\u0435\u0435 \u043e\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043f\u043b\u044e\u0441 \u044f \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u043b \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u044b\u0432\u0430\u0442\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043c\u043d\u043e\u0433\u0438\u0435 \u0432\u0435\u0449\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043e\u043a \u043c\u043e\u0433\u0443\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u0438 \u0442\u0430\u043a, \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438. \u041c\u043e\u0436\u0435\u0442 \u044d\u0442\u043e \u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e, \u043d\u043e \u043a\u0430\u043a \u0442\u043e \u043d\u0435 \u043f\u0440\u0438\u0432\u044b\u043a \u044f \u043a \u044d\u0442\u043e\u043c\u0443, \u043a\u0430\u043a \u0442\u043e \u043d\u0435 \u043f\u043e \u0441\u0435\u0431\u0435 \u0441\u0442\u0430\u043b\u043e.<\/p>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u044f \u0437\u0430\u0434\u0443\u043c\u0430\u043b\u0441\u044f \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u0437\u0434\u043e\u0440\u043e\u0432\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u0443\u044e \u0438 NOSQL \u0421\u0423\u0411\u0414. \u0421 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0432\u0441\u044f \u043c\u043e\u0449\u044c \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043a\u0438 \u0441\u043e \u0432\u0441\u0435\u043c\u0438 \u043f\u0440\u0438\u043b\u0430\u0433\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f, \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u2014 \u043b\u0435\u0433\u043a\u043e\u0441\u0442\u044c \u0438 \u044d\u043b\u0435\u0433\u0430\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f. \u0418 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e, \u0447\u0442\u043e \u043c\u0435\u0448\u0430\u0435\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0441 \u0433\u0438\u0431\u043a\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0432 \u043d\u0435\u043a\u043e\u0439 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 (\u0442\u0430\u0431\u043b\u0438\u0446\u0430\u0445) \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 xml, \u0430 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u043d\u0438\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e XPATH, \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u0447\u0442\u043e \u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0421\u0423\u0411\u0414 \u0438\u043c\u0435\u044e\u0442 \u0440\u0430\u0437\u0432\u0438\u0442\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 XML (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435).<br \/>  \u0420\u0435\u0448\u0438\u043b \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Postgresql, \u0447\u0442\u043e \u0438\u0437 \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f, \u043a\u0430\u043a \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b:<\/p>\n<p>  \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0445\u0432\u0430\u0442\u0438\u0442 \u0434\u0432\u0443\u0445 \u0441\u043b\u0443\u0436\u0435\u0431\u043d\u044b\u0445 \u0442\u0430\u0431\u043b\u0438\u0446, \u0434\u0443\u043c\u0430\u044e \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u0438\u0437\u043b\u0438\u0448\u043d\u0438:<\/p>\n<pre><code class=\"sql\">CREATE TABLE classes (   id integer NOT NULL,   name text,   is_closed boolean,   obects_count integer,   CONSTRAINT classes_pk PRIMARY KEY (id ) );  CREATE TABLE objects (   id integer NOT NULL,   body xml,   id_classes integer,   CONSTRAINT objects_pk PRIMARY KEY (id ),   CONSTRAINT classes_objects FOREIGN KEY (id_classes)       REFERENCES classes (id) MATCH SIMPLE       ON UPDATE NO ACTION ON DELETE NO ACTION );  CREATE INDEX fki_classes_objects   ON objects   USING btree   (id_classes );  <\/code><\/pre>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u0432\u0435 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u0442\u043d\u043e\u0432:<\/p>\n<pre><code class=\"sql\">INSERT INTO classes(             id, name, is_closed, obects_count)     VALUES (1, 'customers', FALSE, 0);  INSERT INTO classes(             id, name, is_closed, obects_count)     VALUES (2, 'orders', FALSE, 0); <\/code><\/pre>\n<p>  \u041f\u043e\u0434\u0433\u043e\u0442\u043e\u0432\u0438\u043c \u0434\u0432\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 (\u0432\u0437\u044f\u0442\u044b \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0440\u0430\u0445 \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430):<\/p>\n<pre><code class=\"sql\">CREATE OR REPLACE FUNCTION random(numeric, numeric)   RETURNS numeric AS $BODY$    SELECT ($1 + ($2 - $1) * random())::numeric; $BODY$   LANGUAGE sql VOLATILE   COST 100;  CREATE OR REPLACE FUNCTION random_string(length integer)   RETURNS text AS $BODY$ declare   chars text[] := '{0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}';   result text := '';   i integer := 0; begin   if length &lt; 0 then     raise exception 'Given length cannot be less than 0';   end if;   for i in 1..length loop     result := result || chars[1+random()*(array_length(chars, 1)-1)];   end loop;   return result; end; $BODY$   LANGUAGE plpgsql VOLATILE   COST 100; <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u044b\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u00ab\u041a\u043b\u0438\u0435\u043d\u0442\u00bb \u0438 \u00ab\u0417\u0430\u043a\u0430\u0437\u00bb (\u0441\u0432\u044f\u0437\u044c \u043e\u0434\u0438\u043d \u043a\u043e \u043c\u043d\u043e\u0433\u0438\u043c, \u043a\u0430\u0436\u0434\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u0441\u0434\u0435\u043b\u0430\u043b \u043f\u043e \u043f\u044f\u0442\u044c \u0437\u0430\u043a\u0430\u0437\u043e\u0432):<\/p>\n<pre><code class=\"sql\">DO $$ DECLARE \tcustomer_pk integer; \torder_pk integer; BEGIN \tFOR i in 1..10000 LOOP \t\tcustomer_pk := nextval('objects_id_seq'); \t\torder_pk := nextval('objects_id_seq');  \t\tinsert into objects (body, id_classes) values(( \t\t'&lt;Customers&gt; \t\t\t&lt;Customer&gt; \t\t\t\t&lt;ID&gt;' || customer_pk || '&lt;\/ID&gt; \t\t\t\t&lt;Name&gt;' || random_string('10') || '&lt;\/Name&gt; \t\t\t\t&lt;Partners&gt;' || random_string('10') || '&lt;\/Partners&gt; \t\t\t&lt;\/Customer&gt; \t\t&lt;\/Customers&gt;')::xml, 1);   \t\tfor j in 1..5 LOOP  \t\t\tinsert into objects (body, id_classes) values(( \t\t\t'&lt;Orders&gt; \t\t\t\t&lt;Order&gt; \t\t\t\t\t&lt;ID&gt;' || order_pk || '&lt;\/ID&gt; \t\t\t\t\t&lt;Customer_id&gt;' || customer_pk || '&lt;\/Customer_id&gt; \t\t\t\t\t&lt;Cost&gt;' || random(1, 1000) || '&lt;\/Cost&gt; \t\t\t\t&lt;\/Order&gt; \t\t\t&lt;\/Orders&gt;')::xml, 2);  \t\tend loop;  \tEND LOOP; END$$; <\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u043c \u0432\u044b\u0431\u0435\u0440\u0435\u043c \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0443\u044e \u0441\u0442\u043e\u0438\u043c\u043e\u0441\u0442\u044c \u0437\u0430\u043a\u0430\u0437\u0430:<\/p>\n<pre><code class=\"sql\">explain select max(((xpath('\/Orders\/Order\/Cost\/text()', O.body))[1])::text::float) as cost_of_order   from Objects O  where O.id_classes = 2; <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"sql\">\/* Aggregate  (cost=2609.10..2609.11 rows=1 width=32)   -&gt;  Seq Scan on objects o  (cost=0.00..2104.50 rows=50460 width=32)         Filter: (id_classes = 2) *\/  <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0440\u043e\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0437\u0430\u043a\u043e\u0432\u044b\u0440\u0438\u0441\u0442\u044b\u043c, \u043d\u043e \u0432\u0441\u0435 \u0436\u0435 \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u043c: \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u043a \u043a\u0430\u043a\u043e\u0439 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u0438 \u0432\u044b\u043f\u043e\u043d\u044f\u0435\u0442\u0441\u044f \u0437\u0430\u043f\u0440\u043e\u0441 \u0438 \u043f\u043e \u043a\u0430\u043a\u043e\u043c\u0443 \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0443. \u041a\u0430\u043a \u043d\u0438 \u0441\u0442\u0440\u0430\u043d\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0444\u0443\u043b\u043b \u0441\u043a\u0430\u043d, \u043e\u0434\u043d\u0430\u043a\u043e \u043d\u0438\u0447\u0442\u043e \u043d\u0435 \u043c\u0435\u0448\u0430\u0435\u0442 \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441 \u043f\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0443 Cost:<\/p>\n<pre><code class=\"sql\">create index obj_orders_cost_idx on objects using btree (((xpath('\/Orders\/Order\/Cost\/text()', body))[1]::text::float)); <\/code><\/pre>\n<p>  \u0418 \u0442\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u043e\u0442\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0433\u043e\u0440\u0430\u0437\u0434 \u0431\u044b\u0441\u0442\u0440\u0435\u0435 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0438\u043d\u0434\u0435\u043a\u0441:  <\/p>\n<pre><code class=\"sql\">\/* Result  (cost=0.15..0.16 rows=1 width=0)   InitPlan 1 (returns $0)     -&gt;  Limit  (cost=0.00..0.15 rows=1 width=32)           -&gt;  Index Scan Backward using obj_orders_cost_idx on objects o  (cost=0.00..7246.26 rows=50207 width=32)                 Index Cond: ((((xpath('\/Orders\/Order\/Cost\/text()'::text, body, '{}'::text[]))[1])::text)::double precision IS NOT NULL)                 Filter: (id_classes = 2) *\/ <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0437\u0430\u043a\u0430\u0437\u0430\u0445 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432, \u0442.\u0435. \u0441\u0432\u044f\u0437\u043a\u0443 \u0434\u0432\u0443\u0445 \u0442\u0430\u0431\u043b\u0438\u0446:<\/p>\n<pre><code class=\"sql\">explain select (xpath('\/Customers\/Customer\/Name\/text()', C.body))[1] as customer      , (xpath('\/Orders\/Order\/Cost\/text()', O.body))[1] as cost_of_order   from objects C      , objects O  where C.id_classes = 1    and O.id_classes = 2    and (xpath('\/Orders\/Order\/Customer_id\/text()', O.body))[1]::text::int = (xpath('\/Customers\/Customer\/ID\/text()', C.body))[1]::text::int    and ((xpath('\/Customers\/Customer\/ID\/text()' ,C.body))[1])::text::int between 1997585 and 1997595; <\/code><\/pre>\n<pre><code class=\"sql\">\/* Hash Join  (cost=1873.57..6504.85 rows=12867 width=64)   Hash Cond: ((((xpath('\/Orders\/Order\/Customer_id\/text()'::text, o.body, '{}'::text[]))[1])::text)::integer = (((xpath('\/Customers\/Customer\/ID\/text()'::text, c.body, '{}'::text[]))[1])::text)::integer)   -&gt;  Seq Scan on objects o  (cost=0.00..2104.50 rows=50460 width=32)         Filter: (id_classes = 2)   -&gt;  Hash  (cost=1872.93..1872.93 rows=51 width=32)         -&gt;  Bitmap Heap Scan on objects c  (cost=196.38..1872.93 rows=51 width=32)               Recheck Cond: (id_classes = 1)               Filter: (((((xpath('\/Customers\/Customer\/ID\/text()'::text, body, '{}'::text[]))[1])::text)::integer &gt;= 1997585) AND ((((xpath('\/Customers\/Customer\/ID\/text()'::text, body, '{}'::text[]))[1])::text)::integer &lt;= 1997595))               -&gt;  Bitmap Index Scan on fki_classes_objects  (cost=0.00..196.37 rows=10140 width=0)                     Index Cond: (id_classes = 1) *\/ <\/code><\/pre>\n<p>  \u041e\u0436\u0438\u0434\u0430\u0435\u043c\u044b\u0439 \u0444\u0443\u043b\u043b\u0441\u043a\u0430\u043d, \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u043b\u0435\u0433\u043a\u0430 \u043f\u0440\u043e\u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u0435\u043c:<\/p>\n<pre><code class=\"sql\">create index obj_customers_id_idx on objects using btree (((xpath('\/Customers\/Customer\/ID\/text()', body))[1]::text::int)); create index obj_orders_id_idx on objects using btree (((xpath('\/Orders\/Order\/ID\/text()', body))[1]::text::int)); create index obj_orders_customerid_idx on objects using btree (((xpath('\/Orders\/Order\/Customer_id\/text()', body))[1]::text::int)); <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0432\u0435\u0441\u0435\u043b\u0435\u0435:<\/p>\n<pre><code class=\"sql\">\/* Hash Join  (cost=380.52..5011.80 rows=12867 width=64)   Hash Cond: ((((xpath('\/Orders\/Order\/Customer_id\/text()'::text, o.body, '{}'::text[]))[1])::text)::integer = (((xpath('\/Customers\/Customer\/ID\/text()'::text, c.body, '{}'::text[]))[1])::text)::integer)   -&gt;  Seq Scan on objects o  (cost=0.00..2104.50 rows=50460 width=32)         Filter: (id_classes = 2)   -&gt;  Hash  (cost=379.88..379.88 rows=51 width=32)         -&gt;  Bitmap Heap Scan on objects c  (cost=204.00..379.88 rows=51 width=32)               Recheck Cond: (((((xpath('\/Customers\/Customer\/ID\/text()'::text, body, '{}'::text[]))[1])::text)::integer &gt;= 1997585) AND ((((xpath('\/Customers\/Customer\/ID\/text()'::text, body, '{}'::text[]))[1])::text)::integer &lt;= 1997595) AND (id_classes = 1))               -&gt;  BitmapAnd  (cost=204.00..204.00 rows=51 width=0)                     -&gt;  Bitmap Index Scan on obj_customers_id_idx  (cost=0.00..7.35 rows=303 width=0)                           Index Cond: (((((xpath('\/Customers\/Customer\/ID\/text()'::text, body, '{}'::text[]))[1])::text)::integer &gt;= 1997585) AND ((((xpath('\/Customers\/Customer\/ID\/text()'::text, body, '{}'::text[]))[1])::text)::integer &lt;= 1997595))                     -&gt;  Bitmap Index Scan on fki_classes_objects  (cost=0.00..196.37 rows=10140 width=0)                           Index Cond: (id_classes = 1) *\/ <\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u0442\u0430\u043a \u0436\u0435 \u043d\u0435 \u043f\u043e\u0442\u0435\u0440\u044f\u043b \u0441\u0432\u043e\u0435\u0439 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438, \u043e\u0434\u043d\u0430\u043a\u043e \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u0438\u0447\u0435\u0441\u0430\u0442\u044c: \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0438\u043f\u043e\u0432, \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c xml \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0438 \u0442.\u0434. \u0420\u0430\u0431\u043e\u0442\u044b \u0435\u0448\u0435 \u043c\u043d\u043e\u0433\u043e, \u044d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440.<\/p>\n<p>  \u0427\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0449\u0435:<\/p>\n<p>  1. \u0413\u0438\u0431\u043a\u0438\u0439 \u043f\u043e\u0438\u0441\u043a \u043f\u043e \u0430\u0442\u0440\u0438\u0431\u0443\u0442\u0430\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u043b\u044e\u0431\u044b\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432;<br \/>  2. \u0422\u0430\u0431\u043b\u0438\u0446\u0443 objects \u043c\u043e\u0436\u043d\u043e \u043f\u0430\u0440\u0442\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c (\u0445\u043e\u0442\u044f\u0431\u044b \u0447\u0430\u0441\u0442\u0438\u0447\u043d\u043e), \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0431\u043e\u043b\u044c\u0448\u0438\u0445 \u043a\u043b\u0430\u0441\u0441\u043e\u0432 \u0444\u0438\u0437\u0438\u0447\u0435\u0441\u043a\u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>  \u0425\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0411\u0414 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 xml \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u0435\u043d\u043e \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043d\u043e\u0432\u0438\u043d\u043a\u043e\u0439, \u043e\u0434\u043d\u0430\u043a\u043e \u043f\u0440\u0438 \u043f\u043e\u0438\u0441\u043a\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u0435\u0433\u043e \u0432\u043e\u043f\u0440\u043e\u0441\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0431 \u044d\u0442\u043e\u043c \u0431\u044b\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u0430\u043b\u043e, \u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u044f \u0443\u0436\u0435 \u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445. \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u043a\u043e\u043c\u0443 \u043d\u0438\u0431\u0443\u0434\u044c \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u0438\u043b\u0438(\u0438) \u0443\u0441\u043b\u044b\u0448\u0430\u0442\u044c \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u043e\u0442\u0437\u044b\u0432\u044b \u0438 \u043c\u043d\u0435\u043d\u0438\u044f \u043b\u044e\u0434\u0435\u0439, \u043f\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u0432\u0448\u0438\u0445 \u0441 \u043f\u043e\u0445\u043e\u0436\u0435\u0439 \u0441\u0445\u0435\u043c\u043e\u0439.    \t \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/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\/164803\/\"> http:\/\/habrahabr.ru\/post\/164803\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t\u041a\u043e\u0433\u0434\u0430 \u0432\u043e\u043f\u0440\u043e\u0441 \u0437\u0430\u0445\u043e\u0434\u0438\u0442 \u043e \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0432 \u0411\u0414 \u0433\u0438\u0431\u043a\u0438\u0445 (\u0437\u0430\u0440\u0430\u043d\u0435\u0435 \u043d\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u044b\u0445, \u0447\u0430\u0441\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0445) \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440 \u0434\u0430\u043d\u043d\u044b\u0445, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043e\u0431\u044b\u0447\u043d\u043e \u043e\u0431\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u043a \u00ab\u0432\u0435\u043b\u0438\u043a\u043e\u043c\u0443 \u0438 \u0443\u0436\u0430\u0441\u043d\u043e\u043c\u0443\u00bb EAV-\u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0443, \u043b\u0438\u0431\u043e \u043a \u043d\u044b\u043d\u0435 \u043c\u043e\u0434\u043d\u044b\u043c NOSQL \u0431\u0430\u0437\u0430\u043c \u0434\u0430\u043d\u043d\u044b\u0445.<br \/>  \u041d\u0435 \u0442\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0442\u0430\u043a\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u0441\u0442\u0430\u043b\u0430 \u0438 \u043f\u0435\u0440\u0435\u0434\u043e \u043c\u043d\u043e\u0439.<br \/>   \u2014 <b>EAV<\/b>. \u0412\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0443 \u043c\u0435\u043d\u044f \u0441\u0442\u043e\u0439\u043a\u0443\u044e \u043d\u0435\u043f\u0440\u0438\u044f\u0437\u043d\u044c, \u0434\u0430 \u0438 \u0441\u043a\u0430\u0437\u0430\u043d\u043e \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u0431\u044b\u043b\u043e \u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u0433\u043e \u0432\u0441\u0435\u0433\u043e \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u043e\u0433\u043e (\u041a\u0430\u0439\u0442, \u0424\u0430\u0443\u043b\u0435\u0440, \u041a\u0430\u0440\u0432\u0438\u043d, \u0413\u043e\u0440\u043c\u0430\u043d). \u0413\u043b\u0430\u0432\u043d\u044b\u0439 \u043c\u0438\u043d\u0443\u0441 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0440\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043e\u043f\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0443\u0436\u0435 \u043d\u0435 \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044f\u043c\u0438 (\u00ab\u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u00bb, \u00ab\u0414\u043e\u043c\u00bb, \u00ab\u041a\u043b\u0438\u0435\u043d\u0442\u00bb, \u0442\u043e \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u0438 \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d SQL), \u0430 \u043e\u0431\u044a\u0435\u043a\u0442\u0430\u043c\u0438, \u043e\u0440\u0430\u0433\u043d\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 \u043d\u0430 \u0431\u043e\u043b\u0435\u0435 \u043d\u0438\u0437\u043a\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 (\u0438\u0437\u0432\u0438\u043d\u0438\u0442\u0435 \u0437\u0430 \u0441\u0443\u043c\u0431\u0443\u0440). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u043e \u0431\u044b\u043b \u0441\u0430\u043c\u044b\u0439 \u043d\u0435 \u0436\u0435\u043b\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442.<br \/>   \u2014 <b>NOSQL<\/b>. \u041f\u043e\u043d\u0430\u0447\u0430\u043b\u0443 \u043e\u0447\u0435\u043d\u044c \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b \u044d\u0442\u043e\u0442 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 (\u0432 \u0447\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u0438 MongoDB). \u041f\u043e\u0441\u043b\u0435 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043e\u043a, \u043f\u0435\u0440\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0448\u044c \u0438\u0441\u043f\u044b\u0442\u044b\u0432\u0430\u0442\u044c \u0447\u0443\u0432\u0441\u0442\u0432\u043e \u0442\u043e\u0442\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u0432\u043e\u0431\u043e\u0434\u044b, \u043e\u0442 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0437\u0430\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0434\u044b\u0445\u0430\u043d\u0438\u0435. \u0425\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043b\u044e\u0431\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b, \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0432\u044b\u0445 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439, \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u043a \u043d\u0438\u043c \u2014 \u043a\u0440\u0430\u0441\u043e\u0442\u0430! \u041d\u043e \u043f\u043e\u0441\u043b\u0435 \u043d\u0435\u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u0439\u0444\u043e\u0440\u0438\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0441\u043f\u0430\u0434\u0430\u0442\u044c, \u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f:<br \/>   \u2014 \u0411\u0435\u0434\u043d\u044b\u0439 \u044f\u0437\u044b\u043a \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 (\u0418\u041c\u0425\u041e) + \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0434\u0436\u043e\u0439\u043d\u043e\u0432;<br \/>   \u2014 \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u0445\u0435\u043c (\u0445\u043e\u0440\u043e\u0448\u0430\u044f \u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0431\u044b\u043b\u0430 \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443 (\u0438 \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u044d\u0442\u0443) <a href=\"http:\/\/habrahabr.ru\/post\/164361\/\">habrahabr.ru\/post\/164361\/<\/a>);<br \/>   \u2014 \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0438 \u0441\u0441\u044b\u043b\u043e\u0447\u043d\u043e\u0439 \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u0438;<br \/>   \u2014 \u041e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u0438\u0431\u0430\u043c\u0431\u0430\u0441\u043e\u0432 \u0432 \u0432\u0438\u0434\u0435 \u0445\u0440\u0430\u043d\u0438\u043c\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\/\u0444\u0443\u043d\u043a\u0446\u0438\u0439, \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u0432, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0439 \u0438 \u043c\u043d\u043e\u0433\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u043e\u0433\u043e.<br \/>   \u2014 \u0412 \u043c\u043e\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043f\u043e\u043c\u0438\u043c\u043e \u0434\u0430\u043d\u043d\u044b\u0445 \u0441 \u0433\u0438\u0431\u043a\u043e\u0439(\u0438\u0437\u043c\u0435\u043d\u044f\u0435\u043c\u043e\u0439) \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u2014 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043f\u043e\u0441\u0435\u0449\u0435\u043d\u0438\u0439, \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u043e\u0432 \u0438 \u0442.\u0434. \u0420\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 (\u043e\u043f\u044f\u0442\u044c \u0436\u0435 \u0438\u043c\u0445\u043e) \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u043e\u0449\u0435 \u0438 (\u0441\u0430\u043c\u043e\u0435 \u0433\u043b\u0430\u0432\u043d\u043e\u0435) \u043d\u0430\u0434\u0435\u0436\u043d\u0435\u0435 \u0432 \u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0431\u0430\u0437\u0435 (\u0442\u0430 \u0436\u0435 \u0441\u0430\u043c\u0430\u044f \u0441\u0441\u044b\u043b\u043e\u0447\u043d\u0430\u044f \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u0438 \u043f\u0440.).<\/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-164803","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/164803","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=164803"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/164803\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=164803"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=164803"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=164803"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}