{"id":219441,"date":"2014-04-16T14:52:03","date_gmt":"2014-04-16T10:52:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=219441"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=219441","title":{"rendered":"<span class=\"post_title\">\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u0433\u0440\u0430\u0444\u043e\u0432\u043e\u0439 \u0431\u0430\u0437\u043e\u0439 \u0434\u0430\u043d\u043d\u044b\u0445 Neo4j<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0412 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u0435\u0441\u0442\u044c \u0431\u0430\u0437\u0430 \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0441\u043e\u0442\u0435\u043d \u0442\u044b\u0441\u044f\u0447. \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430 \u0435\u0441\u0442\u044c \u0441\u043e\u0442\u043d\u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u0443\u044e \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044e \u043f\u043e \u0442\u043e\u0432\u0430\u0440\u0430\u043c \u043f\u043e \u043d\u0430\u0431\u043e\u0440\u0443 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a. \u0412\u0440\u0435\u043c\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 0.3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u043b\u043e\u0433\u0438\u043a\u0443 \u0432 \u0441\u0442\u0438\u043b\u0435.<\/p>\n<pre><code>(\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u04301 = true AND (\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u04302 &lt; 100)) OR (\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u04301 = false AND (\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u04303 &gt; 17)) ... \u0434\u0430\u043b\u0435\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u043c\u0435\u0448\u0430\u043d\u0438\u043d\u0430 \u0438\u0437 AND\\OR<\/code><\/pre>\n<p>  \u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u2014 <a href=\"http:\/\/hotline.ua\/computer\/myshi-klaviatury\/\">hotline.ua\/computer\/myshi-klaviatury\/<\/a><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/files.zq.com.ua\/habr2.png\" alt=\"\u041f\u0440\u0438\u043c\u0435\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430\"\/><\/p>\n<p>  \u0423 \u043d\u0430\u0441 \u0432\u0441\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 MySQL + Symfony2\/Doctrine, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043d\u0435\u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u2014 \u043e\u0442\u0432\u0435\u0442\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0438 1-10 \u0441\u0435\u043a\u0443\u043d\u0434. \u041c\u043e\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u044d\u0442\u043e \u0445\u043e\u0437\u044f\u0439\u0441\u0442\u0432\u043e \u2014 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.<br \/>  <a name=\"habracut\"><\/a><\/p>\n<h4>\u0422\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438 \u043f\u043e \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u0438 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 (\u0432 \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u043e\u043c \u0432\u0438\u0434\u0435)<\/h4>\n<p>  <\/p>\n<ul>\n<li><b>\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430<\/b> \u2014 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e \u0442\u043e\u0432\u0430\u0440\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043e\u0431\u044a\u0435\u043c \u043f\u0430\u043c\u044f\u0442\u0438.<\/li>\n<li><b>\u0448\u0430\u0431\u043b\u043e\u043d \u0442\u043e\u0432\u0430\u0440\u0430<\/b> \u2014 \u043d\u0430\u0431\u043e\u0440 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u044b\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u2014 \u043f\u0435\u0440\u0435\u0447\u0435\u043d\u044c \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u044b\u0445 \u043c\u044b\u0448\u0435\u043a. \u041f\u0440\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0438 \u043d\u043e\u0432\u043e\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0431\u0438\u0440\u0430\u0442\u044c \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0448\u0430\u0431\u043b\u043e\u043d\u0430. \u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0443 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430 \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u2014 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0443 \u0432 \u0448\u0430\u0431\u043b\u043e\u043d \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430. \u041e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u0430 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430 \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0445 \u044d\u0442\u043e\u0442 \u0448\u0430\u0431\u043b\u043e\u043d<\/li>\n<li><b>\u0433\u0440\u0443\u043f\u043f\u0430 \u0442\u043e\u0432\u0430\u0440\u043e\u0432<\/b> \u2014 \u0442\u043e\u0432\u0430\u0440\u044b \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0448\u0430\u0431\u043b\u043e\u043d\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u044b\u0435 \u043c\u044b\u0448\u043a\u0438. \u0424\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044f \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u043b\u044f \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0438\u0437 \u043e\u0434\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u044b<\/li>\n<li><b>\u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0439<\/b> \u2014 \u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u043e, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0438\u0437 \u043d\u0430\u0431\u043e\u0440\u0430 \u0444\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u044b\u0445 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u043a \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u043c \u0442\u043e\u0432\u0430\u0440\u0430. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u00ab\u0433\u0435\u0439\u043c\u0435\u0440\u0441\u043a\u0430\u044f \u043c\u044b\u0448\u043a\u0430\u00bb \u2014 \u044d\u0442\u043e \u043d\u0430\u0431\u043e\u0440 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0439 \u043a \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u043c (\u0440\u0430\u0437\u043c\u0435\u0440 \u043d\u0435 \u043c\u0438\u043d\u0438\u0430\u0442\u044e\u0440\u043d\u044b\u0439) AND (\u0441\u0435\u043d\u0441\u043e\u0440 \u043b\u0430\u0437\u0435\u0440\u043d\u044b\u0439) AND (\u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0441\u0435\u043d\u0441\u043e\u0440\u0430 \u043d\u0435 \u043c\u0435\u043d\u0435\u0435 1500) <\/li>\n<li><b>\u0444\u0438\u043b\u044c\u0442\u0440<\/b> \u2014 \u0433\u0440\u0443\u043f\u043f\u0430 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0435\u0432 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0442\u0438\u043f\u043d\u044b\u0445 \u0442\u043e\u0432\u0430\u0440\u043e\u0432. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0435\u0432, \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u043a\u043e\u043c\u0431\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0447\u0435\u0440\u0435\u0437 AND \u0438\u043b\u0438 OR<\/li>\n<\/ul>\n<p>  \u0423 hotline \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u2014 \u0441 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u043e\u0439, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u043e\u0441\u0442\u0430\u043d\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044f. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440 \u00abBluetooth\u00bb, \u0442\u043e \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0432\u043e\u0437\u043b\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u0430 \u00ab\u0422\u0438\u043f \u0441\u0435\u043d\u0441\u043e\u0440\u0430 \u043c\u044b\u0448\u0438 \u2014 \u043e\u043f\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439\u00bb \u0431\u0443\u0434\u0435\u0442 \u0446\u0438\u0444\u0440\u0430 17. \u0424\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438, \u0434\u043b\u044f \u0442\u0430\u043a\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0443\u0436\u043d\u043e \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u043a\u0443 \u043f\u043e \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044f\u043c, \u043d\u043e \u0438 \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043e\u0441\u0442\u0430\u0432\u0448\u0435\u0433\u043e\u0441\u044f \u0444\u0438\u043b\u044c\u0442\u0440\u0430 \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u043f\u0440\u0438 \u0435\u0433\u043e \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438. <\/p>\n<p>  \u0414\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0433\u0440\u0430\u0444\u043e\u0432\u0443\u044e \u0431\u0430\u0437\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 <a href=\"http:\/\/neo4j.org\">Neo4j<\/a>. \u0414\u043b\u044f \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u043e\u0441\u0442\u043d\u043e\u0433\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0442\u044c <a href=\"http:\/\/habrahabr.ru\/post\/152079\/\">\u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442<\/a>. <\/p>\n<h4>\u0422\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u044f Neo4j \u0438 \u0433\u0440\u0430\u0444\u043e\u0432\u044b\u0445 \u0431\u0430\u0437 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0446\u0435\u043b\u043e\u043c.<\/h4>\n<p>  <\/p>\n<ul>\n<li><b>graph database<\/b>, <b><a href=\"http:\/\/ru.wikipedia.org\/wiki\/%D0%93%D1%80%D0%B0%D1%84_(%D0%BC%D0%B0%D1%82%D0%B5%D0%BC%D0%B0%D1%82%D0%B8%D0%BA%D0%B0)\">\u0433\u0440\u0430\u0444\u043e\u0432\u0430\u044f<\/a> \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/b> \u2014 \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u043d\u0430 \u0433\u0440\u0430\u0444\u0430\u0445 \u2014 \u0443\u0437\u043b\u0430\u0445 \u0438 \u0441\u0432\u044f\u0437\u044f\u0445 \u043c\u0435\u0436\u0434\u0443 \u043d\u0438\u043c\u0438<\/li>\n<li><a href=\"http:\/\/www.neo4j.org\/learn\/cypher\"><b>Cypher<\/b><\/a> \u2014 \u044f\u0437\u044b\u043a \u0434\u043b\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 Neo4j (\u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e, \u043a\u0430\u043a SQL \u0432 MYSQL)<\/li>\n<li><b>node<\/b>, <b>\u043d\u043e\u0434\u0430<\/b> \u2014 \u043e\u0431\u044a\u0435\u043a\u0442 \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u0443\u0437\u0435\u043b \u0433\u0440\u0430\u0444\u0430. \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0437\u043b\u043e\u0432 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e 2 \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 35 ~ 34 \u0431\u0438\u043b\u043b\u0438\u043e\u043d\u0430 <\/li>\n<li><b>node label<\/b>, <b>\u043c\u0435\u0442\u043a\u0430 \u043d\u043e\u0434\u044b<\/b> \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043a\u0430\u043a \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u00ab\u0442\u0438\u043f \u043d\u043e\u0434\u044b\u00bb. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u043e\u0434\u044b \u0442\u0438\u043f\u0430 movie \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b \u0441 \u043d\u043e\u0434\u0430\u043c\u0438 \u0442\u0438\u043f\u0430 actor. \u041c\u0435\u0442\u043a\u0438 \u043d\u043e\u0434 <b> \u2014 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u043e\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435<\/b>, \u043f\u0440\u0438\u0447\u0435\u043c Cypher \u043d\u0435 \u0432\u044b\u0434\u0430\u0435\u0442 \u043e\u0448\u0438\u0431\u043e\u043a, \u0435\u0441\u043b\u0438 \u043d\u0430\u0431\u0440\u0430\u0442\u044c \u043d\u0435 \u0432 \u0442\u043e\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435.<\/li>\n<li><b>relation<\/b>, <b>\u0441\u0432\u044f\u0437\u044c<\/b> \u2014 \u0441\u0432\u044f\u0437\u044c \u043c\u0435\u0436\u0434\u0443 \u0434\u0432\u0443\u043c\u044f \u043d\u043e\u0434\u0430\u043c\u0438, \u0440\u0435\u0431\u0440\u043e \u0433\u0440\u0430\u0444\u0430. \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0432\u044f\u0437\u0435\u0439 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e 2 \u0432 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 35 ~ 34 \u0431\u0438\u043b\u043b\u0438\u043e\u043d\u0430 <\/li>\n<li><b>relation identirfier<\/b>, <b>\u0442\u0438\u043f \u0441\u0432\u044f\u0437\u0438<\/b> \u2014 \u0432 Neo4j \u0443 \u0441\u0432\u044f\u0437\u0435\u0439. \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0438\u043f\u043e\u0432 \u0441\u0432\u044f\u0437\u0435\u0439 32767<\/li>\n<li><b>properties<\/b>, <b>\u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u043d\u043e\u0434\u044b<\/b> \u2014 \u043d\u0430\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0438\u0442\u044c \u043d\u043e\u0434\u0435. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0435\u0441\u043b\u0438 \u043d\u043e\u0434\u0430 \u2014 \u044d\u0442\u043e \u0442\u043e\u0432\u0430\u0440, \u0442\u043e \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u043d\u043e\u0434\u044b \u043c\u043e\u0436\u043d\u043e \u0445\u0440\u0430\u043d\u0438\u0442\u044c id \u0442\u043e\u0432\u0430\u0440\u0430 \u0438\u0437 \u0431\u0430\u0437\u044b MySQL<\/li>\n<li><b>node ID<\/b>, <b>ID \u043d\u043e\u0434\u0430<\/b> \u2014 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043d\u043e\u0434\u044b. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u043f\u0440\u0438 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430\u0445 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0438\u043c\u0435\u043d\u043d\u043e \u044d\u0442\u043e\u0442 ID. \u043a\u0430\u043a \u0435\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 Cypher \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445 \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b<\/li>\n<\/ul>\n<h4>\u0421\u0445\u0435\u043c\u0430 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447\u0438<\/h4>\n<p>  \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043d\u043e\u0434\u0443, \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u043d\u043e\u0434\u044b \u0445\u0440\u0430\u043d\u0438\u0442\u044c id \u0442\u043e\u0432\u0430\u0440\u0430 \u0432 \u0431\u0430\u0437\u0435 MySQL. \u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0441\u0432\u043e\u044e \u043d\u043e\u0434\u0443, \u0432 \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430\u0445 \u0445\u0440\u0430\u043d\u0438\u0442\u044c id \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044f. \u0414\u0430\u043b\u044c\u0448\u0435, \u0441\u0432\u044f\u0437\u0430\u0442\u044c \u0432\u0441\u0435 \u043d\u043e\u0434\u044b \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0441 \u043d\u043e\u0434\u0430\u043c\u0438 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0435\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u0434\u043b\u044f \u0442\u043e\u0432\u0430\u0440\u0430. \u041f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a \u0442\u043e\u0432\u0430\u0440\u0430 \u0438\u043b\u0438 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0435\u0432 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0441\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u043d\u043e\u0434\u0430\u043c\u0438.<\/p>\n<h4>\u041f\u0435\u0440\u0432\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u2014 \u0441 Neo4j<\/h4>\n<p>  \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044f, \u0447\u0442\u043e \u044f \u0441 \u0433\u0440\u0430\u0444\u043e\u0432\u044b\u043c\u0438 \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u2014 \u044f \u0440\u0435\u0448\u0438\u043b \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e Neo4j, \u0438\u0437\u0443\u0447\u0438\u0442\u044c \u043d\u0430 \u0431\u0430\u0437\u043e\u0432\u043e\u043c \u0443\u0440\u043e\u0432\u043d\u0435 Cypher \u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u0443\u044e \u043b\u043e\u0433\u0438\u043a\u0443. \u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u2014 \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0434\u043b\u044f \u0431\u0430\u0437\u044b \u0438\u0437 1 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u0430 \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e 500 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a.<\/p>\n<p>  \u0420\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u2014 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c <a href=\"http:\/\/www.neo4j.org\/download\">\u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432<\/a> \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e.<\/p>\n<p>  \u0423 Neo4j \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0435\u0441\u0442\u044c RestAPI, \u0434\u043b\u044f php \u0435\u0441\u0442\u044c \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <a href=\"https:\/\/github.com\/jadell\/neo4jphp\">neo4jphp<\/a>. \u0422\u0430\u043a\u0436\u0435 \u0435\u0441\u0442\u044c bundle \u0434\u043b\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 Symfony2 \u2014 <a href=\"https:\/\/github.com\/klaussilveira\/neo4j-ogm-bundle\">klaussilveira\/neo4j-ogm-bundle<\/a>.<\/p>\n<p>  \u0412 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432 \u0432\u0445\u043e\u0434\u0438\u0442 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043d\u0438\u043c, \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e <a href=\"http:\/\/localhost:7474\/\">http:\/\/localhost:7474\/<\/a><br \/>  \u0415\u0441\u0442\u044c \u0435\u0449\u0435 <a href=\"http:\/\/localhost:7474\/webadmin\/\">\u0441\u0442\u0430\u0440\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0430<\/a>, \u0441 \u0434\u0440\u0443\u0433\u0438\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u043e\u043c.<\/p>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0443\u0434\u043e\u0431\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"http:\/\/docs.neo4j.org\/refcard\/2.0\/\"><b>\u043a\u0440\u0430\u0442\u043a\u0443\u044e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e<\/b><\/a>. <a href=\"https:\/\/github.com\/neo4j-contrib\/graphgist\/wiki\"><b>\u041f\u0440\u0438\u043c\u0435\u0440\u044b \u043a\u043e\u0434\u0430<\/b><\/a> \u0435\u0441\u0442\u044c \u0432 graphgist. \u041f\u043e \u0438\u0434\u0435\u0435, \u043e\u043d\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0442\u0430\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u0441\u044f \u043e\u043d\u043b\u0430\u0439\u043d, \u043d\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u044d\u0442\u043e \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0427\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u0434 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u0438\u0437 <a href=\"https:\/\/github.com\/neo4j-contrib\/graphgist\/wiki\">graphgist<\/a> (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"http:\/\/gist.neo4j.org\/?8167705\">\u0441\u044e\u0434\u0430<\/a>) \u0438 \u0442\u0430\u043c \u043d\u0430\u0436\u0430\u0442\u044c \u043a\u043d\u043e\u043f\u043a\u0443 Page Source.<\/p>\n<p>  \u0414\u043b\u044f \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u043e\u0432 \u0441 Neo4j \u043e\u0447\u0435\u043d\u044c \u0443\u0434\u043e\u0431\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"http:\/\/localhost:7474\/browser\/\">\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432\u0435\u0431 \u043a\u043b\u0438\u0435\u043d\u0442<\/a> \u0422\u0430\u043c \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b Cypher \u0438 \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441\u044b \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u043e \u0441\u0432\u044f\u0437\u044f\u043c\u0438 \u0438 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0430\u043c\u0438 \u043d\u043e\u0434.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/files.zq.com.ua\/habr1.png\" alt=\"\u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 Node4j\"\/><\/p>\n<p>  <b>\u041f\u0440\u043e\u0441\u0442\u044b\u0435 Cypher \u043a\u043e\u043c\u0430\u043d\u0434\u044b<\/b><\/p>\n<p>  <b>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043d\u043e\u0434\u044b \u0441 \u043c\u0435\u0442\u043a\u043e\u0439<\/b>  <\/p>\n<pre><code>create (n:Ware {wareId: 1}); <\/code><\/pre>\n<p>  <b>\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0441\u0435 \u043d\u043e\u0434\u044b<\/b>  <\/p>\n<pre><code>MATCH (n) RETURN n;<\/code><\/pre>\n<p>  <b>\u0421\u0447\u0435\u0442\u0447\u0438\u043a<\/b>  <\/p>\n<pre><code>MATCH (n:Ware {wareId:1}) RETURN &quot;Our graph have &quot;+count(*)+&quot; Nodes with label Ware and wareId=1&quot; as counter;<\/code><\/pre>\n<p>  <b>\u0421\u043e\u0437\u0434\u0430\u0442\u044c 2 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043d\u043e\u0434\u044b<\/b>  <\/p>\n<pre><code>CREATE (n{wareId:1})-[r:SUIT]-&gt;(m{criteriaId:1})<\/code><\/pre>\n<p>  <b>\u0421\u0432\u044f\u0437\u0430\u0442\u044c 2 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u043d\u043e\u0434\u044b<\/b>  <\/p>\n<pre><code>MATCH (a {wareId: 1}),       (b {criteriaId: 2}) MERGE (a)-[r:SUIT]-&gt;(b)<\/code><\/pre>\n<p>  <b>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043d\u043e\u0434\u044b<\/b>  <\/p>\n<pre><code>match (n)-[r]-() DELETE n,r;<\/code><\/pre>\n<p>  <b>\u0423\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u0441\u0435 \u043d\u0435\u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043d\u043e\u0434\u044b<\/b> \u2014 \u0435\u0441\u043b\u0438 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0432 \u0431\u0430\u0437\u0435, \u0433\u0434\u0435 \u0435\u0441\u0442\u044c \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043d\u043e\u0434\u044b \u2014 \u043e\u043d\u0430 \u043d\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u0442. \u041d\u0443\u0436\u043d\u043e \u0443\u0434\u0430\u043b\u0438\u0442\u044c \u0432\u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u0435 \u043d\u043e\u0434\u044b.  <\/p>\n<pre><code>match n DELETE n;<\/code><\/pre>\n<p>  <b>\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u0442\u043e\u0432\u0430\u0440\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0439 3<\/b>  <\/p>\n<pre><code>MATCH (a:Ware)--&gt;(b:Criteria {criteriaId: 3}) RETURN a;<\/code><\/pre>\n<p>  \u0421\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e Cypher \u043a\u043e\u043c\u0430\u043d\u0434 \u0432\u0435\u0431 \u043a\u043b\u0438\u0435\u043d\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043d\u0435 \u0443\u043c\u0435\u0435\u0442. <a href=\"http:\/\/stackoverflow.com\/questions\/20533781\/neo4j-browser-paste-multiple-commands\">\u0422\u0443\u0442<\/a> \u0433\u043e\u0432\u043e\u0440\u044f\u0442, \u0447\u0442\u043e <a href=\"http:\/\/localhost:7474\/webadmin\/#\/console\/\">\u0441\u0442\u0430\u0440\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442<\/a> \u044d\u0442\u043e \u0443\u043c\u0435\u0435\u0442, \u043d\u043e \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u0442\u0430\u043a\u043e\u0439 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443, \u043d\u0443\u0436\u043d\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e 1 \u0441\u0442\u0440\u043e\u043a\u0435.<\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043d\u043e\u0434 \u0441\u043e \u0441\u0432\u044f\u0437\u044f\u043c\u0438 \u043e\u0434\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439, \u043d\u0443\u0436\u043d\u043e \u0434\u0430\u0432\u0430\u0442\u044c \u0440\u0430\u0437\u043d\u044b\u0435 \u0438\u043c\u0435\u043d\u0430 \u043d\u043e\u0434\u0430\u043c, \u0441\u0432\u044f\u0437\u044f\u043c \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043c\u044f  <\/p>\n<pre><code>CREATE (w1:Ware{wareId:1})-[:SUIT]-&gt;(c1:Criteria{criteriaId:1}), (w2:Ware{wareId:2})-[:SUIT]-&gt;(c2:Criteria{criteriaId:2}),  (w3:Ware{wareId:3})-[:SUIT]-&gt;(c3:Criteria{criteriaId:3}), (w4:Ware{wareId:4})-[:SUIT]-&gt;(c1), (w5:Ware{wareId:5})-[:SUIT]-&gt;(c1),  (w4)-[:SUIT]-&gt;(c2), (w5)-[:SUIT]-&gt;(c3); <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0438\u0442\u0441\u044f \u0442\u0430\u043a\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430. \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043c\u0435\u043d\u0435\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u2014 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043c\u044b\u0448\u043a\u043e\u0439 \u043d\u043e\u0434\u044b.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/files.zq.com.ua\/habr5.png\" alt=\"\u0422\u0435\u0441\u0442\u043e\u0432\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\"\/><\/p>\n<h4>\u041f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u044b\u0435 \u0442\u0435\u0441\u0442\u044b \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 Neo4j<\/h4>\n<p>  \u041f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u0438 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u0432\u044b\u0431\u043e\u0440\u043e\u043a \u0438\u0437 \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0431\u0430\u0437\u043e\u0439.<\/p>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u043b\u043e\u043d\u0438\u0440\u0443\u0435\u043c neo4jphp  <\/p>\n<pre><code>git clone https:\/\/github.com\/jadell\/neo4jphp.git<\/code><\/pre>\n<p>  \u0411\u0430\u0437\u043e\u0432\u043e\u0435 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u044d\u0442\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0435\u0441\u0442\u044c \u0432 <a href=\"http:\/\/habrahabr.ru\/post\/152079\/\">\u044d\u0442\u043e\u043c \u043f\u043e\u0441\u0442\u0435<\/a>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0441\u0440\u0430\u0437\u0443 \u0432\u044b\u043b\u043e\u0436\u0443 \u043a\u043e\u0434 \u0434\u043b\u044f \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0431\u0430\u0437\u044b \u0435xamples\/test_fill_1.php  <\/p>\n<pre><code class=\"php\">&lt;?php use Everyman\\Neo4j\\Client, \tEveryman\\Neo4j\\Index\\NodeIndex, \tEveryman\\Neo4j\\Relationship, \tEveryman\\Neo4j\\Node, \tEveryman\\Neo4j\\Cypher;  require_once 'example_bootstrap.php';  $neoClient = new Client(); $neoWares = new NodeIndex($neoClient, 'Ware'); $neoCriterias = new NodeIndex($neoClient, 'Criteria'); $neoWareLabel = $neoClient-&gt;makeLabel('Ware'); $neoCriteriaLabel = $neoClient-&gt;makeLabel('Criteria');  $wareTemplatesCount = 200; $criteriasCount = 500; $waresCount = 10000; $commitWares = 100; $minRelations = 200; $maxRelations = 400;  $time = time(); for($wareTemplateId = 0;$wareTemplateId&lt;$wareTemplatesCount;$wareTemplateId++) { \t$neoClient-&gt;startBatch(); \tprint $wareTemplateId.&quot; (&quot;.$criteriasCount.&quot; criterias, &quot;.$waresCount.&quot; wares with rand(&quot;.$minRelations.&quot;,&quot;.$maxRelations.&quot;) ...&quot;; \t$criterias = array(); \tfor($criteriaId = 1;$criteriaId &lt;=$criteriasCount;$criteriaId++) { \t\t$c = $neoClient-&gt;makeNode()-&gt;setProperty('criteriaId', $wareTemplateId * $criteriasCount + $criteriaId)-&gt;save(); \/\/ -&gt;addLabels(array($neoCriteriaLabel)) - \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 commitBatch \t\t$neoCriterias-&gt;add($c, 'criteriaId', $wareTemplateId * $wareTemplatesCount + $criteriaId); \/\/ -&gt;save() \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u043d\u0435\u0442 \t\t$criterias[] = $c; \t}  \tfor($wareId = 1;$wareId &lt;=$waresCount;$wareId++) { \t\t$w = $neoClient-&gt;makeNode()-&gt;setProperty('wareId', $wareTemplateId * $waresCount + $wareId)-&gt;save(); \/\/ -&gt;addLabels(array($neoWareLabel)) - \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 commitBatch \t\t$neoWares-&gt;add($c, 'wareId', $wareTemplateId * $waresCount + $criteriaId); \t\t \t\tfor($i = 1;$i&lt;=rand($minRelations,$maxRelations);$i++) { \t\t\t$w-&gt;relateTo($criterias[array_rand($criterias)], &quot;SUIT&quot;)-&gt;save(); \t\t} \t\tif(($wareId % $commitWares) == 0) { \t\t\t$neoClient-&gt;commitBatch(); \t\t        print &quot; [commit &quot;.$commitWares.&quot; &quot;.(time() - $time).&quot; sec]&quot;; \t\t\t$time = time(); \t\t\t$neoClient-&gt;startBatch(); \t\t} \t} \t$neoClient-&gt;commitBatch();         print &quot; done in &quot;.(time() - $time).&quot; seconds\\n&quot;; \t$time = time();  } <\/code><\/pre>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u044f \u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043d\u0430 \u043d\u043e\u0447\u044c. \u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0441\u043f\u0443\u0441\u0442\u044f 4 \u0447\u0430\u0441\u0430 \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0441\u0435\u0440\u0432\u0438\u0441 Neo4j \u043d\u0430\u0447\u0430\u043b \u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 100%. \u0423\u0442\u0440\u043e\u043c \u043f\u043e \u0438\u0442\u043e\u0433\u0443 \u0440\u0430\u0431\u043e\u0442\u044b \u0431\u044b\u043b\u043e \u0432\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e 78300 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0438\u0437 8 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0439 \u0442\u043e\u0432\u0430\u0440\u043e\u0432.<br \/>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u2014 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 20 \u0442\u043e\u0432\u0430\u0440\u043e\u0432 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 \u0441 200-400 \u0441\u0432\u044f\u0437\u044f\u043c\u0438. \u041d\u0435 \u043e\u0447\u0435\u043d\u044c \u0432\u044b\u0441\u043e\u043a\u0438\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u2014 Mysql \u0438 Cassandra \u0432\u044b\u0434\u0430\u0432\u0430\u043b\u0438 \u043e\u043a\u043e\u043b\u043e 10-20 \u0442\u044b\u0441\u044f\u0447 \u0432\u0441\u0442\u0430\u0432\u043e\u043a \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0443 (10 \u043f\u043e\u043b\u0435\u0439, 1 primary index, 1 \u0438\u043d\u0434\u0435\u043a\u0441). \u041d\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u0434\u043b\u044f \u043d\u0430\u0441 \u043d\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u0430 \u2014 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0433\u0440\u0430\u0444 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0444\u043e\u043d\u043e\u0432\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u043f\u043e\u0441\u043b\u0435 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0442\u043e\u0432\u0430\u0440\u0430. \u0410 \u0432\u043e\u0442 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u2014 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u0430.<\/p>\n<p>  \u0420\u0430\u0437\u043c\u0435\u0440 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u2014 1781 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442. \u0412 \u043d\u0435\u0439 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f 78300 \u0442\u043e\u0432\u0430\u0440\u043e\u0432, 4000 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0435\u0432, 15660000-31320000 \u0441\u0432\u044f\u0437\u0435\u0439. \u041e\u0431\u0449\u0435\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 (\u043d\u043e\u0434\u043e\u0432 \u0438 \u0441\u0432\u044f\u0437\u0435\u0439) \u043c\u0435\u043d\u0435\u0435 32 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 \u2014 \u0432 \u0441\u0440\u0435\u0434\u043d\u0435\u043c \u043f\u043e 55 \u0431\u0430\u0439\u0442 \u043d\u0430 \u0441\u0443\u0449\u043d\u043e\u0441\u0442\u044c. \u041c\u043d\u043e\u0433\u043e\u0432\u0430\u0442\u043e, \u043a\u0430\u043a \u043f\u043e \u043c\u043d\u0435, \u043d\u043e \u0433\u043b\u0430\u0432\u043d\u043e\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435 \u0432\u0441\u0435 \u0436\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u043e\u043a, \u0430 \u043d\u0435 \u0440\u0430\u0437\u043c\u0435\u0440 \u0431\u0430\u0437\u044b.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u043e\u0432\u0430\u043b\u0438\u043b\u0430\u0441\u044c \u2014 \u0441\u0435\u0440\u0432\u0435\u0440 Neo4j \u043e\u043f\u044f\u0442\u044c \u00ab\u0443\u0448\u0435\u043b\u00bb \u0432 \u0440\u0435\u0436\u0438\u043c 100% \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 \u0438 \u0437\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0438\u043d\u0443\u0442 \u0442\u0430\u043a \u0438 \u043d\u0435 \u0432\u044b\u0434\u0430\u043b \u043e\u0442\u0432\u0435\u0442 \u043d\u0430 \u0437\u0430\u043f\u0440\u043e\u0441.  <\/p>\n<pre><code>MATCH (c {criteriaId: 1})&lt;--(a)--&gt;(b {criteriaId: 3}) RETURN a.wareId;<\/code><\/pre>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u0434\u0430\u043b\u044c\u0448\u0435 \u043d\u0443\u0436\u043d\u043e \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f, \u043a\u0430\u043a \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u0432 Neo4j. \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u044f \u0445\u043e\u0442\u0435\u043b \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u043d\u043e\u0434 \u0432 \u0432\u044b\u0431\u043e\u0440\u043a\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 START  <\/p>\n<pre><code>START n=node:nodeIndexName(key={value}) MATCH (c)&lt;--(a)--&gt;(b) RETURN a.wareId; <\/code><\/pre>\n<p>  \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0443\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u0432 \u0431\u0430\u0437\u0435 \u0431\u044b\u043b\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u044b. \u0412 Neo4j \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043f\u0435\u0440\u0435\u0447\u043d\u044f \u0442\u0435\u043a\u0443\u0449\u0438\u0445 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432, \u043d\u043e \u0432 <a href=\"http:\/\/localhost:7474\/browser\/\">\u0432\u0435\u0431 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 Neo4j<\/a> \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0431\u0440\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443   <\/p>\n<pre><code>:schema<\/code><\/pre>\n<p>  <b>\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441\u044b<\/b> \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439   <\/p>\n<pre><code>CREATE INDEX ON :Criteria(criteriaId)<\/code><\/pre>\n<p>  <b>\u0423\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441<\/b> \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439  <\/p>\n<pre><code>CREATE CONSTRAINT ON (n:Criteria) ASSERT n.criteriaId IS UNIQUE;<\/code><\/pre>\n<p>  \u0418\u043d\u0434\u0435\u043a\u0441\u044b, \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 \u0432\u044b\u0448\u0435, \u043d\u0435\u043b\u044c\u0437\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 START \u0434\u0438\u0440\u0435\u043a\u0442\u0438\u0432\u0435. <a href=\"http:\/\/stackoverflow.com\/questions\/16809862\/neo4j-cypher-unable-to-create-and-use-an-index\">\u0422\u0443\u0442<\/a> \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u044e\u0442, \u0447\u0442\u043e \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432 where  <\/p>\n<blockquote><p>The indexes created via Cypher are called Schema indexes, and are not to be used in the START clause. The START clause index lookups are reserved for the legacy indexes that you create via autoindexing or through the non-Cypher APIs.<\/p>\n<p>  In order to use the :user index you&#8217;ve created, you can do this:<\/p>\n<p>  match n:user<br \/>  where n.name=\u00abaapo\u00bb<br \/>  return n;<\/p><\/blockquote>\n<p>  \u0415\u0441\u043b\u0438 \u044f \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u043f\u043e\u043d\u044f\u043b <a href=\"http:\/\/docs.neo4j.org\/chunked\/milestone\/query-schema-index.html\">\u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044e<\/a>, \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043b\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c WHERE \u0432\u043c\u0435\u0441\u0442\u043e START  <\/p>\n<blockquote><p>START is optional. If you do not specify explicit starting points, Cypher will try and infer starting points from your query. This is done based on node labels and predicates contained in your query. See Chapter 14, Schema for more information. In general, the START clause is only really needed when using legacy indexes.<\/p><\/blockquote>\n<p>  \u0422\u0430\u043a \u0440\u043e\u0434\u0438\u043b\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u0439 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441  <\/p>\n<pre><code>MATCH (a:Ware)--&gt;(c1:Criteria {criteriaId: 3}),(c2:Criteria {criteriaId: 1}),(c3:Criteria {criteriaId: 2}) WHERE (a)--&gt;(c2) AND (a)--&gt;(c3) RETURN a; <\/code><\/pre>\n<p>  \u0412 \u043d\u0430\u0448\u0435\u0439 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u0439 \u0431\u0430\u0437\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0435\u0449\u0435 \u043e\u0434\u043d\u0443 \u0431\u0430\u0437\u0443 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u0434\u0440\u0443\u0433\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u044b\u0435 \u043d\u0430\u0431\u043e\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445 (\u0430\u043d\u0430\u043b\u043e\u0433 \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 MySQL) \u0432 Neo4j \u044f \u043d\u0435 \u043d\u0430\u0448\u0435\u043b. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u044f \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u0435\u043d\u044f\u043b \u043f\u0443\u0442\u044c \u043a \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0443 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430\u0445 Neo4j Community (Database location)<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/files.zq.com.ua\/habr6.png\" alt=\"Use \u0432 Neo4j \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0441\u043c\u0435\u043d\u043e\u0439 \u043f\u0443\u0442\u0438 \u043a \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0443\"\/><\/p>\n<p>  \u0412\u043d\u0438\u043c\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0438 \u043f\u0430\u0440\u0443 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 \u0432 \u043a\u043e\u0434\u0435 test_fill_1.php, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e  <\/p>\n<pre><code>\t\t$c = $neoClient-&gt;makeNode()-&gt;setProperty('criteriaId', $wareTemplateId * $criteriasCount + $criteriaId)-&gt;save(); \/\/ -&gt;addLabels(array($neoCriteriaLabel)) - \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0441 commitBatch \t\t$neoCriterias-&gt;add($c, 'criteriaId', $wareTemplateId * $wareTemplatesCount + $criteriaId); \/\/ -&gt;save() \u0442\u0430\u043a\u043e\u0433\u043e \u043c\u0435\u0442\u043e\u0434\u0430 \u043d\u0435\u0442 <\/code><\/pre>\n<p>  \u0412 batch \u0440\u0435\u0436\u0438\u043c\u0435 \u0432 Neo4jphp \u0443 \u043c\u0435\u043d\u044f \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043c\u0435\u0442\u043a\u0438 \u043a \u043d\u043e\u0434\u0430\u043c, \u0430 \u0438\u043d\u0434\u0435\u043a\u0441\u044b \u043f\u043e\u0447\u0435\u043c\u0443 \u0442\u043e \u043d\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0441\u044c. \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044f, \u0447\u0442\u043e Cypher \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b \u0434\u043b\u044f \u043c\u0435\u043d\u044f \u0431\u044b\u0442\u044c \u043a\u0438\u0442\u0430\u0439\u0441\u043a\u043e\u0439 \u0433\u0440\u0430\u043c\u043e\u0442\u043e\u0439, \u044f \u0440\u0435\u0448\u0438\u043b \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u0431\u0430\u0437\u0443 \u0445\u0430\u0440\u0434\u043a\u043e\u0440\u043d\u043e \u2014 \u043d\u0430 \u0447\u0438\u0441\u0442\u043e\u043c Cypher. \u0422\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f test_fill_2.php  <\/p>\n<pre><code class=\"php\">&lt;?php use Everyman\\Neo4j\\Client, \tEveryman\\Neo4j\\Index\\NodeIndex, \tEveryman\\Neo4j\\Relationship, \tEveryman\\Neo4j\\Node, \tEveryman\\Neo4j\\Cypher;  require_once 'example_bootstrap.php';  $neoClient = new Client();  $wareTemplatesCount = 100; $criteriasCount = 50; $waresCount = 250; $minRelations = 20; $maxRelations = 40;  if($maxRelations &gt; $criteriasCount) {     throw new \\Exception(&quot;maxRelations[&quot;.$maxRelations.&quot;] should be bigger, that criteriasCount[&quot;.$criteriasCount.&quot;]&quot;);  } $query = new Cypher\\Query($neoClient, &quot;CREATE CONSTRAINT ON (n:Criteria) ASSERT n.criteriaId IS UNIQUE;&quot;, array()); $result = $query-&gt;getResultSet(); $query = new Cypher\\Query($neoClient, &quot;CREATE CONSTRAINT ON (n:Ware) ASSERT n.wareId IS UNIQUE;&quot;, array()); $result = $query-&gt;getResultSet();  for($wareTemplateId = 0;$wareTemplateId&lt;$wareTemplatesCount;$wareTemplateId++) {     $time = time(); \t$queryTemplate = &quot;CREATE &quot;; \tprint $wareTemplateId.&quot; (&quot;.$criteriasCount.&quot; criterias, &quot;.$waresCount.&quot; wares with rand(&quot;.$minRelations.&quot;,&quot;.$maxRelations.&quot;) ...&quot;; \t$criterias = array(); \tfor($criteriaId = 1;$criteriaId &lt;=$criteriasCount;$criteriaId++) { \t\t$cId = $criteriaId + $criteriasCount*$wareTemplateId; \t\t$queryTemplate .= &quot;(c&quot;.$cId.&quot;:Criteria{criteriaId:&quot;.$cId.&quot;}), &quot;; \t\t$criterias[] = $cId; \t}  \tfor($wareId = 1;$wareId &lt;=$waresCount;$wareId++) { \t\t$wId = $wareId + $waresCount*$wareTemplateId; \t\t$queryTemplate .= &quot;(w&quot;.$wId.&quot;:Ware{wareId:&quot;.$wId.&quot;}), &quot;;  \t\t$possibleLinks = array_merge(array(), $criterias); \/\/ clone $criterias \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \t\tfor($i = 1;$i&lt;=rand($minRelations,$maxRelations);$i++) { \t\t\t$linkId = $possibleLinks[array_rand($possibleLinks)]; \t\t\tunset($possibleLinks[$linkId]); \t\t\t$queryTemplate .= &quot;w&quot;.$wId.&quot;-[:SUIT]-&gt;c&quot;.$linkId.&quot;, &quot;; \t\t} \t}     $queryTemplate = substr($queryTemplate,0,-2); \/\/ \u0443\u0434\u0430\u043b\u044f\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 &quot;, &quot;      $build = time(); \t$query = new Cypher\\Query($neoClient, $queryTemplate, array()); \/\/ $queryTemplate \u0431\u0443\u0434\u0435\u0442 \u0432 \u0440\u0430\u0439\u043e\u043d\u0435 42 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442 \u0434\u043b\u044f 10000 \u0442\u043e\u0432\u0430\u0440\u043e\u0432, 500 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0435\u0432, 200-400 \u0441\u0432\u044f\u0437\u0435\u0439 \u043c\u0435\u0436\u0434\u0443 \u0442\u043e\u0432\u0430\u0440\u043e\u043c-\u043a\u0440\u0438\u0442\u0435\u0440\u0438\u0435\u043c \t$result = $query-&gt;getResultSet();         print &quot; Query build in &quot;.($build - $time).&quot; seconds, executed in &quot;.(time() - $build).&quot; seconds\\n&quot;; \/\/\tdie(); } <\/code><\/pre>\n<p>  \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u043a\u0430\u0437\u0430\u043b\u0430\u0441\u044c \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0443\u0435\u043c\u043e \u0431\u043e\u043b\u044c\u0448\u0435\u0439, \u0447\u0435\u043c \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0435. <br \/>  \u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c 30000 \u043d\u043e\u0434\u043e\u0432 \u0438 500000 \u2014 1000000 \u0441\u0432\u044f\u0437\u0435\u0439 \u043d\u0430 cypher \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0437\u0430 140 \u0441\u0435\u043a\u0443\u043d\u0434, \u0431\u0430\u0437\u0430 \u0437\u0430\u043d\u044f\u043b\u0430 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 62 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442\u0430. \u041f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0441\u043a\u0440\u0438\u043f\u0442 c $waresCount=1000 (\u043d\u0435 \u0433\u043e\u0432\u043e\u0440\u044f \u0443\u0436\u0435 \u043e 10000 \u0442\u043e\u0432\u0430\u0440\u043e\u0432) \u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u043e\u0448\u0438\u0431\u043a\u0443 \u00abStack overflow error\u00bb. \u042f \u043f\u0435\u0440\u0435\u043f\u0438\u0441\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442 c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c.  <\/p>\n<pre><code>MATCH (a {wareId: 1}),       (b {criteriaId: 2}) MERGE (a)-[r:SUIT]-&gt;(b) <\/code><\/pre>\n<p>  \u042d\u0442\u043e \u043f\u0440\u0438\u0432\u0435\u043b\u043e \u043a \u043a\u0430\u0442\u0430\u0441\u0442\u0440\u043e\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u043c\u0443 \u043f\u0430\u0434\u0435\u043d\u0438\u044e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0440\u0430\u0431\u043e\u0442\u044b, \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043e\u043a\u043e\u043b\u043e \u0447\u0430\u0441\u0430. \u042f \u0440\u0435\u0448\u0438\u043b \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c <b>\u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u043a\u0438 \u043f\u043e \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u043c \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044f\u043c<\/b> \u0438 \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043a \u0432\u043e\u043f\u0440\u043e\u0441\u0443 \u0431\u044b\u0441\u0442\u0440\u043e\u0439 \u0432\u0441\u0442\u0430\u0432\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0437\u0436\u0435.  <\/p>\n<pre><code class=\"php\">&lt;?php use Everyman\\Neo4j\\Client, \tEveryman\\Neo4j\\Index\\NodeIndex, \tEveryman\\Neo4j\\Relationship, \tEveryman\\Neo4j\\Node, \tEveryman\\Neo4j\\Cypher;  require_once 'example_bootstrap.php';  $neoClient = new Client(); $time = microtime(); $query = new Cypher\\Query($neoClient, &quot;MATCH (a:Ware)--&gt;(b:Criteria {criteriaId: 3}),(c:Criteria {criteriaId: 1}),(c2:Criteria {criteriaId: 2}) WHERE (a)--&gt;(c) AND (a)--&gt;(c2) RETURN a;&quot;, array()); $result = $query-&gt;getResultSet(); print &quot;Done in &quot;.(microtime() - $time).&quot; seconds\\n&quot;; <\/code><\/pre>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442 \u0432\u044b\u0448\u0435 \u043e\u0442\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0437\u0430 0.02 \u0441\u0435\u043a\u0443\u043d\u0434\u044b. \u0412 \u0446\u0435\u043b\u043e\u043c \u2014 \u044d\u0442\u043e \u0432\u043f\u043e\u043b\u043d\u0435 \u043f\u0440\u0438\u0435\u043c\u043b\u0435\u043c\u043e, \u043d\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043a\u0430\u043a \u0431\u044b\u0441\u0442\u0440\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0432\u044f\u0437\u0435\u0439 \u043c\u0435\u0436\u0434\u0443 \u043d\u043e\u0434\u0430\u043c\u0438 \u043f\u0440\u0438 \u0430\u043f\u0434\u0435\u0439\u0442\u0435 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u0442\u043e\u0432\u0430\u0440\u0430 \u2014 \u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c. <\/p>\n<h4>\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435<\/h4>\n<p>  \u042f \u0440\u0435\u0448\u0438\u043b \u00ab\u0434\u043b\u044f \u043e\u0447\u0438\u0441\u0442\u043a\u0438 \u0441\u043e\u0432\u0435\u0441\u0442\u0438\u00bb \u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c MySQL \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430. \u0421\u0432\u044f\u0437\u0438 \u043c\u0435\u0436\u0434\u0443 \u043d\u043e\u0434\u0430\u043c\u0438 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u0431\u0435\u0437 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438.<\/p>\n<pre><code class=\"sql\">CREATE TABLE IF NOT EXISTS `edges` (   `criteriaId` int(11) NOT NULL,   `wareId` int(11) NOT NULL,   UNIQUE KEY `criteriaId` (`criteriaId`,`wareId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; <\/code><\/pre>\n<p>  \u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0431\u0430\u0437\u044b \u043d\u0438\u0436\u0435<\/p>\n<pre><code class=\"php\">&lt;?php mysql_connect(&quot;localhost&quot;, &quot;root&quot;, &quot;&quot;); mysql_select_db(&quot;test_nodes&quot;);  $wareTemplatesCount = 100; $criteriasCount = 50; $waresCount = 250; $minRelations = 20; $maxRelations = 40;  $time = time(); for($wareTemplateId = 0;$wareTemplateId&lt;$wareTemplatesCount;$wareTemplateId++) { \t$criterias = array(); \tfor($criteriaId = 1;$criteriaId &lt;=$criteriasCount;$criteriaId++) { \t\t$criterias[] = $wareTemplateId * $criteriasCount + $criteriaId; \t}  \tfor($wareId = 1;$wareId &lt;=$waresCount;$wareId++) {         $edges = array(); \t\t$wId = $wareTemplateId * $waresCount + $wareId;         $links = array_rand($criterias,rand($minRelations,$maxRelations)); \t\tforeach($links as $linkId) { \t\t\t$edges[] = &quot;(&quot;.$criterias[$linkId].&quot;,&quot;.$wareId.&quot;)&quot;; \t\t} \t\tmysql_query(&quot;INSERT INTO edges VALUES &quot;.implode(&quot;,&quot;,$edges)); \t} \tprint &quot;.&quot;; } print &quot; [added &quot;.$wareTemplatesCount.&quot; templates in &quot;.(time() - $time).&quot; sec]&quot;; $time = time();  <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0431\u0430\u0437\u044b \u0437\u0430\u043d\u044f\u043b\u043e 12 \u0441\u0435\u043a\u0443\u043d\u0434. \u0420\u0430\u0437\u043c\u0435\u0440 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u2014 37 \u043c\u0435\u0433\u0430\u0431\u0430\u0439\u0442. \u041f\u043e\u0438\u0441\u043a \u043f\u043e 2 \u043a\u0440\u0438\u0442\u0435\u0440\u0438\u044f\u043c \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 0.0007 \u0441\u0435\u043a\u0443\u043d\u0434<\/p>\n<pre><code class=\"sql\">SELECT e1.wareId FROM  `edges` AS e1 JOIN edges AS e2 ON e1.wareId = e2.wareId WHERE e1.criteriaId =17 AND e2.criteriaId =31 <\/code><\/pre>\n<h4>\u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u0432\u0430\u0440\u0438\u0430\u043d\u0442<\/h4>\n<p>  \u041f\u043e\u0434 mysql \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u043e\u0435 <a href=\"http:\/\/openquery.com.au\/graph\/doc\">\u0433\u0440\u0430\u0444\u043e\u0432\u043e\u0435 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u0430\u043d\u043d\u044b\u0445<\/a> \u2014 \u043d\u043e \u044f \u0435\u0433\u043e \u043d\u0435 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043b. \u0421\u0443\u0434\u044f \u043f\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043e\u043d \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043d\u0435\u0435 Neo4j.<\/p>\n<h4>\u0412\u044b\u0432\u043e\u0434\u044b<\/h4>\n<p>  <b>Neo4j \u2014 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0443\u0442\u0430\u044f \u0448\u0442\u0443\u043a\u0430<\/b>. \u0417\u0430\u043f\u0440\u043e\u0441 \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0435 \u00ab\u0412\u044b\u0431\u0440\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0430\u043a\u0442\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043b\u0430\u0439\u043a\u043d\u0443\u043b\u0438 \u043a\u0438\u043d\u043e\u0430\u043a\u0442\u0435\u0440\u0430\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043d\u044f\u043b\u0438\u0441\u044c \u0432 \u0444\u0438\u043b\u044c\u043c\u0430\u0445, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0437\u0432\u0443\u0447\u0430\u043b\u0438 \u0441\u0430\u0443\u043d\u0442\u0434\u0442\u0440\u0435\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u043c\u0443\u0437\u044b\u043a\u0430\u043d\u0442\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u043c \u044f \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b \u043b\u0430\u0439\u043a\u00bb \u0432 Neo4j \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e. \u0414\u043b\u044f SQL \u044d\u0442\u043e \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u0435\u0435 \u0445\u043b\u043e\u043f\u043e\u0442\u043d\u043e\u0435 \u0437\u0430\u043d\u044f\u0442\u0438\u0435.<\/p>\n<p>  \u0421\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0446\u0435\u043d\u043d\u0443\u044e \u0433\u0440\u0430\u0444\u043e\u0432\u0443\u044e \u0431\u0430\u0437\u0443 \u0441 \u0433\u043e\u043b\u043e\u0439 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u0432 MySQL \u2014 \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e, \u043d\u043e <b>\u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043c\u043e\u0435\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u2014 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Neo4j \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u043b\u044e\u0441\u043e\u0432 \u043d\u0435 \u0434\u0430\u043b\u043e<\/b>. \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\/219441\/\"> http:\/\/habrahabr.ru\/post\/219441\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0412 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430 \u2014 \u0435\u0441\u0442\u044c \u0431\u0430\u0437\u0430 \u0441 \u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u0442\u043e\u0432\u0430\u0440\u043e\u0432, \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0441\u043e\u0442\u0435\u043d \u0442\u044b\u0441\u044f\u0447. \u0423 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0442\u043e\u0432\u0430\u0440\u0430 \u0435\u0441\u0442\u044c \u0441\u043e\u0442\u043d\u0438 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0445 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u0443\u044e \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u0446\u0438\u044e \u043f\u043e \u0442\u043e\u0432\u0430\u0440\u0430\u043c \u043f\u043e \u043d\u0430\u0431\u043e\u0440\u0443 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a. \u0412\u0440\u0435\u043c\u044f \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043e\u0442\u0432\u0435\u0442\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 0.3 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u0443\u044e \u043b\u043e\u0433\u0438\u043a\u0443 \u0432 \u0441\u0442\u0438\u043b\u0435.<\/p>\n<pre><code>(\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u04301 = true AND (\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u04302 &lt; 100)) OR (\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u04301 = false AND (\u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u04303 &gt; 17)) ... \u0434\u0430\u043b\u0435\u0435 \u043e\u0431\u044b\u0447\u043d\u043e \u043c\u0435\u0448\u0430\u043d\u0438\u043d\u0430 \u0438\u0437 AND\\OR<\/code><\/pre>\n<p>  \u0422\u0438\u043f\u0438\u0447\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0433\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 \u2014 <a href=\"http:\/\/hotline.ua\/computer\/myshi-klaviatury\/\">hotline.ua\/computer\/myshi-klaviatury\/<\/a><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/files.zq.com.ua\/habr2.png\" alt=\"\u041f\u0440\u0438\u043c\u0435\u0440 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430\"\/><\/p>\n<p>  \u0423 \u043d\u0430\u0441 \u0432\u0441\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 MySQL + Symfony2\/Doctrine, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043d\u0435\u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u2014 \u043e\u0442\u0432\u0435\u0442\u044b \u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0442\u0441\u044f \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0438 1-10 \u0441\u0435\u043a\u0443\u043d\u0434. \u041c\u043e\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0438 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u044d\u0442\u043e \u0445\u043e\u0437\u044f\u0439\u0441\u0442\u0432\u043e \u2014 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c.  <\/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-219441","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/219441","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=219441"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/219441\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=219441"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=219441"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=219441"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}