{"id":2250,"date":"2016-10-11T06:20:36","date_gmt":"2016-10-11T06:20:36","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=2250"},"modified":"2025-10-09T06:41:31","modified_gmt":"2025-10-09T13:41:31","slug":"1-making-most-of-your-arrays-with-covering-array-indexes-and-more","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/ko\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/","title":{"rendered":"\ubc30\uc5f4 \uc778\ub371\uc2a4 \ucee4\ubc84\ub9c1 \ub4f1\uc73c\ub85c \ubc30\uc5f4\uc744 \ucd5c\ub300\ud55c \ud65c\uc6a9\ud558\uae30..."},"content":{"rendered":"<p>\ub9cc\uc138!! \ubc29\uae08 \ucd9c\uc2dc\ud588\uc2b5\ub2c8\ub2e4. <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/download\/\">\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \uc11c\ubc84 4.5<\/a> \ub294 \uba4b\uc9c4 \uae30\ub2a5\uacfc \uac1c\uc120 \uc0ac\ud56d\uc73c\ub85c \uac00\ub4dd \ucc2c \uac00\ubc29\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774\uc804 \uac8c\uc2dc\ubb3c <a href=\"https:\/\/www.couchbase.com\/blog\/ko\/making-the-most-of-your-arrays-with-array-indexing\/\">\ubc30\uc5f4 \uc778\ub371\uc2f1\uc73c\ub85c \ubc30\uc5f4\uc744 \ucd5c\ub300\ud55c \ud65c\uc6a9\ud558\uae30...<\/a> \uc5d0\uc11c \ubc30\uc5f4 \uc778\ub371\uc2f1 \uae30\ub2a5\uc744 \uc18c\uac1c\ud588\uc2b5\ub2c8\ub2e4. \uc774 \ube14\ub85c\uadf8 \uac8c\uc2dc\ubb3c\uc5d0\ub294 \ubc30\uc5f4 \uc778\ub371\uc2a4, UNNEST, ALL, ANY \ubc0f EVERY \ub4f1\uacfc \uac19\uc740 \ub354 \ub9ce\uc740 \uc5f0\uc0b0\uc790 \uc9c0\uc6d0 \ub4f1\uc5d0 \ub300\ud55c \ub0b4\uc6a9\uc774 \ud3ec\ud568\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4,<\/p>\n<h2>\ubc30\uc5f4 \uc778\ub371\uc2a4 \ucee4\ubc84\ub9c1<\/h2>\n<p><a href=\"https:\/\/developer.couchbase.com\/documentation\/server\/4.5\/indexes\/covering-indexes.html\"><span>\u00a0<\/span>\ucee4\ubc84\ub9c1 \uc778\ub371\uc2a4<\/a> \ub294 N1QL\uc758 \uc131\ub2a5 \uae30\ub2a5\uc73c\ub85c, \ubb38\uc11c\ub97c \uac00\uc838\uc624\uae30 \uc704\ud574 \ub370\uc774\ud130 \uc11c\ube44\uc2a4\ub85c \uc774\ub3d9\ud558\ub294 \uac83\uc744 \ubc29\uc9c0\ud558\uc5ec \ucffc\ub9ac \uc131\ub2a5\uc744 \ud06c\uac8c \ud5a5\uc0c1\uc2dc\ud0b5\ub2c8\ub2e4. \ucee4\ubc84\ub9c1 \uc778\ub371\uc2a4\ub97c \uc0dd\uc131\/\uc0ac\uc6a9\ud558\uae30 \uc704\ud55c \ud2b9\ubcc4\ud55c \uad6c\ubb38\uc740 \uc5c6\uc2b5\ub2c8\ub2e4. \uc774\uac83\uc740 \ucffc\ub9ac\uac00 \uc778\ub371\uc2a4 \uc790\uccb4\uc5d0\uc11c \ud544\uc694\ud55c \ubaa8\ub4e0 \ub370\uc774\ud130\ub97c \ucc3e\uc744 \uc218 \uc788\uc744 \ub54c N1QL\uc5d0\uc11c \ud2b8\ub9ac\uac70\ub418\ub294 \uc790\ub3d9 \ucd5c\uc801\ud654\uc785\ub2c8\ub2e4.  \ub530\ub77c\uc11c \ucee4\ubc84 \uc778\ub371\uc2a4\ub294 \uadf8\ub0e5 \uc77c\ubc18\uc801\uc778 GSI\uc785\ub2c8\ub2e4.<span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\u00a0\ucffc\ub9ac\uc5d0 \ud544\uc694\ud55c \ub370\uc774\ud130\ub97c \ud3ec\ud568\ud558\ub294 \ubaa8\ub4e0 \uc778\ub371\uc2a4 \ud0a4\ub85c \uc0dd\uc131\ub418\ub294 \uc778\ub371\uc2a4\uc785\ub2c8\ub2e4. <\/span><\/p>\n<p><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\uc77c\ubc18\uc801\uc73c\ub85c \ubc30\uc5f4 \uc778\ub371\uc2a4\ub294 \ubc30\uc5f4 \ub0b4\uc758 \ud544\uc218 \uc694\uc18c\/\uc18d\uc131\uc744 \uc778\ub371\uc2a4 \ud0a4\ub85c \uc0ac\uc6a9\ud558\uc5ec \uc0dd\uc131\ub429\ub2c8\ub2e4.<\/span>\u00a0\uadf8\ub9ac\uace0 \ucee4\ubc84\ub9c1 \uc778\ub371\uc2a4\ub294 \ud2b9\ubcc4\ud55c \uc8fc\uc758\uac00 \ud544\uc694\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4. \ud558\uc9c0\ub9cc, <strong>\ub97c \uc0ac\uc6a9\ud558\uc5ec \ucee4\ubc84\ub9c1 \ubc30\uc5f4 \uc778\ub371\uc2a4\ub97c \uc0dd\uc131\ud558\ub824\uba74\u00a0<span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\ubc30\uc5f4 \uc790\uccb4\ub3c4<\/span>\u00a0\ub97c CREATE INDEX \ubb38\uc5d0 \uc81c\uacf5\ub41c \ub2e4\ub978 \uc778\ub371\uc2a4 \ud0a4 \ubaa9\ub85d\uc5d0 \ucd94\uac00\ud569\ub2c8\ub2e4.<\/strong>\u00a0N1QL\uc774 \ucffc\ub9ac\uc5d0\uc11c \uc220\uc5b4\ub97c \uc62c\ubc14\ub974\uac8c \ud3c9\uac00\ud558\ub824\uba74 \ubc30\uc5f4\uc758 \ubaa8\ub4e0 \uc138\ubd80 \uc815\ubcf4\uac00 \ud544\uc694\ud569\ub2c8\ub2e4. \u00a0<span style=\"line-height: 1.6em\">\uc608\ub97c \ub4e4\uc5b4, \ub2e4\uc74c \uba85\ub839\uc740 '<em>schedule[].flight'<\/em> \uce74\uc6b0\uce58\ubca0\uc774\uc2a4\uc758 '<em>travel-sample'<\/em> \ub370\uc774\ud130 \uc138\ud2b8:<\/span><\/p>\n<pre style=\"background-color: #eaeaea\"><code class=\"language-sql\">          CREATE INDEX isched\r\n          ON `travel-sample`(DISTINCT ARRAY i.flight FOR i IN schedule END, schedule)\r\n          WHERE (type = \"route\") AND (array_length(schedule) &lt; 10);<\/code><\/pre>\n<p>\ubc30\uc5f4 \ud544\ub4dc '<em>schedule'<\/em>\u00a0\uc790\uccb4\ub3c4 \ucd94\uac00 \uc778\ub371\uc2a4 \ud0a4\ub85c \uc9c0\uc815\ud574\uc57c \ud569\ub2c8\ub2e4. \uc774\uc640 \ub300\uc870\uc801\uc73c\ub85c \ube44\ucee4\ubc84\ub9c1 \ubc30\uc5f4 \uc778\ub371\uc2a4\ub294 \uc774\ub97c \ud544\uc694\ub85c \ud558\uc9c0 \uc54a\uc73c\uba70 \ub2e4\uc74c\uacfc \uac19\uc774 \uc0dd\uc131\ub429\ub2c8\ub2e4:<\/p>\n<pre style=\"background-color: #eaeaea\"><code class=\"language-sql\">          CREATE INDEX isched\r\n          ON `travel-sample`(DISTINCT ARRAY i.flight FOR i IN schedule END)\r\n          WHERE (type = \"route\") AND (array_length(schedule) &lt; 10);<\/code><\/pre>\n<p>\ub2e4\uc74c SELECT \ubb38\uc740 \ucee4\ubc84\ub9c1 \ubc30\uc5f4 \uc778\ub371\uc2a4\ub97c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc744 \ubcf4\uc5ec\uc90d\ub2c8\ub2e4. \uc774 \ubb38\uc740 \ub2e4\uc74c\uc744 \ucc3e\uc2b5\ub2c8\ub2e4. <em>\"\uc77c\uc8fc\uc77c\uc5d0 \uc815\uae30 \ud56d\uacf5\ud3b8\uc774 10\ud3b8 \ubbf8\ub9cc\uc778 \uc720\ub098\uc774\ud2f0\ub4dc\ud56d\uacf5 \ud56d\uacf5\ud3b8 \ub178\uc120\uc758 \uc2a4\ucf00\uc904\"<\/em>.<\/p>\n<pre style=\"background-color: #eaeaea\"><code class=\"language-sql\">EXPLAIN SELECT schedule FROM `travel-sample` \r\nUSE INDEX(isched_covered)\r\nWHERE ANY i IN schedule SATISFIES i.flight LIKE \"UA%\" END\r\n      AND array_length(schedule) &lt; 10 \r\n      AND type = \"route\";\r\n[\r\n  {\r\n    \"plan\": {\r\n      \"#operator\": \"Sequence\",\r\n      \"~children\": [\r\n        {\r\n          \"#operator\": \"DistinctScan\",\r\n          \"scan\": {\r\n            \"#operator\": \"IndexScan\",\r\n            \"covers\": [\r\n              \"cover ((distinct (array (`i`.`flight`) for `i` in (`travel-sample`.`schedule`) end)))\",\r\n              \"cover ((`travel-sample`.`schedule`))\",\r\n              \"cover ((meta(`travel-sample`).`id`))\"\r\n            ],\r\n            \"filter_covers\": {\r\n              \"cover ((`travel-sample`.`type`))\": \"route\",\r\n              \"cover ((array_length((`travel-sample`.`schedule`)) &lt; 10))\": true\r\n            },\r\n            \"index\": \"isched_covered\",\r\n            \"index_id\": \"547b2c11add40fa6\",\r\n            \"keyspace\": \"travel-sample\",\r\n            \"namespace\": \"default\",\r\n            \"spans\": [\r\n              {\r\n                \"Range\": {\r\n                  \"High\": [\r\n                    \"\"UB\"\"\r\n                  ],\r\n                  \"Inclusion\": 0,\r\n                  \"Low\": [\r\n                    \"\"UA\"\",\r\n                    \"null\"\r\n                  ]\r\n                }\r\n              }\r\n            ],\r\n            \"using\": \"gsi\"\r\n          }\r\n        },\r\n        {\r\n          \"#operator\": \"Parallel\",\r\n          \"~child\": {\r\n            \"#operator\": \"Sequence\",\r\n            \"~children\": [\r\n              {\r\n                \"#operator\": \"Filter\",\r\n                \"condition\": \"((any `i` in cover ((`travel-sample`.`schedule`)) satisfies ((`i`.`flight`) like \"UA%\") end and cover ((array_length((`travel-sample`.`schedule`)) &lt; 10))) and (cover ((`travel-sample`.`type`)) = \"route\"))\"\r\n              },\r\n              {\r\n                \"#operator\": \"InitialProject\",\r\n                \"result_terms\": [\r\n                  {\r\n                    \"expr\": \"cover ((`travel-sample`.`schedule`))\"\r\n                  }\r\n                ]\r\n              },\r\n              {\r\n                \"#operator\": \"FinalProject\"\r\n              }\r\n            ]\r\n          }\r\n        }\r\n      ]\r\n    },\r\n    \"text\": \"SELECT schedule FROM `travel-sample` USE INDEX(isched_covered)nWHERE ANY i IN schedule SATISFIES i.flight LIKE \"UA%\" ENDn      AND array_length(schedule) &lt; 10 n      AND type = \"route\";\"\r\n  }\r\n]<\/code><\/pre>\n<p>SELECT\ub294 \ub2e4\uc74c \ud558\uc704 \uc139\uc158\uc5d0\uc11c \uc124\uba85\ud558\ub294 \uc778\ub371\uc2a4 \uc120\ud0dd \uaddc\uce59\uc744 \ub530\ub985\ub2c8\ub2e4.<\/p>\n<ul>\n<li>where\uc808\uc758 \uc220\uc5b4(<em>array_length(schedule) &lt; 10)\u00a0<\/em>\ubc0f (<em>\uc720\ud615 = \"\uacbd\ub85c\")<\/em> \uc0c9\uc778 \uc815\uc758\uc5d0 \uc788\ub294 \uac83\uacfc \uc77c\uce58\ud569\ub2c8\ub2e4.<\/li>\n<li>\uc778\ub371\uc2a4 \ud0a4\u00a0<em>i.flight<\/em>\u00a0\uadf8\ub9ac\uace0\u00a0<em>\uc77c\uc815<\/em>\u00a0\ub97c \ucc38\uc870\ud560 \ub54c \uc815\ud655\ud55c \ubcc0\uc218 \u00a0<em>'i'<\/em>\u00a0\uc778\ub371\uc2a4 \uc815\uc758\uc5d0 \uc0ac\uc6a9<\/li>\n<li>\ucffc\ub9ac \uacc4\ud68d \uc124\uba85\uc5d0\ub294 \ubc30\uc5f4 \uc778\ub371\uc2a4 ''\uc5d0 \ud3ec\ud568\ub41c \uc18d\uc131\uacfc \ud544\ud130\/\uc220\uc5b4\uac00 \ud45c\uc2dc\ub429\ub2c8\ub2e4.<em>isched_covered'<\/em><\/li>\n<\/ul>\n<h3><strong>\uc131\ub2a5<\/strong><\/h3>\n<p>\ucee4\ubc84\ub4dc \ubc30\uc5f4 \uc778\ub371\uc2a4\ub294 \uc778\ub371\uc2a4\ub97c \ud65c\uc6a9\ud560 \uc218 \uc788\ub294 \ucffc\ub9ac\uc5d0 \ub300\ud574 \ucd5c\uc0c1\uc758 \uc131\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4 <span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\u00a0<\/span>\uc704\uc758 \ucffc\ub9ac\ub294 8ms\uac00 \uac78\ub838\uc2b5\ub2c8\ub2e4. <span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\ub0b4 \ub178\ud2b8\ubd81\uc5d0\uc11c,\u00a0<\/span>\ucee4\ubc84\ub41c \ubc30\uc5f4 \uc778\ub371\uc2a4 '<em>isched_covered<\/em>'. \uadf8\ub7ec\ub098 \uc778\ub371\uc2a4 '<em>def_type<\/em>' \uac80\uc0c9\uc5d0 3\ucd08\uac00 \uac78\ub838\uc2b5\ub2c8\ub2e4. \uc774\ub294 \ubbf8\uce5c <u><strong>375x<\/strong> <strong>\ub354 \ub098\uc740 \uc131\ub2a5<\/strong><\/u> \ub97c \uc785\ub825\ud569\ub2c8\ub2e4.<\/p>\n<h2 style=\"margin-top: 0.7em;color: #333333;text-align: left\">\uc778\ub371\uc2a4 \uc120\ud0dd \uaddc\uce59<\/h2>\n<p style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\uc0ac\uc6a9\ub41c \uc5f0\uc0b0\uc790\uc5d0 \uad00\uacc4\uc5c6\uc774 DML\uc740 \ubc30\uc5f4 \uc778\ub371\uc2a4\ub97c \uc0ac\uc6a9\ud558\uae30 \uc704\ud574 \uc778\ub371\uc2a4 \uc120\ud0dd \uc694\uad6c \uc0ac\ud56d\uc744 \ub530\ub77c\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<ol style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\n<li>\uadf8\ub9ac\uace0<em>\u00a0WHERE-\uc808<\/em>\u00a0\ub97c SELECT \ub610\ub294 \uae30\ud0c0 DML \ubb38\uc5d0 \uc0ac\uc6a9\ud574\uc57c \ud558\uba70, CREATE INDEX \uc815\uc758\uc5d0 \uc77c\uce58\ud558\ub294 \uc778\ub371\uc2a4 \ud0a4\uac00 \uc9c0\uc815\ub418\uc5b4 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4.<\/li>\n<li>\ubd80\ubd84 \uc778\ub371\uc2a4\uc758 \uacbd\uc6b0, \uc778\ub371\uc2a4 \uc0dd\uc131 \uc815\uc758\uc5d0 \uc0ac\uc6a9\ub41c \uc220\uc5b4\ub294 \ubc18\ub4dc\uc2dc\u00a0<em>WHERE-\uc808<\/em>\u00a0\ub97c \uc785\ub825\ud569\ub2c8\ub2e4.<\/li>\n<li>\ubcc0\uc218 \uc774\ub984\uc758\u00a0<em>WHERE-\uc808<\/em>\u00a0\ub294 CREATE INDEX \uc815\uc758\uc5d0 \uc0ac\uc6a9\ub41c \ud574\ub2f9 \ubcc0\uc218 \uc774\ub984\uacfc \uc815\ud655\ud788 \uc77c\uce58\ud574\uc57c \ud569\ub2c8\ub2e4.<\/li>\n<\/ol>\n<p style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\uc5ec\ub7ec \uac1c\uc758 \uc77c\uce58\ud558\ub294 \uc778\ub371\uc2a4\ub97c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 \uacbd\uc6b0, N1QL\uc740 \ucffc\ub9ac\ub97c \uc2e4\ud589\ud558\uae30 \uc704\ud574 \uc77c\uce58\ud558\ub294 \uc778\ub371\uc2a4 \uc911 \ud558\ub098\ub97c \uc120\ud0dd\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ucffc\ub9ac\uc5d0\uc11c \ud2b9\uc815 \uc778\ub371\uc2a4\ub97c \ud65c\uc6a9\ud558\uae30\ub97c \uc6d0\ud558\ub294 \uacbd\uc6b0 DML\uc5d0 USE INDEX \uc808\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc778\ub371\uc2a4\ub97c '\uc81c\uc548'\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<h2><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\ub354 \ub9ce\uc740 N1QL \uc6b4\uc601\uc790 \uc9c0\uc6d0<\/span><\/h2>\n<p>\uc6b4\uc601\uc790\ub97c \uc704\ud55c \uc9c0\uc6d0\uc774 \ucd94\uac00\ub41c Couchbase 4.5 <strong>UNNEST<\/strong>\u00a0\uadf8\ub9ac\uace0 <strong>\ub204\uad6c\uc5d0\uac8c\ub098<\/strong> \ub97c \uc0ac\uc6a9\ud558\uc5ec \ubc30\uc5f4 \uc778\ub371\uc2a4\ub85c \uc791\uc5c5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.  \uc774\ub7ec\ud55c \uc5f0\uc0b0\uc790\ub294 \ucee4\ubc84\ub41c \ubc30\uc5f4 \uc778\ub371\uc2a4\uc640 \ucee4\ubc84\ub418\uc9c0 \uc54a\uc740 \ubc30\uc5f4 \uc778\ub371\uc2a4\uac00 \ubaa8\ub450 \ud3ec\ud568\ub41c \ucffc\ub9ac\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \ucc38\uace0\ud558\uc138\uc694:<\/p>\n<ul>\n<li><strong>ANY<\/strong> \uc5f0\uc0b0\uc790\ub294 \uc774\ubbf8 \uc9c0\uc6d0\ub429\ub2c8\ub2e4.<span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\ub97c \uac1c\ubc1c\uc790 \ud504\ub9ac\ubdf0 \ub9b4\ub9ac\uc2a4\uc5d0 \ucd94\uac00\ud569\ub2c8\ub2e4. \uc704\uc758 \uc608\ub97c \ucc38\uc870\ud558\uc138\uc694.<\/span><\/li>\n<li><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\"><strong>\ubaa8\ub4e0<\/strong> \uc5f0\uc0b0\uc790\ub294 Couchbase 4.5\uc5d0\uc11c \uc9c0\uc6d0\ub418\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4.  \uadf8\ub7ec\ub098 ANY AND EVERY \uc5f0\uc0b0\uc790\ub294 \uc9c0\uc6d0\ub429\ub2c8\ub2e4.  \uba85\ud655\ud558\uac8c \uc124\uba85\ud558\uc790\uba74, EVERY \uc5f0\uc0b0\uc790\ub294 \uc694\uc18c\uac00 0\uc778 \ubc30\uc5f4\uc5d0 \ub300\ud574 \ucc38\uc73c\ub85c \ud3c9\uac00\ub418\ub294 \ubc18\uba74, ANY AND EVERY \uc5f0\uc0b0\uc790\ub294 \ubc30\uc5f4\uc5d0 \uc77c\uce58\ud558\ub294 \uc694\uc18c\uac00 \ud558\ub098 \uc774\uc0c1 \uc788\ub294 \uacbd\uc6b0 \ucc38\uc73c\ub85c \ud3c9\uac00\ub429\ub2c8\ub2e4.<\/span><\/li>\n<\/ul>\n<h2>\ubc30\uc5f4 \uc778\ub371\uc2a4\uc640 \ud568\uaed8 UNNEST \uc0ac\uc6a9<\/h2>\n<p><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\ubc30\uc5f4 \uc778\ub371\uc2f1\uc740\u00a0<\/span><a href=\"https:\/\/developer.couchbase.com\/documentation\/server\/current\/n1ql\/n1ql-language-reference\/from.html\">UNNEST<\/a> \uc5f0\uc0b0\uc790\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc778\ub371\uc2a4\uac00 \uc0dd\uc131\ub418\ub294 \ubc30\uc5f4 \uc18d\uc131\uc744 \ud3c9\ud0c4\ud654\ud558\uc5ec \ucffc\ub9ac\uc758 \uc77c\ubd80\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. UNNEST \ubb38\uc740 \uc815\ud655\ud788 \ub3d9\uc77c\ud55c \ubcc0\uc218 \uc774\ub984(\uc608: '<em>i\u00a0<\/em>'), \uc774 \uc608\uc5d0\uc11c\ub294 CREATE INDEX \ubb38\uc5d0 \uc0ac\uc6a9\ub429\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ub2e4\uc74c \ucffc\ub9ac\ub294 <em>&#8220;<\/em><em style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\uc77c\uc8fc\uc77c\uc5d0 \uc815\uae30 \ud56d\uacf5\ud3b8\uc774 10\ud3b8 \ubbf8\ub9cc\uc778 \uc720\ub098\uc774\ud2f0\ub4dc\ud56d\uacf5 \ud56d\uacf5\ud3b8 \ub178\uc120\uc758 \uc138\ubd80 \uc815\ubcf4<\/em><em>&#8220;<\/em>.<\/p>\n<pre style=\"background-color: #eaeaea\"><code class=\"language-sql\">EXPLAIN SELECT i FROM `travel-sample` t \r\nUSE INDEX (isched_covered) \r\nUNNEST t.schedule AS i \r\nWHERE (i.flight LIKE \"UA%\") AND (array_length(t.schedule) &lt; 10) AND (t.type = \"route\");\r\n[\r\n  {\r\n    \"plan\": {\r\n      \"#operator\": \"Sequence\",\r\n      \"~children\": [\r\n        {\r\n          \"#operator\": \"DistinctScan\",\r\n          \"scan\": {\r\n            \"#operator\": \"IndexScan\",\r\n            \"covers\": [\r\n              \"cover ((distinct (array (`i`.`flight`) for `i` in (`t`.`schedule`) end)))\",\r\n              \"cover ((`t`.`schedule`))\",\r\n              \"cover ((meta(`t`).`id`))\"\r\n            ],\r\n            \"filter_covers\": {\r\n              \"cover ((`t`.`type`))\": \"route\",\r\n              \"cover ((array_length((`t`.`schedule`)) &lt; 10))\": true\r\n            },\r\n            \"index\": \"isched_covered\",\r\n            \"index_id\": \"547b2c11add40fa6\",\r\n            \"keyspace\": \"travel-sample\",\r\n            \"namespace\": \"default\",\r\n            \"spans\": [\r\n              {\r\n                \"Range\": {\r\n                  \"High\": [\r\n                    \"\"UB\"\"\r\n                  ],\r\n                  \"Inclusion\": 1,\r\n                  \"Low\": [\r\n                    \"\"UA\"\"\r\n                  ]\r\n                }\r\n              }\r\n            ],\r\n            \"using\": \"gsi\"\r\n          }\r\n        },\r\n        {\r\n          \"#operator\": \"Parallel\",\r\n          \"~child\": {\r\n            \"#operator\": \"Sequence\",\r\n            \"~children\": [\r\n              {\r\n                \"#operator\": \"Unnest\",\r\n                \"as\": \"i\",\r\n                \"expr\": \"cover ((`t`.`schedule`))\"\r\n              },\r\n              {\r\n                \"#operator\": \"Filter\",\r\n                \"condition\": \"((((`i`.`flight`) like \"UA%\") and cover ((array_length((`t`.`schedule`)) &lt; 10))) and (cover ((`t`.`type`)) = \"route\"))\"\r\n              },\r\n              {\r\n                \"#operator\": \"InitialProject\",\r\n                \"result_terms\": [\r\n                  {\r\n                    \"expr\": \"`i`\"\r\n                  }\r\n                ]\r\n              },\r\n              {\r\n                \"#operator\": \"FinalProject\"\r\n              }\r\n            ]\r\n          }\r\n        }\r\n      ]\r\n    },\r\n    \"text\": \"SELECT i FROM `travel-sample` t nUSE INDEX (isched_covered) nUNNEST t.schedule AS i nWHERE (i.flight LIKE \"UA%\") AND (array_length(t.schedule) &lt; 10) AND (t.type = \"route\");\"\r\n  }\r\n]<\/code><\/pre>\n<p><strong style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\uc131\ub2a5<\/strong><\/p>\n<p><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\uc801\uc6a9 \ub300\uc0c1\u00a0<\/span><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\ubc30\uc5f4 \uc778\ub371\uc2a4\ub294 \uc778\ub371\uc2a4\ub97c \ud65c\uc6a9\ud560 \uc218 \uc788\ub294 \ucffc\ub9ac\uc5d0 \ub300\ud574 \ucd5c\uc0c1\uc758 \uc131\ub2a5\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4\u00a0<\/span><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\u00a0<\/span><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\uc704\uc758 \ucffc\ub9ac\uc5d0\ub294 8<\/span><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">ms\u00a0<\/span><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\ub0b4 \ub178\ud2b8\ubd81\uc5d0\uc11c,\u00a0<\/span><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\ucee4\ubc84\ub97c \uc0ac\uc6a9\ud560 \ub54c<\/span><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\u00a0\ubc30\uc5f4 \uc778\ub371\uc2a4 '<\/span><em style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">isched_covered<\/em><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">&#8216;<\/span><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">. \uadf8\ub7ec\ub098 \uc778\ub371\uc2a4 '<\/span><em style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">def_type<\/em><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">' 28\uac1c \uc18c\uc694<\/span><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\ucd08. \uadf8\uac74 \ub9d0\ub3c4 \uc548 \ub418\ub294\u00a0<u><strong>3500\ubc30 \ud5a5\uc0c1\ub41c \uc131\ub2a5<\/strong><\/u> \ub97c \uc785\ub825\ud569\ub2c8\ub2e4.<\/span><\/p>\n<h2>\ubc30\uc5f4 \uc778\ub371\uc2a4\uc5d0 \ubaa8\ub4e0 \ud56d\ubaa9 \uc0ac\uc6a9<\/h2>\n<p><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\ubc30\uc5f4 \uc778\ub371\uc2f1 \uc9c0\uc6d0\u00a0<a href=\"https:\/\/developer.couchbase.com\/documentation\/server\/current\/n1ql\/n1ql-language-reference\/collectionops.html\">\ub204\uad6c\uc5d0\uac8c\ub098<\/a> \uc5f0\uc0b0\uc790\ub97c \uc0ac\uc6a9\ud569\ub2c8\ub2e4. \uc774 \uc5f0\uc0b0\uc790\ub294 \ubc30\uc5f4 \uc778\ub371\uc2a4\uac00 \uc0dd\uc131\ub41c \ubc30\uc5f4 \uc694\uc18c\uc758 \ub110\uc774 \uc544\ub2cc \uc9d1\ud569\uc5d0\uc11c \ubd80\uc6b8 \uc77c\uce58 \ud56d\ubaa9\uc744 \ucc3e\ub294 \ub370 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \ub2e4\uc74c \ucffc\ub9ac\ub294 \ub2e4\uc74c\uc744 \ucc3e\uc2b5\ub2c8\ub2e4.\u00a0<em>\u00a0\"the <\/em><\/span><em style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\">\uc77c\uc815<\/em><span style=\"color: #333333;line-height: 20.799999237060547px;text-align: left\"><em>\u00a0\uc77c\uc8fc\uc77c \ub3d9\uc548 \uc720\ub098\uc774\ud2f0\ub4dc \ud56d\uacf5\uc758 \ubaa8\ub4e0 \ud56d\uacf5\ud3b8\uc774 \ucd5c\uc18c 1\ud3b8 \uc774\uc0c1 10\ud3b8 \ubbf8\ub9cc\uc778 \ub178\uc120\uc758 \ube44\uc728\"<\/em>.<\/span><\/p>\n<pre style=\"background-color: #eaeaea\"><code class=\"language-sql\">SELECT schedule FROM `travel-sample`\r\nUSE INDEX (isched_covered)\r\nWHERE ANY AND EVERY i IN schedule SATISFIES i.flight LIKE 'UA%' END\r\nAND array_length(schedule) &lt; 10\r\nAND type = \"route\";<\/code><\/pre>\n<h2 dir=\"ltr\" style=\"line-height: 1.44;margin-top: 12pt;margin-bottom: 5pt\"><span style=\"font-size: 22.666666666666664px;font-family: Arial;color: #333333;vertical-align: baseline\">\ubc30\uc5f4 \uc778\ub371\uc2a4\uc640 \ud568\uaed8 ALL \uc0ac\uc6a9<\/span><\/h2>\n<p dir=\"ltr\" style=\"line-height: 1.8719999313354492;margin-top: 0pt;margin-bottom: 3pt\"><span style=\"color: #333333;font-family: Arial;line-height: 24px;text-align: left\">Couchbase 4.5\uc5d0\uc11c<\/span>\ub97c \uc0ac\uc6a9\ud558\uc5ec \ubc30\uc5f4 \uc778\ub371\uc2a4\ub97c \ub9cc\ub4e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\u00a0<span style=\"color: #333333;font-family: Arial;line-height: 24px;text-align: left\">\ubc30\uc5f4\uc744 \uad6c\ubd84\ud558\ub294 \ud0a4\uc6cc\ub4dc\ub9cc \uc0ac\uc6a9\ud558\uc5ec \uc778\ub371\uc2a4\ub97c \uc0dd\uc131\ud569\ub2c8\ub2e4.<\/span>\u00a0<span style=\"font-size: 13.333333333333332px;font-family: Arial;color: #333333;font-weight: 400;vertical-align: baseline\">\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 4.5 \ub9b4\ub9ac\uc2a4\uc5d0\uc11c\ub294 \ubc30\uc5f4 \uc694\uc18c\uc758 \ubaa8\ub4e0 \uac12\uc73c\ub85c \ubc30\uc5f4 \uc778\ub371\uc2a4\ub97c \uc0dd\uc131\ud558\ub294 ALL \ud0a4\uc6cc\ub4dc\uc5d0 \ub300\ud55c \uc9c0\uc6d0\uc774 \ucd94\uac00\ub418\uc5c8\uc2b5\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4 <\/span><\/p>\n<pre style=\"background-color: #eaeaea\"><code class=\"language-sql\">         CREATE INDEX isched_all\r\n         ON `travel-sample`(ALL ARRAY i.flight FOR i IN schedule END)\r\n         WHERE (type = \"route\") AND (array_length(schedule) &lt; 10);<\/code><\/pre>\n<p dir=\"ltr\" style=\"margin-top: 0pt;margin-bottom: 0pt\"><span style=\"background-color: transparent;vertical-align: baseline\">\ubc30\uc5f4 \uc778\ub371\uc2f1\uc5d0 \ub300\ud574 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uace0 \ubcf5\ud569 \ubc0f \uc911\ucca9 \ubc30\uc5f4 \uc778\ub371\uc2a4\uc640 \uac19\uc740 \ub354 \ub9ce\uc740 \uc608\uc81c\ub97c \ubcf4\ub824\uba74 Couchbase 4.5\uc5d0\uc11c \ud655\uc778\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. <a href=\"https:\/\/developer.couchbase.com\/documentation\/server\/4.5\/n1ql\/n1ql-language-reference\/indexing-arrays.html\">\ubb38\uc11c<\/a>\ub97c \ud074\ub9ad\ud558\uace0<\/span> <a style=\"text-decoration: none\" href=\"https:\/\/www.youtube.com\/v\/FuCaLGT_q1g?start=36&amp;end=216\"><span style=\"color: #0000ff;background-color: transparent;text-decoration: underline;vertical-align: baseline\">\ub370\ubaa8.<\/span><\/a><\/p>\n<p dir=\"ltr\" style=\"margin-top: 0pt;margin-bottom: 0pt\">\ud55c\ubc88 \uc0ac\uc6a9\ud574 \ubcf4\uc2dc\uace0 \uc9c8\ubb38\/\uc758\uacac\uc774 \uc788\uc73c\uc2dc\uac70\ub098 \uc5bc\ub9c8\ub098 \uba4b\uc9c4\uc9c0 \uc54c\ub824\uc8fc\uc138\uc694 ;-)<\/p>\n<p>\uac74\ubc30!!<\/p>","protected":false},"excerpt":{"rendered":"<p>Hurrah!! We just released Couchbase Server 4.5 which brings a bag full of wonderful features and enhancements. My earlier post Making the most of your arrays&#8230; with Array Indexing introduced the\u00a0Array Indexing functionality. This blog post includes covering array indexes, [&hellip;]<\/p>","protected":false},"author":70,"featured_media":13873,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1812],"tags":[2012],"ppma_author":[8935],"class_list":["post-2250","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-n1ql-query","tag-array-indexing"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.2 (Yoast SEO v26.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Composite and nested array indexes in the Couchbase 4.5<\/title>\n<meta name=\"description\" content=\"Learn how to create Covering Array Indexes, the array itself MUST also be added to the list of other index keys provided to the CREATE INDEX statement.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/ko\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Making most of your Arrays.. with Covering Array Indexes and more..\" \/>\n<meta property=\"og:description\" content=\"Learn how to create Covering Array Indexes, the array itself MUST also be added to the list of other index keys provided to the CREATE INDEX statement.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/ko\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-11T06:20:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-09T13:41:31+00:00\" \/>\n<meta name=\"author\" content=\"Prasad Varakur, Principal Product Manager, Couchbase\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prasad Varakur, Principal Product Manager, Couchbase\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/\"},\"author\":{\"name\":\"Prasad Varakur, Principal Product Manager, Couchbase\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/c649b2296584f6b734c5a21681137e46\"},\"headline\":\"Making most of your Arrays.. with Covering Array Indexes and more..\",\"datePublished\":\"2016-10-11T06:20:36+00:00\",\"dateModified\":\"2025-10-09T13:41:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/\"},\"wordCount\":907,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"keywords\":[\"Array Indexing\"],\"articleSection\":[\"SQL++ \/ N1QL Query\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/\",\"name\":\"Composite and nested array indexes in the Couchbase 4.5\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"datePublished\":\"2016-10-11T06:20:36+00:00\",\"dateModified\":\"2025-10-09T13:41:31+00:00\",\"description\":\"Learn how to create Covering Array Indexes, the array itself MUST also be added to the list of other index keys provided to the CREATE INDEX statement.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png\",\"width\":1800,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Making most of your Arrays.. with Covering Array Indexes and more..\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/c649b2296584f6b734c5a21681137e46\",\"name\":\"Prasad Varakur, Principal Product Manager, Couchbase\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/5d664f4b9aadb80e438fd06cce0d151e\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3dd2299380c7af4e8a9732a0465d1c082c95eaff26cdf4abf54816d9b693043a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3dd2299380c7af4e8a9732a0465d1c082c95eaff26cdf4abf54816d9b693043a?s=96&d=mm&r=g\",\"caption\":\"Prasad Varakur, Principal Product Manager, Couchbase\"},\"description\":\"Prasad Varakur is a Principal Product Manager, Couchbase. Prasad is Product and Engineering leader in Databases(SQL, noSQL, Bigdata) &amp; Distributed systems.\",\"url\":\"https:\/\/www.couchbase.com\/blog\/ko\/author\/prasad-varakur\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Composite and nested array indexes in the Couchbase 4.5","description":"\ucee4\ubc84\ub9c1 \ubc30\uc5f4 \uc778\ub371\uc2a4\ub97c \uc0dd\uc131\ud558\ub824\uba74 \ubc30\uc5f4 \uc790\uccb4\ub3c4 CREATE INDEX \ubb38\uc5d0 \uc81c\uacf5\ub41c \ub2e4\ub978 \uc778\ub371\uc2a4 \ud0a4 \ubaa9\ub85d\uc5d0 \ucd94\uac00\ud574\uc57c \ud569\ub2c8\ub2e4.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/ko\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/","og_locale":"ko_KR","og_type":"article","og_title":"Making most of your Arrays.. with Covering Array Indexes and more..","og_description":"Learn how to create Covering Array Indexes, the array itself MUST also be added to the list of other index keys provided to the CREATE INDEX statement.","og_url":"https:\/\/www.couchbase.com\/blog\/ko\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/","og_site_name":"The Couchbase Blog","article_published_time":"2016-10-11T06:20:36+00:00","article_modified_time":"2025-10-09T13:41:31+00:00","author":"Prasad Varakur, Principal Product Manager, Couchbase","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Prasad Varakur, Principal Product Manager, Couchbase","Est. reading time":"4\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/"},"author":{"name":"Prasad Varakur, Principal Product Manager, Couchbase","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/c649b2296584f6b734c5a21681137e46"},"headline":"Making most of your Arrays.. with Covering Array Indexes and more..","datePublished":"2016-10-11T06:20:36+00:00","dateModified":"2025-10-09T13:41:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/"},"wordCount":907,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","keywords":["Array Indexing"],"articleSection":["SQL++ \/ N1QL Query"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/","url":"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/","name":"Composite and nested array indexes in the Couchbase 4.5","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","datePublished":"2016-10-11T06:20:36+00:00","dateModified":"2025-10-09T13:41:31+00:00","description":"\ucee4\ubc84\ub9c1 \ubc30\uc5f4 \uc778\ub371\uc2a4\ub97c \uc0dd\uc131\ud558\ub824\uba74 \ubc30\uc5f4 \uc790\uccb4\ub3c4 CREATE INDEX \ubb38\uc5d0 \uc81c\uacf5\ub41c \ub2e4\ub978 \uc778\ub371\uc2a4 \ud0a4 \ubaa9\ub85d\uc5d0 \ucd94\uac00\ud574\uc57c \ud569\ub2c8\ub2e4.","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","width":1800,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/1-making-most-of-your-arrays-with-covering-array-indexes-and-more\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Making most of your Arrays.. with Covering Array Indexes and more.."}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ube14\ub85c\uadf8","description":"NoSQL \ub370\uc774\ud130\ubca0\uc774\uc2a4, Couchbase","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"\uce74\uc6b0\uce58\ubca0\uc774\uc2a4 \ube14\ub85c\uadf8","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/c649b2296584f6b734c5a21681137e46","name":"\ud504\ub77c\uc0ac\ub4dc \ubc14\ub77c\ucfe0\ub974, \uc218\uc11d \uc81c\ud488 \uad00\ub9ac\uc790, Couchbase","image":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/5d664f4b9aadb80e438fd06cce0d151e","url":"https:\/\/secure.gravatar.com\/avatar\/3dd2299380c7af4e8a9732a0465d1c082c95eaff26cdf4abf54816d9b693043a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3dd2299380c7af4e8a9732a0465d1c082c95eaff26cdf4abf54816d9b693043a?s=96&d=mm&r=g","caption":"Prasad Varakur, Principal Product Manager, Couchbase"},"description":"\ud504\ub77c\uc0ac\ub4dc \ubc14\ub77c\ucfe0\ub974\ub294 \uce74\uc6b0\uce58\ubca0\uc774\uc2a4\uc758 \uc218\uc11d \uc81c\ud488 \uad00\ub9ac\uc790\uc785\ub2c8\ub2e4. Prasad\ub294 \ub370\uc774\ud130\ubca0\uc774\uc2a4(SQL, noSQL, \ube45 \ub370\uc774\ud130) \ubc0f \ubd84\uc0b0 \uc2dc\uc2a4\ud15c \ubd84\uc57c\uc758 \uc81c\ud488 \ubc0f \uc5d4\uc9c0\ub2c8\uc5b4\ub9c1 \ub9ac\ub354\uc785\ub2c8\ub2e4.","url":"https:\/\/www.couchbase.com\/blog\/ko\/author\/prasad-varakur\/"}]}},"authors":[{"term_id":8935,"user_id":70,"is_guest":0,"slug":"prasad-varakur","display_name":"Prasad Varakur, Principal Product Manager, Couchbase","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/3dd2299380c7af4e8a9732a0465d1c082c95eaff26cdf4abf54816d9b693043a?s=96&d=mm&r=g","author_category":"","last_name":"Varakur","first_name":"Prasad","job_title":"","user_url":"","description":"\ud504\ub77c\uc0ac\ub4dc \ubc14\ub77c\ucfe0\ub974\ub294 \uce74\uc6b0\uce58\ubca0\uc774\uc2a4\uc758 \uc218\uc11d \uc81c\ud488 \uad00\ub9ac\uc790\uc785\ub2c8\ub2e4. Prasad\ub294 \ub370\uc774\ud130\ubca0\uc774\uc2a4(SQL, noSQL, \ube45 \ub370\uc774\ud130) \ubc0f \ubd84\uc0b0 \uc2dc\uc2a4\ud15c \ubd84\uc57c\uc758 \uc81c\ud488 \ubc0f \uc5d4\uc9c0\ub2c8\uc5b4\ub9c1 \ub9ac\ub354\uc785\ub2c8\ub2e4."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/2250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/users\/70"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/comments?post=2250"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/posts\/2250\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media\/13873"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/media?parent=2250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/categories?post=2250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/tags?post=2250"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/ko\/wp-json\/wp\/v2\/ppma_author?post=2250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}