{"id":8790,"date":"2020-06-15T11:10:36","date_gmt":"2020-06-15T18:10:36","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=8790"},"modified":"2025-06-13T23:42:36","modified_gmt":"2025-06-14T06:42:36","slug":"index-advisor-service-for-n1ql-june-refresh","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/","title":{"rendered":"Index Advisor Service for N1QL (June refresh)"},"content":{"rendered":"<p>This is our June drop for <a href=\"https:\/\/index-advisor.couchbase.com\/\">Index Advisor service<\/a> for N1QL after fixing some of the bugs that were found after our last refresh in May. We plan to keep improvising the Index Advisor service(<a href=\"https:\/\/www.couchbase.com\/blog\/index-advisor-service\/\">What is it?<\/a>). The fixes in Index Advisor that you would normally see in the next maintenance release are now available to you every month.<\/p>\n<h4>Who is it for? and When should you use it?<\/h4>\n<p><a href=\"https:\/\/index-advisor.couchbase.com\/\">https:\/\/index-advisor.couchbase.com\/<\/a><\/p>\n<p>At the cost of repeating myself,<\/p>\n<p>This service provides index recommendations to help DBAs, developers, and architects optimize query performance and meet the SLAs.Index Advisor is available as part of Enterprise Edition but this service is available to you for free!<\/p>\n<p>You will find this service useful if you:<\/p>\n<ol>\n<li>Want to avoid reading the <a href=\"https:\/\/docs.couchbase.com\/server\/current\/n1ql\/n1ql-language-reference\/createindex.html\">index creation<\/a>\u00a0<a href=\"https:\/\/www.couchbase.com\/blog\/create-right-index-get-right-performance\/\">rules<\/a>, understand them, and implement them to find the appropriate indexes for your query\/queries\/workload.<\/li>\n<li>\u00a0Want to continue using Couchbase Community Edition.<\/li>\n<li>\u00a0Are using an\u00a0<strong>older Couchbase version(version 5.5,6.0)<\/strong>\u00a0and need help creating the right indexes for your queries.<\/li>\n<li>Want to generate advice for indexes\u00a0<strong>without creating a bucket<\/strong> or uploading the schema or data.<\/li>\n<\/ol>\n<h4>Whats new?<\/h4>\n<p>Even if you have the Couchbase Server 6.5 server downloaded and can use Index Advisor from Query Workbench, this index Advisor is a more recent version(without a great looking UI) but with the following defects fixed.<\/p>\n<p><span style=\"color: #00ccff\">1. Advise fails to give covering index for join operation.<\/span><\/p>\n<p>With this improvement, a query like<\/p>\n<pre class=\"lang:java decode:true\">ADVISE SELECT t_1.int_field1 , t_1.decimal_field1 , t_1.primary_key_id , t_1.bool_field1 \r\nFROM bucket_01 t_1 INNER JOIN bucket_04 t_4 \r\nON ( t_1.primary_key_id = t_4.primary_key_id ) \r\nINNER JOIN bucket_04 t_5 ON ( t_1.primary_key_id = t_5.primary_key_id );<\/pre>\n<p>that used to give<\/p>\n<pre class=\"theme:twilight lang:java decode:true\">{\r\n  \"results\": [\r\n    {\r\n      \"#operator\": \"Advise\",\r\n      \"advice\": {\r\n        \"#operator\": \"IndexAdvice\",\r\n        \"adviseinfo\": {\r\n          \"recommended_indexes\": {\r\n            \"covering_indexes\": [\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_04`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_04_t_4\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_04`()\",\r\n                \"keyspace_alias\": \"bucket_04_t_5\"\r\n              }\r\n            ],\r\n            \"indexes\": [\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_04`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_04_t_4\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 9. non-static join predicate.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_01`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_01_t_1\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 6. derived join filter as leading key.\"\r\n              }\r\n            ]\r\n          }\r\n        }\r\n      },\r\n      \"query\": \"SELECT t_1.int_field1 , t_1.decimal_field1 , t_1.primary_key_id , t_1.bool_field1\\nFROM bucket_01 t_1\\nINNER JOIN bucket_04 t_4\\nON ( t_1.primary_key_id = t_4.primary_key_id )\\nINNER JOIN bucket_04 t_5\\nON ( t_1.primary_key_id = t_5.primary_key_id );\"\r\n    }\r\n  ]\r\n}<\/pre>\n<p>This query failed to give covering index recommendation for bucket_01.<\/p>\n<p>now gives<\/p>\n<pre class=\"theme:son-of-obsidian lang:java decode:true\">{\r\n  \"results\": [\r\n    {\r\n      \"#operator\": \"Advise\",\r\n      \"advice\": {\r\n        \"#operator\": \"IndexAdvice\",\r\n        \"adviseinfo\": {\r\n          \"recommended_indexes\": {\r\n            \"covering_indexes\": [\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id_int_field1_bool_field1_decimal_field1 ON `bucket_01`(`primary_key_id`,`int_field1`,`bool_field1`,`decimal_field1`)\",\r\n                \"keyspace_alias\": \"bucket_01_t_1\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_04`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_04_t_4;bucket_04_t_5\"\r\n              }\r\n            ],\r\n            \"indexes\": [\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_01`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_01_t_1\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 6. derived join filter as leading key.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_04`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_04_t_4;bucket_04_t_5\",\r\n                \"recommending_rule\": {\r\n                  \"bucket_04_t_4\": \"Index keys follow order of predicate types: 9. non-static join predicate.\",\r\n                  \"bucket_04_t_5\": \"Index keys follow order of predicate types: 9. non-static join predicate.\"\r\n                }\r\n              }\r\n            ]\r\n          }\r\n        }\r\n      },\r\n      \"query\": \"SELECT t_1.int_field1 , t_1.decimal_field1 , t_1.primary_key_id , t_1.bool_field1 FROM bucket_01 t_1 INNER JOIN bucket_04 t_4 ON ( t_1.primary_key_id = t_4.primary_key_id ) INNER JOIN bucket_04 t_5 ON ( t_1.primary_key_id = t_5.primary_key_id );\"\r\n    }\r\n  ]\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #00ccff\">2. Advise sometimes returns an empty index recommendation<\/span><\/p>\n<p>A query like:<\/p>\n<pre class=\"lang:java decode:true\">ADVISE SELECT t_1.int_field1 , t_1.decimal_field1 , t_1.primary_key_id , t_1.bool_field1 FROM bucket_01 t_1\r\n LEFT JOIN bucket_05 t_1SiRAdlidCB ON ( t_1.primary_key_id = t_1SiRAdlidCB.primary_key_id ) \r\nLEFT JOIN bucket_010 t_1fLjtGGSnKf ON ( t_1.primary_key_id = t_1fLjtGGSnKf.primary_key_id ) \r\nINNER JOIN bucket_04 t_1GHMwUzdukS ON ( t_1.primary_key_id = t_1GHMwUzdukS.primary_key_id ) \r\nINNER JOIN bucket_04 t_1LjVrlSNfDc ON ( t_1.primary_key_id = t_1LjVrlSNfDc.primary_key_id ) \r\nWHERE ((t_1.primary_key_id IS NOT NULL AND t_1.int_field1 IS NULL)) OR\r\n ((t_1.int_field1 &gt;= 47635891 OR t_1.varchar_field1 IS NOT NULL));<\/pre>\n<p>&nbsp;<\/p>\n<p>used to give<\/p>\n<pre class=\"theme:twilight lang:java decode:true\">{\r\n  \"results\": [\r\n    {\r\n      \"#operator\": \"Advise\",\r\n      \"advice\": {\r\n        \"#operator\": \"IndexAdvice\",\r\n        \"adviseinfo\": {\r\n          \"recommended_indexes\": {\r\n            \"covering_indexes\": [\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_05`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_05_t_1SiRAdlidCB\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_010`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_010_t_1fLjtGGSnKf\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_04`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_04_t_1GHMwUzdukS\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_04`()\",\r\n                \"keyspace_alias\": \"bucket_04_t_1LjVrlSNfDc\"\r\n              }\r\n            ],\r\n            \"indexes\": [\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_int_field1_primary_key_id ON `bucket_01`(`int_field1`,`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_01_t_1\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 1. Common leading key for disjunction (2. equality\/null\/missing), 7. not null\/not missing\/valued.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_varchar_field1 ON `bucket_01`(`varchar_field1`)\",\r\n                \"keyspace_alias\": \"bucket_01_t_1\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 7. not null\/not missing\/valued.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_05`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_05_t_1SiRAdlidCB\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 9. non-static join predicate.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_010`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_010_t_1fLjtGGSnKf\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 9. non-static join predicate.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_04`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_04_t_1GHMwUzdukS\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 9. non-static join predicate.\"\r\n              }\r\n            ]\r\n          }\r\n        }\r\n      },\r\n      \"query\": \"SELECT t_1.int_field1 , t_1.decimal_field1 , t_1.primary_key_id , t_1.bool_field1 FROM bucket_01 t_1 LEFT JOIN bucket_05 t_1SiRAdlidCB ON ( t_1.primary_key_id = t_1SiRAdlidCB.primary_key_id ) LEFT JOIN bucket_010 t_1fLjtGGSnKf ON ( t_1.primary_key_id = t_1fLjtGGSnKf.primary_key_id ) INNER JOIN bucket_04 t_1GHMwUzdukS ON ( t_1.primary_key_id = t_1GHMwUzdukS.primary_key_id ) INNER JOIN bucket_04 t_1LjVrlSNfDc ON ( t_1.primary_key_id = t_1LjVrlSNfDc.primary_key_id ) WHERE ((t_1.primary_key_id IS NOT NULL AND t_1.int_field1 IS NULL)) OR ((t_1.int_field1 &gt;= 47635891 OR t_1.varchar_field1 IS NOT NULL));\"\r\n    }\r\n  ]\r\n}<\/pre>\n<p>There is one blank index being recommended, plus it says those indexes are covering but they do not include fields from the predicate.<\/p>\n<p>now gives<\/p>\n<pre class=\"theme:son-of-obsidian lang:java decode:true\">{\r\n  \"results\": [\r\n    {\r\n      \"#operator\": \"Advise\",\r\n      \"advice\": {\r\n        \"#operator\": \"IndexAdvice\",\r\n        \"adviseinfo\": {\r\n          \"recommended_indexes\": {\r\n            \"covering_indexes\": [\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_05`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_05_t_1SiRAdlidCB\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_010`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_010_t_1fLjtGGSnKf\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_04`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_04_t_1GHMwUzdukS;bucket_04_t_1LjVrlSNfDc\"\r\n              }\r\n            ],\r\n            \"indexes\": [\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_010`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_010_t_1fLjtGGSnKf\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 9. non-static join predicate.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_04`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_04_t_1GHMwUzdukS;bucket_04_t_1LjVrlSNfDc\",\r\n                \"recommending_rule\": {\r\n                  \"bucket_04_t_1GHMwUzdukS\": \"Index keys follow order of predicate types: 9. non-static join predicate.\",\r\n                  \"bucket_04_t_1LjVrlSNfDc\": \"Index keys follow order of predicate types: 9. non-static join predicate.\"\r\n                }\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_int_field1_primary_key_id ON `bucket_01`(`int_field1`,`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_01_t_1\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 1. Common leading key for disjunction (2. equality\/null\/missing), 7. not null\/not missing\/valued.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_varchar_field1 ON `bucket_01`(`varchar_field1`)\",\r\n                \"keyspace_alias\": \"bucket_01_t_1\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 7. not null\/not missing\/valued.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_05`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_05_t_1SiRAdlidCB\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 9. non-static join predicate.\"\r\n              }\r\n            ]\r\n          }\r\n        }\r\n      },\r\n      \"query\": \"SELECT t_1.int_field1 , t_1.decimal_field1 , t_1.primary_key_id , t_1.bool_field1 FROM bucket_01 t_1 LEFT JOIN bucket_05 t_1SiRAdlidCB ON ( t_1.primary_key_id = t_1SiRAdlidCB.primary_key_id ) LEFT JOIN bucket_010 t_1fLjtGGSnKf ON ( t_1.primary_key_id = t_1fLjtGGSnKf.primary_key_id ) INNER JOIN bucket_04 t_1GHMwUzdukS ON ( t_1.primary_key_id = t_1GHMwUzdukS.primary_key_id ) INNER JOIN bucket_04 t_1LjVrlSNfDc ON ( t_1.primary_key_id = t_1LjVrlSNfDc.primary_key_id ) WHERE ((t_1.primary_key_id IS NOT NULL AND t_1.int_field1 IS NULL)) OR ((t_1.int_field1 &gt;= 47635891 OR t_1.varchar_field1 IS NOT NULL));\"\r\n    }\r\n  ]\r\n}<\/pre>\n<p><span style=\"color: #00ccff\">3. Should give recommendation with desc sort on field<\/span><\/p>\n<p>A query like<\/p>\n<pre class=\"lang:java decode:true\">ADVISE select country from `default` where pro_account=true and country = \"USA\" order by country DESC<\/pre>\n<p>used to give<\/p>\n<pre class=\"theme:twilight lang:java decode:true\">{\r\n  \"results\": [\r\n    {\r\n      \"#operator\": \"Advise\",\r\n      \"advice\": {\r\n        \"#operator\": \"IndexAdvice\",\r\n        \"adviseinfo\": {\r\n          \"recommended_indexes\": {\r\n            \"covering_indexes\": [\r\n              {\r\n                \"&lt;span style=\"color: #ff0000;\" data-mce-style=\"color: #ff0000;\"&gt;index_statement\": \"CREATE INDEX adv_pro_account_country ON `default`(`pro_account`,`country`)\",&lt;\/span&gt;\r\n                \"keyspace_alias\": \"default\"\r\n              }\r\n            ],\r\n            \"indexes\": [\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_pro_account_country ON `default`(`pro_account`,`country`)\",\r\n                \"keyspace_alias\": \"default\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 2. equality\/null\/missing.\"\r\n              }\r\n            ]\r\n          }\r\n        }\r\n      },\r\n      \"query\": \"select country from default where pro_account=true and country = \\\"USA\\\" order by country DESC\"\r\n    }\r\n  ]\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p><span style=\"color: #000000\">now gives:<\/span><\/p>\n<pre class=\"theme:son-of-obsidian lang:java decode:true\">{\r\n  \"results\": [\r\n    {\r\n      \"#operator\": \"Advise\",\r\n      \"advice\": {\r\n        \"#operator\": \"IndexAdvice\",\r\n        \"adviseinfo\": {\r\n          \"recommended_indexes\": {\r\n            \"covering_indexes\": [\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_countryDESC_pro_account ON `default`(`country` DESC,`pro_account`)\",&lt;\/span&gt;\r\n                \"keyspace_alias\": \"default\"\r\n              }\r\n            ],\r\n            \"indexes\": [\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_country_pro_account ON `default`(`country`,`pro_account`)\",\r\n                \"keyspace_alias\": \"default\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 2. equality\/null\/missing.\"\r\n              }\r\n            ]\r\n          }\r\n        }\r\n      },\r\n      \"query\": \"select country from default where pro_account=true and country = \\\"USA\\\" order by country DESC\"\r\n    }\r\n  ]\r\n}<\/pre>\n<p><span style=\"color: #00ccff\">4. Index advisor to combine information for duplicate index definition<\/span><\/p>\n<p>We remove duplicate index definition for one query.<br \/>\nBut there are some cases duplicate index may apply to different keyspace_alias with different recommending rules.<\/p>\n<p>A query like:<\/p>\n<pre class=\"lang:java decode:true\">ADVISE SELECT * \r\nFROM bucket_01 t_1 \r\nLEFT JOIN bucket_05 t_2 ON ( t_1.primary_key_id = t_2.primary_key_id ) \r\nLEFT JOIN bucket_010 t_3 ON ( t_1.primary_key_id = t_3.primary_key_id ) \r\nINNER JOIN bucket_04 t_4 ON ( t_1.primary_key_id = t_4.primary_key_id ) \r\nINNER JOIN bucket_04 t_5 ON ( t_1.primary_key_id = t_5.primary_key_id ) \r\nWHERE ((t_1.primary_key_id IS NOT NULL AND t_1.int_field1 IS NULL)) OR ((t_1.int_field1 &gt;= 47635891 OR t_1.varchar_field1 IS NOT NULL));<\/pre>\n<p>used to give<\/p>\n<pre class=\"theme:twilight lang:java decode:true\">{\r\n  \"results\": [\r\n    {\r\n      \"#operator\": \"Advise\",\r\n      \"advice\": {\r\n        \"#operator\": \"IndexAdvice\",\r\n        \"adviseinfo\": {\r\n          \"recommended_indexes\": {\r\n            \"indexes\": [\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_010`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_010_t_3\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 9. non-static join predicate.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_04`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_04_t_4\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 9. non-static join predicate.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_int_field1_primary_key_id ON `bucket_01`(`int_field1`,`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_01_t_1\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 1. Common leading key for disjunction (2. equality\/null\/missing), 7. not null\/not missing\/valued.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_varchar_field1 ON `bucket_01`(`varchar_field1`)\",\r\n                \"keyspace_alias\": \"bucket_01_t_1\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 7. not null\/not missing\/valued.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_05`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_05_t_2\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 9. non-static join predicate.\"\r\n              }\r\n            ]\r\n          }\r\n        }\r\n      },\r\n      \"query\": \"SELECT * FROM bucket_01 t_1 LEFT JOIN bucket_05 t_2 ON ( t_1.primary_key_id = t_2.primary_key_id ) LEFT JOIN bucket_010 t_3 ON ( t_1.primary_key_id = t_3.primary_key_id ) INNER JOIN bucket_04 t_4 ON ( t_1.primary_key_id = t_4.primary_key_id ) INNER JOIN bucket_04 t_5 ON ( t_1.primary_key_id = t_5.primary_key_id ) WHERE ((t_1.primary_key_id IS NOT NULL AND t_1.int_field1 IS NULL)) OR ((t_1.int_field1 &gt;= 47635891 OR t_1.varchar_field1 IS NOT NULL));\"\r\n    }\r\n  ]\r\n}<\/pre>\n<p>now gives:<\/p>\n<pre class=\"theme:son-of-obsidian lang:java decode:true\">{\r\n  \"results\": [\r\n    {\r\n      \"#operator\": \"Advise\",\r\n      \"advice\": {\r\n        \"#operator\": \"IndexAdvice\",\r\n        \"adviseinfo\": {\r\n          \"recommended_indexes\": {\r\n            \"indexes\": [\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_int_field1_primary_key_id ON `bucket_01`(`int_field1`,`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_01_t_1\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 1. Common leading key for disjunction (2. equality\/null\/missing), 7. not null\/not missing\/valued.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_varchar_field1 ON `bucket_01`(`varchar_field1`)\",\r\n                \"keyspace_alias\": \"bucket_01_t_1\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 7. not null\/not missing\/valued.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_05`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_05_t_2\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 9. non-static join predicate.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_010`(`primary_key_id`)\",\r\n                \"keyspace_alias\": \"bucket_010_t_3\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 9. non-static join predicate.\"\r\n              },\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_primary_key_id ON `bucket_04`(`primary_key_id`)\",\r\n                \"keyspace_alias\": &lt;span style=\"color: #0000ff;\" data-mce-style=\"color: #0000ff;\"&gt;\"bucket_04_t_4;bucket_04_t_5\"&lt;\/span&gt;,\r\n                \"recommending_rule\": {\r\n                  \"bucket_04_t_4\": \"Index keys follow order of predicate types: 9. non-static join predicate.\",\r\n                  \"bucket_04_t_5\": \"Index keys follow order of predicate types: 9. non-static join predicate.\"\r\n                }\r\n              }\r\n            ]\r\n          }\r\n        }\r\n      },\r\n      \"query\": \"SELECT * \\nFROM bucket_01 t_1 \\nLEFT JOIN bucket_05 t_2 ON ( t_1.primary_key_id = t_2.primary_key_id ) \\nLEFT JOIN bucket_010 t_3 ON ( t_1.primary_key_id = t_3.primary_key_id ) \\nINNER JOIN bucket_04 t_4 ON ( t_1.primary_key_id = t_4.primary_key_id ) \\nINNER JOIN bucket_04 t_5 ON ( t_1.primary_key_id = t_5.primary_key_id ) \\nWHERE ((t_1.primary_key_id IS NOT NULL AND t_1.int_field1 IS NULL)) OR ((t_1.int_field1 &gt;= 47635891 OR t_1.varchar_field1 IS NOT NULL));\"\r\n    }\r\n  ]\r\n}<\/pre>\n<p><span style=\"color: #00ccff\">5. Index advisor returns wrong index recommendation on an unnest query<\/span><\/p>\n<p>A query like:<\/p>\n<pre class=\"lang:java decode:true\">advise SELECT meta(t).id _id,t.type,branch.branchId FROM test AS t UNNEST t.branches AS branch\r\nWHERE t.type is valued AND branch.branchId &gt; (t.currentBranch-2) \r\norder by branch.lastUpdateOn<\/pre>\n<p>used to give:<\/p>\n<pre class=\"theme:twilight lang:java decode:true\">{\r\n  \"results\": [\r\n    {\r\n      \"#operator\": \"Advise\",\r\n      \"advice\": {\r\n        \"#operator\": \"IndexAdvice\",\r\n        \"adviseinfo\": {\r\n          \"recommended_indexes\": {\r\n            \"indexes\": [\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_ALL_branches_type_2 ON `test`(&lt;span style=\"color: #ff0000;\" data-mce-style=\"color: #ff0000;\"&gt;ALL `branches`,`type`,2&lt;\/span&gt;)\",\r\n                \"keyspace_alias\": \"test_t\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 1. leading array index for unnest, 7. not null\/not missing\/valued, 9. non-static join predicate.\"\r\n              }\r\n            ]\r\n          }\r\n        }\r\n      },\r\n      \"query\": \"SELECT meta(t).id _id,t.type,branch.branchId FROM test AS t UNNEST t.branches AS branch WHERE t.type is valued AND branch.branchId &gt; (t.currentBranch-2) order by branch.lastUpdateOn\"\r\n    }\r\n  ]\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>now gives<\/p>\n<pre class=\"theme:son-of-obsidian lang:java decode:true\">{\r\n  \"results\": [\r\n    {\r\n      \"#operator\": \"Advise\",\r\n      \"advice\": {\r\n        \"#operator\": \"IndexAdvice\",\r\n        \"adviseinfo\": {\r\n          \"recommended_indexes\": {\r\n            \"indexes\": [\r\n              {\r\n                \"index_statement\": \"CREATE INDEX adv_ALL_branches_branchId_type ON `test`(&lt;span style=\"color: #0000ff;\" data-mce-style=\"color: #0000ff;\"&gt;ALL ARRAY `branch`.`branchId` FOR branch IN `branches` END,`type`&lt;\/span&gt;)\",\r\n                \"keyspace_alias\": \"test_t\",\r\n                \"recommending_rule\": \"Index keys follow order of predicate types: 1. leading array index for unnest, 7. not null\/not missing\/valued.\"\r\n              }\r\n            ]\r\n          }\r\n        }\r\n      },\r\n      \"query\": \"SELECT meta(t).id _id,t.type,branch.branchId\\nFROM test AS t\\nUNNEST t.branches AS branch\\nWHERE t.type is valued AND branch.branchId &gt; (t.currentBranch-2) order by branch.lastUpdateOn\"\r\n    }\r\n  ]\r\n}<\/pre>\n<p>Give it a try and any problems you see with Indexes recommended by Index Advisor Service, you can add them as a comment to this blog<\/p>\n<h4>More about the Index Advisor feature:<\/h4>\n<p><a href=\"https:\/\/www.couchbase.com\/blog\/index-advisor-service\/\">https:\/\/www.couchbase.com\/blog\/index-advisor-service\/<\/a><\/p>\n<p><a href=\"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-couchbase-n1qlfeb-refresh\/\">https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-couchbase-n1qlfeb-refresh\/<\/a><\/p>\n<p><a href=\"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-march-refresh\/\">https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-march-refresh\/<\/a><\/p>\n<p><a href=\"https:\/\/www.couchbase.com\/blog\/n1ql-index-advisor-improve-query-performance-and-productivity\/\">https:\/\/www.couchbase.com\/blog\/n1ql-index-advisor-improve-query-performance-and-productivity\/<\/a><\/p>\n<p><a href=\"https:\/\/www.couchbase.com\/blog\/index-advisor-for-query-workload\/\">https:\/\/www.couchbase.com\/blog\/index-advisor-for-query-workload\/<\/a><\/p>\n<p><a href=\"https:\/\/docs.couchbase.com\/server\/6.5\/n1ql\/n1ql-language-reference\/advise.html\">https:\/\/docs.couchbase.com\/server\/6.5\/n1ql\/n1ql-language-reference\/advise.html<\/a><\/p>\n<p><a href=\"https:\/\/docs.couchbase.com\/server\/6.5\/n1ql\/n1ql-language-reference\/advisor.html\">https:\/\/docs.couchbase.com\/server\/6.5\/n1ql\/n1ql-language-reference\/advisor.html<\/a><\/p>\n<p><a href=\"https:\/\/docs.couchbase.com\/server\/6.5\/tools\/query-workbench.html#index-advisor\">https:\/\/docs.couchbase.com\/server\/6.5\/tools\/query-workbench.html#index-advisor<\/a><\/p>\n<h4><\/h4>\n","protected":false},"excerpt":{"rendered":"<p>This is our June drop for Index Advisor service for N1QL after fixing some of the bugs that were found after our last refresh in May. We plan to keep improvising the Index Advisor service(What is it?). The fixes in [&hellip;]<\/p>\n","protected":false},"author":50908,"featured_media":7971,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[2225,1816,2453,1812],"tags":[1245,1695,2439,2445],"ppma_author":[9099],"class_list":["post-8790","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-couchbase-server","category-global-secondary-index","category-n1ql-query","tag-cloud","tag-gsi","tag-index-advisor","tag-query-optimization"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.7.1 (Yoast SEO v25.7) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Index Advisor Service for N1QL (June refresh) - The Couchbase Blog<\/title>\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\/index-advisor-service-for-n1ql-june-refresh\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Index Advisor Service for N1QL (June refresh)\" \/>\n<meta property=\"og:description\" content=\"This is our June drop for Index Advisor service for N1QL after fixing some of the bugs that were found after our last refresh in May. We plan to keep improvising the Index Advisor service(What is it?). The fixes in [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-15T18:10:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-14T06:42:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2019\/12\/ZgEfnw1X_400x400.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Kamini Jagtiani\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kamini Jagtiani\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/\"},\"author\":{\"name\":\"Kamini Jagtiani\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/f99c5767a877147f9cf658230bc2473b\"},\"headline\":\"Index Advisor Service for N1QL (June refresh)\",\"datePublished\":\"2020-06-15T18:10:36+00:00\",\"dateModified\":\"2025-06-14T06:42:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/\"},\"wordCount\":479,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2019\/12\/ZgEfnw1X_400x400.png\",\"keywords\":[\"cloud\",\"GSI\",\"Index Advisor\",\"Query optimization\"],\"articleSection\":[\"Couchbase Capella\",\"Couchbase Server\",\"Global Secondary Index\",\"SQL++ \/ N1QL Query\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/\",\"name\":\"Index Advisor Service for N1QL (June refresh) - The Couchbase Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2019\/12\/ZgEfnw1X_400x400.png\",\"datePublished\":\"2020-06-15T18:10:36+00:00\",\"dateModified\":\"2025-06-14T06:42:36+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2019\/12\/ZgEfnw1X_400x400.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2019\/12\/ZgEfnw1X_400x400.png\",\"width\":400,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Index Advisor Service for N1QL (June refresh)\"}]},{\"@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\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@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\/f99c5767a877147f9cf658230bc2473b\",\"name\":\"Kamini Jagtiani\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/257695296726c224fc7f0e85b30c9129\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/546f9f69203064f77430f14922d59be33e3f0ea674078a793fc813dd40310c5c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/546f9f69203064f77430f14922d59be33e3f0ea674078a793fc813dd40310c5c?s=96&d=mm&r=g\",\"caption\":\"Kamini Jagtiani\"},\"description\":\"Kamini Jagtiani is a Senior Engineering Manager for the Query Team at Couchbase R&amp;D. Before Couchbase, Kamini was 7 years at Futurewei as Kernel Architect\/Manager and 13 years at IBM Informix as Software Engineer. Kamini has a Bachelors's degree in Computer Science and Engineering from Bombay University, India and holds 5 US patents.\",\"url\":\"https:\/\/www.couchbase.com\/blog\/author\/kaminijagtiani\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Index Advisor Service for N1QL (June refresh) - The Couchbase Blog","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\/index-advisor-service-for-n1ql-june-refresh\/","og_locale":"en_US","og_type":"article","og_title":"Index Advisor Service for N1QL (June refresh)","og_description":"This is our June drop for Index Advisor service for N1QL after fixing some of the bugs that were found after our last refresh in May. We plan to keep improvising the Index Advisor service(What is it?). The fixes in [&hellip;]","og_url":"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/","og_site_name":"The Couchbase Blog","article_published_time":"2020-06-15T18:10:36+00:00","article_modified_time":"2025-06-14T06:42:36+00:00","og_image":[{"width":400,"height":400,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2019\/12\/ZgEfnw1X_400x400.png","type":"image\/png"}],"author":"Kamini Jagtiani","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kamini Jagtiani","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/"},"author":{"name":"Kamini Jagtiani","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/f99c5767a877147f9cf658230bc2473b"},"headline":"Index Advisor Service for N1QL (June refresh)","datePublished":"2020-06-15T18:10:36+00:00","dateModified":"2025-06-14T06:42:36+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/"},"wordCount":479,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2019\/12\/ZgEfnw1X_400x400.png","keywords":["cloud","GSI","Index Advisor","Query optimization"],"articleSection":["Couchbase Capella","Couchbase Server","Global Secondary Index","SQL++ \/ N1QL Query"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/","url":"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/","name":"Index Advisor Service for N1QL (June refresh) - The Couchbase Blog","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2019\/12\/ZgEfnw1X_400x400.png","datePublished":"2020-06-15T18:10:36+00:00","dateModified":"2025-06-14T06:42:36+00:00","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2019\/12\/ZgEfnw1X_400x400.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2019\/12\/ZgEfnw1X_400x400.png","width":400,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/index-advisor-service-for-n1ql-june-refresh\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Index Advisor Service for N1QL (June refresh)"}]},{"@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":"en-US"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"The Couchbase Blog","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@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\/f99c5767a877147f9cf658230bc2473b","name":"Kamini Jagtiani","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/257695296726c224fc7f0e85b30c9129","url":"https:\/\/secure.gravatar.com\/avatar\/546f9f69203064f77430f14922d59be33e3f0ea674078a793fc813dd40310c5c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/546f9f69203064f77430f14922d59be33e3f0ea674078a793fc813dd40310c5c?s=96&d=mm&r=g","caption":"Kamini Jagtiani"},"description":"Kamini Jagtiani is a Senior Engineering Manager for the Query Team at Couchbase R&amp;D. Before Couchbase, Kamini was 7 years at Futurewei as Kernel Architect\/Manager and 13 years at IBM Informix as Software Engineer. Kamini has a Bachelors's degree in Computer Science and Engineering from Bombay University, India and holds 5 US patents.","url":"https:\/\/www.couchbase.com\/blog\/author\/kaminijagtiani\/"}]}},"authors":[{"term_id":9099,"user_id":50908,"is_guest":0,"slug":"kaminijagtiani","display_name":"Kamini Jagtiani","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/546f9f69203064f77430f14922d59be33e3f0ea674078a793fc813dd40310c5c?s=96&d=mm&r=g","author_category":"","last_name":"Jagtiani","first_name":"Kamini","job_title":"","user_url":"","description":"Kamini Jagtiani is a Senior Engineering Manager for the Query Team at Couchbase R&amp;D. Before Couchbase, Kamini was 7 years at Futurewei as Kernel Architect\/Manager and 13 years at IBM Informix as Software Engineer. Kamini has a Bachelors's degree in Computer Science and Engineering from Bombay University, India and holds 5 US patents."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/8790","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/users\/50908"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/comments?post=8790"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/8790\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media\/7971"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media?parent=8790"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/categories?post=8790"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/tags?post=8790"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=8790"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}