{"id":275056,"date":"2016-02-27T00:45:03","date_gmt":"2016-02-26T21:45:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=275056"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=275056","title":{"rendered":"\u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b Handlersocket \u0432 \u0434\u0435\u0442\u0430\u043b\u044f\u0445"},"content":{"rendered":"<p>       \u0412\u0441\u0435\u043c \u0437\u0434\u0440\u0430\u0441\u044c\u0442\u0435. \u0420\u0435\u0448\u0438\u043b \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0440\u0443\u0441\u0441\u043a\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0432\u043e\u0435\u0439 \u0436\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u00abHandlerSocket protocol explained\u00bb, \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/wk-photo.ru\/en\/events\/view\/handlersocket-protocol-explained\/\">http:\/\/wk-photo.ru\/en\/events\/view\/handlersocket-protocol-explained\/<\/a>. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/8f0\/a81\/697\/8f0a8169702a578bad6717d6214c0202.jpg\" alt=\"image\"\/><\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0432\u044b \u0448\u043b\u0438-\u0448\u043b\u0438 \u0438 \u043f\u0440\u0438\u0448\u043b\u0438 \u043a <a href=\"https:\/\/github.com\/DeNA\/HandlerSocket-Plugin-for-MySQL\/\">HandlerSocket<\/a>. \u0427\u0438\u0441\u0442\u044b\u0439 \u043c\u0451\u0434. \u042d\u0442\u043e \u0434\u044c\u044f\u0432\u043e\u043b\u044c\u0441\u043a\u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0432\u0443\u0434\u0443. \u0410 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u043a\u0430\u043a \u0434\u0432\u0435 \u043a\u043e\u043f\u0435\u0439\u043a\u0438. \u041d\u0443 \u0438 \u0435\u0441\u043b\u0438 \u0443\u0436 \u043d\u0430\u0447\u0438\u0441\u0442\u043e\u0442\u0443, \u043a\u043e\u043c\u0443 \u0432\u0430\u0436\u043d\u044b \u0434\u0435\u0442\u0430\u043b\u0438 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430, \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u043e \u0432\u0441\u0435\u043c \u043f\u043e\u0437\u0430\u0431\u043e\u0442\u0438\u0442\u0441\u044f? \u0415\u0441\u043b\u0438, \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0438 \u043d\u0430 \u0447\u0442\u043e, \u0432\u044b \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u0437\u0430 \u043d\u0435\u043e\u043d\u043a\u0430 \u0442\u0430\u043c \u0432\u043d\u0443\u0442\u0440\u0435, \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0433\u0443\u0433\u043b\u0438\u0442\u044c <a href=\"https:\/\/github.com\/DeNA\/HandlerSocket-Plugin-for-MySQL\/blob\/master\/docs-en\/protocol.en.txt\">\u044d\u0442\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443<\/a>. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432 \u2014 \u0438 \u0432\u044b \u044d\u043a\u0441\u043f\u0435\u0440\u0442. \u041d\u0443 \u0438\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0432\u0441\u0435 \u0438 \u0437\u0430 15 \u043c\u0438\u043d\u0443\u0442. \u0422\u043e\u0433\u0434\u0430 \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0440\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442!<\/p>\n<p>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u041f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0432\u044b \u0443\u0436\u0435 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0442\u0434\u0430\u043b\u0435\u043d\u043d\u043e \u0437\u043d\u0430\u043a\u043e\u043c\u044b \u0441 Handlersocket, \u0438\u043c\u0435\u0435\u0442\u0435 \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 MySQL\/MariaDB\/Percona server \u0441 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u043c \u043f\u043b\u0430\u0433\u0438\u043d\u043e\u043c. \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b MariaDB, \u0442\u0430\u043c Handlersocket \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u043d\u0443\u0436\u043d\u043e \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043f\u043b\u0430\u0433\u0438\u043d, \u043f\u0440\u0438\u043f\u0440\u0430\u0432\u0438\u0432 my.cnf <a href=\"https:\/\/mariadb.com\/kb\/en\/mariadb\/handlersocket\/\">\u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u043c \u043a\u043e\u043b-\u0432\u043e\u043c \u0441\u0442\u0440\u043e\u0447\u0435\u043a \u043f\u043e \u0432\u043a\u0443\u0441\u0443<\/a>.<\/p>\n<p>  \u041d\u0430 \u043f\u0440\u0430\u0432\u0430\u0445 \u0440\u0435\u043a\u043b\u0430\u043c\u044b: <a href=\"https:\/\/github.com\/crocodile2u\/zhandlersocket\">https:\/\/github.com\/crocodile2u\/zhandlersocket<\/a> \u2014 \u043c\u043e\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0435 \u0434\u043b\u044f PHP \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 Handlersocket.<\/p>\n<p>  \u041f\u043e\u0435\u0445\u0430\u043b\u0438. \u0417\u0430\u043b\u043e\u0433\u0438\u043d\u044e\u0441\u044c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c MariaDB \u0438 \u0441\u043e\u0437\u0434\u0430\u043c \u0442\u0430\u0431\u043b\u0438\u0446\u0443:<\/p>\n<pre><code class=\"sql\">CREATE TABLE movie (   id int not null auto_increment primary key,    genre varchar(20) not null,    title varchar(100) not null,    view_count int default 0,    key(genre) ) engine innodb;<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0443\u0441\u044c \u043a Handlersocket. \u041f\u043e\u0440\u0442 9999, \u0442\u043e \u0431\u0438\u0448\u044c \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0439 \u043f\u043e\u0440\u0442 \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0438: \u0441 \u0442\u0430\u043a\u0438\u043c \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u043c \u044f \u0441\u043c\u043e\u0433\u0443 \u0438 \u0447\u0438\u0442\u0430\u0442\u044c \u0438 \u043f\u0438\u0441\u0430\u0442\u044c. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043e\u0431\u044b\u0447\u043d\u043e \u0432\u0441\u0435 \u0436\u0435 \u0447\u0438\u0442\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e \u0447\u0430\u0449\u0435, \u0447\u0435\u043c \u043f\u0438\u0441\u0430\u0442\u044c, \u0442\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u0435\u0435 \u0431\u0443\u0434\u0435\u0442 \u0434\u0443\u043c\u0430\u0442\u044c \u0437\u0430\u0440\u0430\u043d\u0435\u0435, \u043a\u0430\u043a\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f \u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438, \u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043d\u043d\u0435\u043a\u0442 \u043a \u043f\u043e\u0440\u0442\u0443 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435 \u0438\u043b\u0438 \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435\/\u0437\u0430\u043f\u0438\u0441\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e. \u0414\u043b\u044f \u0441\u043f\u0440\u0430\u0432\u043a\u0438: \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, Handlersocket \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 16 \u0432\u043e\u0440\u043a\u0435\u0440\u043e\u0432 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u00ab\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435\u00bb \u0438 \u043e\u0434\u0438\u043d \u0432\u043e\u0440\u043a\u0435\u0440 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0439 \u00ab\u043d\u0430 \u0447\u0442\u0435\u043d\u0438\u0435\/\u0437\u0430\u043f\u0438\u0441\u044c\u00bb.<\/p>\n<pre><code class=\"bash\">~\/ telnet localhost 9999 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'.<\/code><\/pre>\n<p>  \u041a\u043b\u0430\u0441\u0441. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u0442\u044c \u0441 \u044d\u0442\u043e\u0439 \u0448\u0442\u0443\u043a\u043e\u0439. \u041f\u0435\u0440\u0432\u043e\u0435, \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0448\u044c Handlersocket \u2014 \u044d\u0442\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441. \u0414\u043b\u044f \u043b\u044e\u0431\u044b\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0435 \u0432 HS, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u0432\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0438\u043d\u0434\u0435\u043a\u0441\u0430. \u041f\u0430\u0430\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f:<\/p>\n<p>  \u0417\u0430\u043f\u0440\u043e\u0441 &quot;<b>open_index<\/b>&quot; \u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441:<\/p>\n<blockquote>\n<pre><code class=\"bash\">P \/indexid\/ \/dbname\/ \/tablename\/ \/indexname\/ \/columns\/ [\/fcolumns\/]<\/code><\/pre>\n<ul>\n<li>\/indexid\/ is a number in decimal.<\/li>\n<li>\/dbname\/, \/tablename\/, and \/indexname\/ are strings. To open the primary key, use PRIMARY as \/indexname\/.<\/li>\n<li>\/columns\/ is a comma-separated list of column names.<\/li>\n<li>\/fcolumns\/ is a comma-separated list of column names. This parameter is optional.<\/li>\n<\/ul>\n<\/blockquote>\n<p>  \u041d\u0443, \u0432\u0441\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u2026 \u041e\u0439, \u0430 <s>\u0447\u044c\u0438 \u044d\u0442\u043e \u0448\u0442\u0430\u043d\u0438\u0448\u043a\u0438 \u0441 \u043c\u043e\u0442\u043e\u0440\u0447\u0438\u043a\u043e\u043c<\/s> \u0447\u0442\u043e \u044d\u0442\u043e \u0437\u0430 \/indexid\/? \u042d\u0442\u043e \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0438\u043d\u0434\u0435\u043a\u0441\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0432\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435. \u041e\u043d \u043d\u0435 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u0442\u0441\u044f Handlersocket&#8217;\u043e\u043c. \u041f\u043e \u0444\u0430\u043a\u0442\u0443, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 HS \u0437\u0430\u043f\u0440\u043e\u0441, \u0441\u043e\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0438\u0437 \u0440\u044f\u0434\u0430 \u0441\u0442\u0440\u043e\u043a, \u043e\u0434\u043d\u043e\u043c\u043e\u043c\u0435\u043d\u0442\u043d\u043e:<\/p>\n<pre><code class=\"bash\">Open index 1 Find row(s) in index 1 Find\/Modify row(s) in index 1 ...<\/code><\/pre>\n<p>  \u042d\u0442\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 ID \u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c, \u0438\u043d\u0430\u0447\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0431\u044b \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0432 HS \u0437\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442 HS \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440, \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u0432 \u0441\u0432\u043e\u0438\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u0445.<\/p>\n<p>  \u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043c \u043d\u0430\u0448\u0438 \u044d\u043a\u0437\u0435\u0440\u0441\u0438\u0441\u044b \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 HS (telnet). \u0417\u0430\u0431\u044b\u043b \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0430\u0441\u0442\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0432 HS \u0440\u0430\u0437\u0434\u0435\u043b\u044f\u044e\u0442\u0441\u044f TAB&#8217;\u0430\u043c\u0438. \u0412 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \/fcolumns\/ \u0434\u043b\u044f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0438\u043d\u0434\u0435\u043a\u0441\u0430. \u041e\u043d \u043d\u0430\u043c \u0435\u0449\u0435 \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f.<\/p>\n<pre><code class=\"bash\">~\/ telnet localhost 9999 ... P   1   test    movie   id,genre,title,view_count   genre 2   1   idxnum<\/code><\/pre>\n<p>  \u0428\u0442\u043e \u0442\u0430\u043a\u043e\u044f? \u0414\u043e\u043a\u0430 \u0443\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442, \u0447\u0442\u043e \u0432 \u043e\u0442\u0432\u0435\u0442 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u00ab0 1\u00bb! A. \u041d\u0443 \u0434\u0430, \u0441\u0430\u043c \u0432\u0438\u043d\u043e\u0432\u0430\u0442, \u0437\u0430\u0431\u044b\u043b \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \/indexname\/.<\/p>\n<pre><code class=\"bash\">P   1   test    movie   PRIMARY id,genre,title,view_count   genre 0   1<\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0440\u044f\u0434\u043e\u043a. \u041c\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0441\u0442\u0443\u0447\u0430\u0442\u044c\u0441\u044f \u043a \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043f\u043e \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u043c\u0443 \u043a\u043b\u044e\u0447\u0443, \u0442\u0430\u043a \u0447\u0442\u043e \/indexname\/ \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 PRIMARY. \u041e\u0442\u043a\u0440\u043e\u0435\u043c \u0435\u0449\u0435 \u043e\u0434\u0438\u043d HS-\u0438\u043d\u0434\u0435\u043a\u0441, \u0434\u043b\u044f MySQL-\u0438\u043d\u0434\u0435\u043a\u0441\u0430 \u043f\u043e \u0438\u043c\u0435\u043d\u0438 genre:<\/p>\n<pre><code class=\"bash\">P   2   test    movie   genre   id,genre,title,view_count 0   1<\/code><\/pre>\n<p>  \u0418\u0448\u044c \u0442\u044b \u043f\u043e\u0434\u0438\u0448\u044c \u0442\u044b. \u0418 \u044d\u0442\u043e\u0442 \u043e\u0442\u043a\u0440\u044b\u043b\u0441\u044f. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0432 \u0442\u0430\u0431\u043b\u0438\u0447\u043a\u0443 \u0441\u0442\u0440\u043e\u043a? \u0427\u0442\u043e \u0442\u0430\u043c \u0443 \u043d\u0430\u0441 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438? <\/p>\n<blockquote><p>The &#8216;insert&#8217; request has the following syntax.<\/p>\n<pre><code class=\"bash\">\/indexid\/ + \/vlen\/ \/v1\/ ... \/vn\/<\/code><\/pre>\n<ul>\n<li>\/vlen\/ indicates the length of the trailing parameters \/v1\/\u2026 \/vn\/. This must be smaller than or equal to the length of \/columns\/ specified by the corresponding &#8216;open_index&#8217; request.<\/li>\n<li>\/v1\/\u2026 \/vn\/ specify the column values to set. For columns not in \/columns\/, the default values for each column are set.<\/li>\n<\/ul>\n<\/blockquote>\n<p>  \u2026 \u0438 \u043c\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442 \u0442\u0438\u043f\u0430 \u0442\u0430\u043a\u043e\u0433\u043e:<\/p>\n<blockquote><p>If &#8216;insert&#8217; is succeeded, HanderSocket returns a line of the following syntax.<\/p>\n<p>  0 1<\/p><\/blockquote>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c\u2026<\/p>\n<pre><code class=\"bash\">1   +   3   0   Sci-Fi  Star wars 0   1   1<\/code><\/pre>\n<p>  \u0423\u043f\u0441. \u041e\u0442\u0432\u0435\u0442 \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043a\u0430\u043a \u0432 \u0434\u043e\u043a\u0435. \u0414\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u0430\u044f \u0435\u0434\u0438\u043d\u0438\u0447\u043a\u0430. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 \u0442\u0430\u0431\u043b\u0438\u0446\u0435\u0439, \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 MariaDB:<\/p>\n<pre><code class=\"sql\">SELECT * FROM movie; +----+--------+-----------+ | id | genre  | title     | +----+--------+-----------+ |  1 | Sci-Fi | Star wars | +----+--------+-----------+<\/code><\/pre>\n<p>  \u0421\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e! \u041d\u0443-\u043a\u0430, \u0434\u0430\u0432\u0430\u0439 \u0435\u0449\u0435\u2026<\/p>\n<pre><code class=\"bash\">1   +   3   0   Comedy  Dumb & Dumber 0   1   2 1   +   3   0   Thriller    The Silence of the Lambs 0   1   3<\/code><\/pre>\n<p>  \u0421\u043d\u043e\u0432\u0430 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432 MariaDB:<\/p>\n<pre><code class=\"sql\">SELECT * FROM movie; +----+----------+--------------------------+ | id | genre    | title                    | +----+----------+--------------------------+ |  1 | Sci-Fi   | Star wars                | |  2 | Comedy   | Dumb & Dumber            | |  3 | Thriller | The Silence of the Lambs | +----+----------+--------------------------+<\/code><\/pre>\n<p>  \u041e\u043f\u0430-\u043d\u0430! \u041d\u0435\u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u0442\u0440\u0435\u0442\u044c\u044f \u0446\u0438\u0444\u0438\u0440\u044c, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 HS, \u0442\u043e\u0447\u043d\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u0435\u0442 \u0441 AUTO_INCREMENT-\u043f\u043e\u043b\u0435\u043c id!<br \/>  \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f id \u0432\u0440\u0443\u0447\u043d\u0443\u044e\u2026<\/p>\n<pre><code class=\"bash\">1   +   3   1   Sci-Fi  Star Trek 1   1   121<\/code><\/pre>\n<p>  \u041e\u041a. \u00ab1\u00bb \u0432 \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438 \u043e\u0442\u0432\u0435\u0442\u0430 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043d\u0430\u043c \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0441\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u043e\u0448\u0438\u0431\u043a\u0430. HS, \u043e\u0434\u043d\u0430\u043a\u043e, \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e\u0441\u043b\u043e\u0432\u0435\u043d. \u0418\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 \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u043b\u0448\u0435\u0431\u043d\u043e\u0435 \u0447\u0438\u0441\u043b\u043e \u00ab121\u00bb, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442\u2026 \u0414\u0430 \u0447\u0435\u0440\u0442 \u0435\u0433\u043e \u0437\u043d\u0430\u0435\u0442, \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043d\u043e \u0434\u0443\u043c\u0430\u044e, \u0447\u0442\u043e \u0442\u0430\u043a\u0438\u043c \u043d\u0435\u0445\u0438\u0442\u0440\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043d\u0430\u043c \u043d\u0430\u043c\u0435\u043a\u0430\u044e\u0442 \u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0443 \u0442\u0438\u043f\u0430 \u00abDUPLICATE KEY\u00bb. \u0415\u0449\u0435 \u0440\u0430\u0437\u043e\u043a\u2026<\/p>\n<pre><code class=\"bash\">1   +   3   4   Sci-Fi  Star Trek 0   1   0<\/code><\/pre>\n<p>  \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0432 MariaDB, \u043d\u0430\u0448\u0430 \u043d\u043e\u0432\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0430 \u0441 ID=4:<\/p>\n<pre><code class=\"sql\">SELECT * FROM movie; +----+----------+--------------------------+ | id | genre    | title                    | +----+----------+--------------------------+ |              ...                         | |  4 | Sci-Fi   | Star Trek                | +----+----------+--------------------------+<\/code><\/pre>\n<p>  \u0412\u043e\u043e\u0442 \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a \u043c\u044b \u0438 \u0432\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u044b \u0447\u0435\u0440\u0435\u0437 HS \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f AUTO_INCREMENT \u043f\u043e\u043b\u044f. \u0414\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u043e\u0431 \u044d\u0442\u043e\u043c \u043c\u043e\u043b\u0447\u0438\u0442. \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443, \u0447\u0442\u043e \u0432 \u0431\u044b\u043b\u044b\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0430 HS \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u043b AUTO_INCREMENT.<\/p>\n<p>  <b>\u0411\u0443\u0434\u044c\u0442\u0435 \u043e\u0441\u0442\u043e\u0440\u043e\u0436\u043d\u044b \u0441 \u043a\u043e\u043b\u043e\u043d\u043a\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043c\u0435\u044e\u0442 \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e<\/b>. \u0422\u0430\u043a\u0438\u043c\u0438 \u043a\u0430\u043a \u00abcreated_at DATETIME DEFAULT CURRENT_TIMESTAMP\u00bb \u0438\u043b\u0438 \u00abupdated_at DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP\u00bb. \u041f\u0440\u0438 \u0438\u043d\u0441\u0435\u0440\u0442\u0430\u0445 \u0438 \u0430\u043f\u0434\u0435\u0439\u0442\u0430\u0445 <b>\u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u0440\u0443\u0447\u043d\u0443\u044e<\/b>! \u0418\u043d\u0430\u0447\u0435, \u0432\u043c\u0435\u0441\u0442\u043e \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0442\u0430\u0439\u043c\u0448\u0442\u0430\u043c\u043f\u0430 \u043f\u0440\u0438 \u0432\u0441\u0442\u0430\u0432\u043a\u0435 \u0432 \u043f\u043e\u043b\u0435 <i>created_at<\/i> \u0432\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435 \u00ab0000-00-00 00:00:00\u00bb. \u0410 \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0443\u043a\u0430\u0436\u0435\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f <i>updated_at<\/i> \u043f\u0440\u0438 \u0430\u043f\u0434\u0435\u0439\u0442\u0435, \u0442\u0430\u043c \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u0436\u043d\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435.<\/p>\n<p>  \u0421 INSERT&#8217;\u0430\u043c\u0438 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438, \u0443\u0444\u0444\u2026 \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0438\u0437 HS. \u0421\u043c\u043e\u0442\u0440\u0438\u043c \u0432 \u043c\u0430\u043d\u2026<\/p>\n<blockquote><p>The &#8216;find&#8217; request has the following syntax.<\/p>\n<p>  \/indexid\/ \/op\/ \/vlen\/ \/v1\/\u2026 \/vn\/ [LIM] [IN] [FILTER &#8230;]<\/p>\n<p>  LIM is a sequence of the following parameters.<\/p>\n<p>  \/limit\/ \/offset\/<\/p>\n<p>  IN is a sequence of the following parameters.<\/p>\n<pre><code class=\"bash\">@ \/icol\/ \/ivlen\/ \/iv1\/ ... \/ivn\/<\/code><\/pre>\n<p>  FILETER is a sequence of the following parameters.<\/p>\n<pre><code class=\"bash\">\/ftyp\/ \/fop\/ \/fcol\/ \/fval\/<\/code><\/pre>\n<ul>\n<li>\/indexid\/ is a number. This number must be an \/indexid\/ specified by a &#8216;open_index&#8217; request executed previously on the same connection.<\/li>\n<li>\/op\/ specifies the comparison operation to use. The current version of HandlerSocket supports &#8216;=&#8217;, &#8216;\/&#8217;, &#8216;\/=&#8217;, &#8216;\/&#8217;, and &#8216;\/=&#8217;.<\/li>\n<li>\/vlen\/ indicates the length of the trailing parameters \/v1\/\u2026 \/vn\/. This must be smaller than or equal to the number of index columns specified by the \/indexname\/ parameter of the corresponding &#8216;open_index&#8217; request.<\/li>\n<li>\/v1\/\u2026 \/vn\/ specify the index column values to fetch.<\/li>\n<li>LIM is optional. \/limit\/ and \/offset\/ are numbers. When omitted, it works as if 1 and 0 are specified. These parameter works like LIMIT of SQL. These values don&#8217;t include the number of records skipped by a filter.<\/li>\n<li>IN is optional. It works like WHERE\u2026 IN syntax of SQL. \/icol\/ must be smaller than the number of index columns specified by the \/indexname\/ parameter of the corresponding &#8216;open_index&#8217; request. If IN is specified in a find request, the \/icol\/-th parameter value of \/v1\/\u2026 \/vn\/ is ignored.<\/li>\n<li>FILTERs are optional. A FILTER specifies a filter. \/ftyp\/ is either &#8216;F&#8217; (filter) or &#8216;W&#8217; (while). \/fop\/ specifies the comparison operation to use. \/fcol\/ must be smaller than the number of columns specified by the \/fcolumns\/ parameter of the corresponding &#8216;open_index&#8217; request. Multiple filters can be specified, and work as the logical AND of them. The difference of &#8216;F&#8217; and &#8216;W&#8217; is that, when a record does not meet the specified condition, &#8216;F&#8217; simply skips the record, and &#8216;W&#8217; stops the loop.<\/li>\n<\/ul>\n<\/blockquote>\n<p>  \u041d\u0443, \u0432\u0441\u0435 \u044f\u0441\u043d\u043e, \u043a\u0430\u043a \u043d\u0430 \u043b\u0430\u0434\u043e\u043d\u0438. \u041f\u043e\u0439\u0434\u0435\u043c \u0434\u0430\u043b\u044c\u0448\u0435.<br \/>  \u041b\u0430\u0434\u043d\u043e, \u043b\u0430\u0434\u043d\u043e, \u0448\u0443\u0447\u0443. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043d\u0430\u0439\u0442\u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u043f\u043e ID. \u0421\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0434\u0435\u0442 \/indexid\/ \u2014 \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e 1 (\u0442\u043e\u0442 \u0438\u043d\u0434\u0435\u043a\u0441, \u0447\u0442\u043e \u043c\u044b \u043e\u0442\u043a\u0440\u044b\u043b\u0438 \u0434\u043b\u044f \u043f\u0435\u0440\u0432\u0438\u0447\u043d\u043e\u0433\u043e \u043a\u043b\u044e\u0447\u0430). \u0417\u0430\u0442\u0435\u043c \/op\/: \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0441 id=1, \u0442\u0430\u043a \u0447\u0442\u043e \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 &quot;=&quot;. \u041f\u043e\u0442\u043e\u043c, \/vlen\/. \u042d\u0442\u043e \u0447\u0438\u0441\u043b\u043e \u043a\u043e\u043b\u043e\u043d\u043e\u043a \u0432 \u0438\u043d\u0434\u0435\u043a\u0441\u0435. \u0418\u043d\u0434\u0435\u043a\u0441 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u0442\u044c \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u043a\u043e\u043b\u043e\u043d\u043e\u043a. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043e\u0434\u043d\u0430\u043a\u043e, \u044d\u0442\u043e 1. \u0417\u0430\u0442\u0435\u043c \u0438\u0434\u0435\u0442 \u0447\u0430\u0441\u0442\u044c \/v1\/\u2026 \/vn\/. \u042d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043a\u043e\u043b\u043e\u043d\u043e\u043a, \u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043e\u0434\u043d\u0430 \u043a\u043e\u043b\u043e\u043d\u043a\u0430 \u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 1:<\/p>\n<pre><code class=\"bash\">1   =   1   1 0   3   1   Sci-Fi  Star wars<\/code><\/pre>\n<p>  \u0423\u0440\u0430, \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e! \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043c\u043e\u0436\u043d\u043e \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a:<\/p>\n<pre><code class=\"bash\">0 - no errors; 3 - number of columns [1  Sci-Fi  Star wars] - the row that we've got from InnoDB.<\/code><\/pre>\n<p>  \u0427\u0442\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0434\u0440\u0443\u0433\u0443\u044e \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u044e (\/op\/)? \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0438 \u0441 id &gt; 1:<\/p>\n<pre><code class=\"bash\">1   &gt;   1   1 0   3   2   Comedy  Dumb & Dumber<\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0442\u0430\u043a? \u0422\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u0430 \u0437\u0430\u043f\u0438\u0441\u044c? \u0423 \u043d\u0430\u0441 \u0436\u0435 \u0431\u044b\u043b\u043e \u0431\u043e\u043b\u044c\u0448\u0435, \u0437\u0443\u0431 \u0434\u0430\u044e! \u041e\u043e\u043a, \u044d\u0442\u043e \u0435\u0441\u0442\u044c \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438: \u00abLIM is optional. \/limit\/ and \/offset\/ are numbers. When omitted, it works as if 1 and 0 are specified\u00bb. \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u044b\u0439 LIMIT, \u0447\u0442\u043e\u0431\u044b \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0432\u0441\u0435 \u0440\u044f\u0434\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442.<\/p>\n<pre><code class=\"bash\">1   &gt;   1   1   10  0 0   3   2   Comedy  Dumb & Dumber   3   Thriller    The Silence of the Lambs    6   Sci-Fi  Star Trek<\/code><\/pre>\n<p>  \u0412\u0441\u0435 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0435:<\/p>\n<pre><code class=\"bash\">0 - no errors; 3 - number of columns [2  Comedy  Dumb & Dumber] - row 1 [3  Thriller    The Silence of the Lambs] - row 2 [6  Sci-Fi  Star Trek] - row 3<\/code><\/pre>\n<p>  \u0412\u0441\u0435 \u044d\u0442\u043e \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c \u0432 \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 (\u043c\u044b \u0437\u043d\u0430\u0435\u043c \u043a\u043e\u043b-\u0432\u043e \u043a\u043e\u043b\u043e\u043d\u043e\u043a, \u0437\u043d\u0430\u0435\u043c \u043f\u043e\u0440\u044f\u0434\u043e\u043a, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u044b \u0438\u0445 \u043f\u0435\u0440\u0435\u0447\u0438\u0441\u043b\u044f\u043b\u0438 \u043f\u0440\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u0430, \u0442\u0430\u043a \u0447\u0442\u043e \u043d\u0435\u0442 \u043f\u0440\u043e\u0431\u043b\u0435\u043c). \u041c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u0432\u044b \u0437\u0430\u0434\u0430\u0435\u0442\u0435 \u0441\u0435\u0431\u0435 \u0432\u043e\u043f\u0440\u043e\u0441: \u0430 \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442, \u0435\u0441\u043b\u0438 \u0432 \u043d\u0430\u0448\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u0443\u0434\u0435\u0442 \u0441\u0438\u043c\u0432\u043e\u043b \u0442\u0430\u0431\u0443\u043b\u044f\u0446\u0438\u0438? \u0412\u0441\u0435 \u0436\u0435 \u043f\u043e\u0441\u044b\u043f\u0435\u0442\u0441\u044f! \u041f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u043e\u0442 0x00 \u0434\u043e 0x0f. \u041a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u0441\u0438\u043c\u0432\u043e\u043b\u044b \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 (\u043a \u043d\u0438\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0435\u0444\u0438\u043a\u0441 0x01 \u0438 \u0441\u0434\u0432\u0438\u0433\u0430\u044e\u0442\u0441\u044f \u043d\u0430 0x40). \u041e\u0431 \u044d\u0442\u043e\u043c \u0434\u043e\u043b\u0436\u043d\u0430 \u043f\u043e\u0437\u0430\u0431\u043e\u0442\u0438\u0442\u044c\u0441\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u0441\u043a\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430. \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b, \u043c\u044b \u0432 \u043d\u0430\u0448\u0438\u0445 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u043c\u0432\u043e\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u041a\u0440\u043e\u043c\u0435 \u044d\u0442\u043e\u0433\u043e, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u0437\u0430\u043f\u0440\u043e\u0441 <b>IN<\/b> \u2014 \u0442\u043e \u0435\u0441\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0440\u0430\u0437\u0443 \u043a\u0443\u0447\u0438 \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u043f\u043e \u0438\u0445 \u043a\u043b\u044e\u0447\u0430\u043c, \u0432 \u043e\u0434\u043d\u043e\u043c \u0437\u0430\u043f\u0440\u043e\u0441\u0435! \u042f \u043f\u0440\u043e\u0432\u0435\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043e\u043f\u044b\u0442\u043e\u0432. \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430, \u044f \u043d\u0435 \u0437\u043d\u0430\u043b, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \/op\/, \/vlen\/ \u0438 \/v1\/\u2026 \/vn\/. \u0412\u0435\u0434\u044c \u043c\u044b \u0436\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0432\u0441\u0435 id, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c, \u0432 \u0447\u0430\u0441\u0442\u0438 <b>IN<\/b>. \u0427\u0442\u043e \u0436, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0442\u0430\u043a \u0436\u0435, \u043a\u0430\u043a \u043c\u044b \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b\u0438 \u0441 \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u043f\u043e\u0438\u0441\u043a\u043e\u043c \u043f\u043e id.<\/p>\n<p>  \u0423\u0441\u043b\u043e\u0432\u0438\u0435 IN \u2014 &quot;@ 0 1 2&quot;, \u0442\u043e \u0435\u0441\u0442\u044c \u043a\u043e\u043b\u043e\u043d\u043a\u0430 \u043d\u043e\u043c\u0435\u0440 0, \u043e\u0434\u043d\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435, \u0438 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u2014 2.<\/p>\n<pre><code class=\"bash\">1   =   1   1   @   0   1   2 2   1   modop<\/code><\/pre>\n<p>  \u00abmodop\u00bb. \u0421\u043f\u0430\u0441\u0438\u0431\u043e, HandlerSocket! \u0422\u0435\u043f\u0435\u0440\u044c-\u0442\u043e \u0432\u0441\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e! \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c\u2026<\/p>\n<pre><code class=\"bash\">1   =   1   0   @   0   1   2 2   1   modop<\/code><\/pre>\n<p>  \u041e\u043f\u044f\u0442\u044c. \u0427\u0435\u0433\u043e \u0436\u0435 \u0442\u044b \u0445\u043e\u0447\u0435\u0448\u044c? \u0410 \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u044f \u0443\u043a\u0430\u0436\u0443 LIMIT?<\/p>\n<pre><code class=\"bash\">1       =   1   0   1   0   @   0   1   2 0   3   2   Comedy  Dumb & Dumber<\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u043e\u043d\u043e \u0447\u0442\u043e! \u041f\u043e\u0445\u043e\u0436\u0435, \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 IN \u043d\u0443\u0436\u043d\u043e \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c LIMIT \u0438 OFFSET. \/op\/, \/vlen\/ \u0438 \/v1\/\u2026 \/vn\/ \u0442\u0430\u043a\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u0445\u043e\u0442\u044f \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0432\u043e\u0434\u0438\u0442 \u0432 \u0437\u0430\u043c\u0435\u0448\u0430\u0442\u0435\u043b\u044c\u0441\u0442\u0432\u043e. \u0412 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043d\u0438\u0436\u0435, \u044f \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u044e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 1 \u0432\u043c\u0435\u0441\u0442\u043e 0 \u0432 \u0441\u0435\u043a\u0446\u0438\u0438 \/vn\/ \u2014 \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0436\u0435 \u043e\u0442\u0432\u0435\u0442! <\/p>\n<pre><code class=\"bash\">1   =   1   1   1   0   @   0   1   2 0   3   2   Comedy  Dumb & Dumber<\/code><\/pre>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u044e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \/op\/:<\/p>\n<pre><code class=\"bash\">1   &gt;   1   1   1   0   @   0   1   2 0   3   3   Thriller    The Silence of the Lambs<\/code><\/pre>\n<p>  \u0410 \u044d\u0442\u043e \u0435\u0449\u0435 \u043e\u0442\u043a\u0443\u0434\u0430? \u041d\u0443 \u043b\u0430\u0434\u043d\u043e, \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0434\u043d\u043e\u0433\u043e id:<\/p>\n<pre><code class=\"bash\">1   &gt;   1   1   1   0   @   0   2   2   3 0   3   3   Thriller    The Silence of the Lambs<\/code><\/pre>\n<p>  \u0427\u0435\u0440\u0442, \u0437\u0430\u0431\u044b\u043b \u043f\u0440\u043e LIMIT. \u0423\u043a\u0430\u0436\u0435\u043c, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e 2 \u0434\u0432\u0435 \u0437\u0430\u043f\u0438\u0441\u0438:<\/p>\n<pre><code class=\"bash\">1   &gt;   1   1   2   0   @   0   2   2   3 0   3   3   Thriller    The Silence of the Lambs    6   Sci-Fi  Star Trek<\/code><\/pre>\n<p>  \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u043d\u0430\u0448\u0438 id \u043f\u0440\u043e\u0438\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c, \u0438 HS \u0432\u044b\u0434\u0430\u0435\u0442 \u0437\u0430\u043f\u0438\u0441\u0438 \u0441 id &gt; 1. \u0412 \u043a\u043e\u043d\u0446\u0435 \u043a\u043e\u043d\u0446\u043e\u0432, \u044f \u0432\u044b\u044f\u0441\u043d\u0438\u043b, \u0447\u0442\u043e \u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 IN \u043c\u043e\u0436\u043d\u043e \u0441\u043c\u0435\u043b\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c &quot;=&quot; \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \/op\/, \u0438 0 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \/v1\/. \u041c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0438 \u0440\u043e\u0432\u043d\u043e \u0432 \u0442\u043e\u043c \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u043a\u0430\u043a \u043c\u044b \u0438\u0445 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \u0432 \u0443\u0441\u043b\u043e\u0432\u0438\u0438 IN. \u041e\u0434\u043d\u0430\u043a\u043e, \u044f \u043d\u0435 \u0437\u043d\u0430\u044e, \u0441\u043e\u0432\u043f\u0430\u0434\u0435\u043d\u0438\u0435 \u044d\u0442\u043e \u0438\u043b\u0438 \u043d\u0435\u0442. \u042f \u0431\u044b \u043d\u0435 \u0441\u0442\u0430\u043b \u043d\u0430 \u044d\u0442\u043e \u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f. <\/p>\n<p>  \u041f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u043c? \u0427\u0442\u043e \u0435\u0441\u043b\u0438 \u0432\u0437\u044f\u0442\u044c \u043d\u0430\u0448 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0438 \u043f\u043e\u043f\u0440\u043e\u0441\u0438\u0442\u044c HS \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0444\u0438\u043b\u044c\u0442\u0440 \u043f\u043e genre = &#8216;Sci-Fi&#8217;? \u041f\u043e\u043c\u043d\u0438\u0442\u0435, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u043b\u0438 \u0438\u043d\u0434\u0435\u043a\u0441, \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u043b\u0438 \/fcolumns\/? \u0412\u043e\u0442 \u0442\u0435\u043f\u0435\u0440\u044c-\u0442\u043e \u043e\u043d\u0438 \u0438 \u043f\u0440\u0438\u0433\u043e\u0434\u044f\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u0434\u043e\u0431\u0430\u0432\u043e\u0447\u043d\u044b\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u044b. \u0415\u0441\u043b\u0438 \u0431\u044b \u043c\u044b \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043b\u0438 \/fcolumns\/, \u043b\u044e\u0431\u043e\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u043c\u0438 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u043b \u0431\u044b \u00ab2 1 filterfld\u00bb.<\/p>\n<pre><code class=\"bash\">1   =   1   0   3   0   @   0   3   2   3   1   F   =   0   Sci-Fi 0   3   1   Sci-Fi  Star wars<\/code><\/pre>\n<p>  \u0421\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e! \u041e\u041a, \u044d\u0442\u043e, \u043f\u043e\u0436\u0430\u043b\u0443\u0439, \u0432\u0441\u0435 \u043d\u0430\u0441\u0447\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0438\u0437 HS. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a UPDATE&#8217;\u0430\u043c. \u0427\u0442\u043e \u043d\u0430\u0441\u0447\u0435\u0442 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438?<\/p>\n<blockquote><p>The &#8216;find_modify&#8217; request has the following syntax.<\/p>\n<pre><code class=\"bash\">\/indexid\/ \/op\/ \/vlen\/ \/v1\/ ... \/vn\/ [LIM] [IN] [FILTER ...] MOD<\/code><\/pre>\n<p>  MOD is a sequence of the following parameters.<\/p>\n<pre><code class=\"bash\">\/mop\/ \/m1\/ ... \/mk\/<\/code><\/pre>\n<ul>\n<li>\/mop\/ is &#8216;U&#8217; (update), &#8216;+&#8217; (increment), &#8216;-&#8216; (decrement), &#8216;D&#8217; (delete), &#8216;U?&#8217;, &#8216;+?&#8217;, &#8216;-?&#8217;, or &#8216;D?&#8217;. If the &#8216;?&#8217; suffix is specified, it returns the contents of the records before modification (as if it&#8217;s a &#8216;find&#8217; request), instead of the number of modified records.<\/li>\n<li>\/m1\/\u2026 \/mk\/ specifies the column values to set. The length of \/m1\/\u2026 \/mk\/ must be smaller than or equal to the length of \/columns\/ specified by the corresponding &#8216;open_index&#8217; request. If \/mop\/ is &#8216;D&#8217;, these parameters are ignored. If \/mop\/ is &#8216;+&#8217; or &#8216;-&#8216;, values must be numeric. If \/mop\/ is &#8216;-&#8216; and it attempts to change a column value from negative to positive or positive to negative, the column value is not modified.<\/li>\n<\/ul>\n<\/blockquote>\n<p>  \u041f\u0435\u0440\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u044c \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0437\u043d\u0430\u043a\u043e\u043c\u043e. \u0412\u0441\u0435 \u044d\u0442\u043e \u043c\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u0438\u0434\u0435\u043b\u0438, \u043a\u043e\u0433\u0434\u0430 \u0440\u0430\u0441\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u043b\u0438 FIND-\u0437\u0430\u043f\u0440\u043e\u0441\u044b, \u0438 \u043f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u044d\u0442\u043e \u0443\u0441\u043b\u043e\u0432\u0438\u044f WHERE \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e UDPATE. \u041e\u0431\u043d\u043e\u0432\u0438\u043c \u0440\u044f\u0434 \u0441 id=1 \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c view_count=100:<\/p>\n<pre><code class=\"bash\">1   =   1   1   U   1   Sci-Fi  Star Wars   100 2   1   modop<\/code><\/pre>\n<p>  modop. \u041a\u0430\u043a \u043f\u0440\u0438\u044f\u0442\u043d\u043e. \u041a\u0430\u043a \u043f\u043e\u043d\u044f\u0442\u043d\u043e! \u0427\u0442\u043e \u0435\u0441\u043b\u0438 \u0443\u043a\u0430\u0437\u0430\u0442\u044c LIMIT?<\/p>\n<pre><code class=\"bash\">1   =   1   1   1   0   U   1   Sci-Fi  Star Wars   100 0   1   1<\/code><\/pre>\n<p>  \u0422\u0430\u0430\u043a. \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432 MariaDB:<\/p>\n<pre><code class=\"sql\">SELECT * FROM movie WHERE id = 1; +----+--------+-----------+------------+ | id | genre  | title     | view_count | +----+--------+-----------+------------+ |  1 | Sci-Fi | Star Wars |        100 | +----+--------+-----------+------------+<\/code><\/pre>\n<p>  \u041f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u043a\u043e\u0435-\u0447\u0442\u043e \u043f\u043e\u0441\u043b\u043e\u0436\u043d\u0435\u0435. \u0423\u0432\u0435\u043b\u0438\u0447\u0438\u0441 \u0441\u0447\u0435\u0442\u0447\u0438\u043a view_count \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043a\u043e\u043c\u0435\u0434\u0438\u0439 \u043d\u0430 10.<\/p>\n<pre><code class=\"bash\">1   \/   1   0   1000    0   F   =   0   Comedy  +   0   0   0   10 0   1   1<\/code><\/pre>\n<p>  \u041f\u043e\u0445\u043e\u0436\u0435, \u043d\u043e\u0440\u043c! \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0432 MariaDB:<\/p>\n<pre><code class=\"sql\">SELECT * FROM movie; +----+----------+--------------------------+------------+ | id | genre    | title                    | view_count | +----+----------+--------------------------+------------+ |  1 | Sci-Fi   | Star Wars                |        100 | |  2 | 0        | 0                        |         10 | |  3 | Thriller | The Silence of the Lambs |          0 | |  6 | Sci-Fi   | Star Trek                |          0 | +----+----------+--------------------------+------------+<\/code><\/pre>\n<p>  \u041d\u0435\u0442, \u043d\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e. \u041f\u043e \u043a\u0440\u0430\u0439\u043d\u0435\u0439 \u043c\u0435\u0440\u0435, \u043d\u0435 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u0445\u043e\u0440\u043e\u0448\u043e. \u0421\u0447\u0435\u0442\u0447\u0438\u043a \u0438 \u043f\u0440\u0430\u0432\u0434\u0430 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u043b\u0441\u044f \u043d\u0430 10, \u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0430\u043f\u0434\u0435\u0439\u0442\u0438\u043b\u0438\u0441\u044c \u0438 \u0432\u0441\u0435 \u0434\u0440\u0443\u0433\u0438\u0435 \u043a\u043e\u043b\u043e\u043d\u043a\u0438. \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 id \u0443 \u043d\u0430\u0441 \u0447\u0438\u0441\u043b\u043e\u0432\u043e\u0439, \u0438 \u043c\u044b \u0441\u043a\u0430\u0437\u0430\u043b\u0438 \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0435\u0433\u043e \u043d\u0430 0, \u043e\u043d \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u043d\u0435\u0442\u0440\u043e\u043d\u0443\u0442\u044b\u043c. \u0412\u0435\u0440\u043d\u0443 \u0432\u0441\u0435 \u043e\u0431\u0440\u0430\u0442\u043d\u043e:<\/p>\n<pre><code class=\"bash\">1   =   1   2   1   0   U   2   Comedy  Dumb & Dumber   10<\/code><\/pre>\n<p>  \u041c\u043e\u0433\u0443 \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u0440\u0430\u0437\u0443, \u0447\u0442\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043a\u043e\u043b\u043e\u043d\u043e\u043a \u00abgenre\u00bb \u0438 \u00abtitle\u00bb \u0432 \u0437\u0430\u043f\u0440\u043e\u0441\u0435 \u043d\u0430 \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442 \u043d\u0435 \u0441\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u041e\u043d\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u00ab0\u00bb, \u0442\u0430\u043a \u0436\u0435 \u043a\u0430\u043a \u043f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u043e \u043f\u0440\u0438 \u043d\u0430\u0448\u0435\u0439 \u043f\u0435\u0440\u0432\u043e\u0439 \u043f\u043e\u043f\u044b\u0442\u043a\u0435. \u0427\u0442\u043e\u0431\u044b \u0438\u043d\u043a\u0440\u0435\u043c\u0435\u043d\u0442 \u0437\u0430\u0440\u0430\u0431\u043e\u0442\u0430\u043b \u043a\u0430\u043a \u043d\u0430\u0434\u043e, \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043b\u043e\u043d\u043a\u0438 \u00abid\u00bb \u0438 \u00abview_count\u00bb:<\/p>\n<pre><code class=\"bash\">P   3   test    movie   PRIMARY id,view_count   genre 0   1 3   \/   1   0   1000    0   F   =   0   Comedy  +   0   10 0   1   1<\/code><\/pre>\n<p>  \u041d\u0443 \u0432\u043e\u0442, \u0434\u0440\u0443\u0433\u043e\u0435 \u0434\u0435\u043b\u043e:<\/p>\n<pre><code class=\"sql\">SELECT * FROM movie; +----+----------+--------------------------+------------+ | id | genre    | title                    | view_count | +----+----------+--------------------------+------------+ |  1 | Sci-Fi   | Star Wars                |        100 | |  2 | Comedy   | Dumb & Dumber            |         30 | |  3 | Thriller | The Silence of the Lambs |          0 | |  6 | Sci-Fi   | Star Trek                |          0 | +----+----------+--------------------------+------------+<\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u0432\u0441\u0435. \u0421\u0447\u0430\u0441\u0442\u043b\u0438\u0432\u043e\u0433\u043e \u0445\u044d\u043d\u0434\u043b\u0435\u0440\u0441\u043e\u043a\u0435\u0442\u0438\u043d\u0433\u0430!               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/278037\/\"> https:\/\/habrahabr.ru\/post\/278037\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0412\u0441\u0435\u043c \u0437\u0434\u0440\u0430\u0441\u044c\u0442\u0435. \u0420\u0435\u0448\u0438\u043b \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u0442\u044c \u0440\u0443\u0441\u0441\u043a\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u0441\u0432\u043e\u0435\u0439 \u0436\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u00abHandlerSocket protocol explained\u00bb, \u043e\u043f\u0443\u0431\u043b\u0438\u043a\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 <a href=\"http:\/\/wk-photo.ru\/en\/events\/view\/handlersocket-protocol-explained\/\">http:\/\/wk-photo.ru\/en\/events\/view\/handlersocket-protocol-explained\/<\/a>. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/8f0\/a81\/697\/8f0a8169702a578bad6717d6214c0202.jpg\" alt=\"image\"\/><\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0432\u044b \u0448\u043b\u0438-\u0448\u043b\u0438 \u0438 \u043f\u0440\u0438\u0448\u043b\u0438 \u043a <a href=\"https:\/\/github.com\/DeNA\/HandlerSocket-Plugin-for-MySQL\/\">HandlerSocket<\/a>. \u0427\u0438\u0441\u0442\u044b\u0439 \u043c\u0451\u0434. \u042d\u0442\u043e \u0434\u044c\u044f\u0432\u043e\u043b\u044c\u0441\u043a\u0438 \u0431\u044b\u0441\u0442\u0440\u044b\u0439 \u0432\u0443\u0434\u0443. \u0410 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0439 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b \u0440\u0435\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439, \u043a\u0430\u043a \u0434\u0432\u0435 \u043a\u043e\u043f\u0435\u0439\u043a\u0438. \u041d\u0443 \u0438 \u0435\u0441\u043b\u0438 \u0443\u0436 \u043d\u0430\u0447\u0438\u0441\u0442\u043e\u0442\u0443, \u043a\u043e\u043c\u0443 \u0432\u0430\u0436\u043d\u044b \u0434\u0435\u0442\u0430\u043b\u0438 \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u0430, \u0435\u0441\u043b\u0438 \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a\u0430\u044f-\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u043e \u0432\u0441\u0435\u043c \u043f\u043e\u0437\u0430\u0431\u043e\u0442\u0438\u0442\u0441\u044f? \u0415\u0441\u043b\u0438, \u043d\u0435\u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0438 \u043d\u0430 \u0447\u0442\u043e, \u0432\u044b \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u0437\u043d\u0430\u0442\u044c, \u0447\u0442\u043e \u0437\u0430 \u043d\u0435\u043e\u043d\u043a\u0430 \u0442\u0430\u043c \u0432\u043d\u0443\u0442\u0440\u0435, \u043c\u043e\u0436\u0435\u0442\u0435 \u043d\u0430\u0433\u0443\u0433\u043b\u0438\u0442\u044c <a href=\"https:\/\/github.com\/DeNA\/HandlerSocket-Plugin-for-MySQL\/blob\/master\/docs-en\/protocol.en.txt\">\u044d\u0442\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443<\/a>. \u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432 \u2014 \u0438 \u0432\u044b \u044d\u043a\u0441\u043f\u0435\u0440\u0442. \u041d\u0443 \u0438\u043b\u0438 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0432\u0441\u0435 \u0438 \u0437\u0430 15 \u043c\u0438\u043d\u0443\u0442. \u0422\u043e\u0433\u0434\u0430 \u0434\u043e\u0431\u0440\u043e \u043f\u043e\u0440\u0436\u0430\u043b\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u043a\u0430\u0442!<\/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-275056","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/275056","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=275056"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/275056\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=275056"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=275056"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=275056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}