Guest User

Couchbase Explain

a guest
Nov 5th, 2015
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.42 KB | None | 0 0
  1. cbq> EXPLAIN SELECT * FROM default WHERE fullName = 'John Smith';
  2. {
  3.     "requestID": "3956ea05-61d6-42d3-b570-b79d4ec5ea9f",
  4.     "signature": "json",
  5.     "results": [
  6.         {
  7.             "#operator": "Sequence",
  8.             "~children": [
  9.                 {
  10.                     "#operator": "IndexScan",
  11.                     "index": "fullName_idx",
  12.                     "keyspace": "default",
  13.                     "limit": 9.223372036854776e+18,
  14.                     "namespace": "default",
  15.                     "spans": [
  16.                         {
  17.                             "Range": {
  18.                                 "High": [
  19.                                     "\"John Smith\""
  20.                                 ],
  21.                                 "Inclusion": 3,
  22.                                 "Low": [
  23.                                     "\"John Smith\""
  24.                                 ]
  25.                             },
  26.                             "Seek": null
  27.                         }
  28.                     ],
  29.                     "using": "gsi"
  30.                 },
  31.                 {
  32.                     "#operator": "Parallel",
  33.                     "~child": {
  34.                         "#operator": "Sequence",
  35.                         "~children": [
  36.                             {
  37.                                 "#operator": "Fetch",
  38.                                 "keyspace": "default",
  39.                                 "namespace": "default"
  40.                             },
  41.                             {
  42.                                 "#operator": "Filter",
  43.                                 "condition": "((`default`.`fullName`) = \"John Smith\")"
  44.                             },
  45.                             {
  46.                                 "#operator": "InitialProject",
  47.                                 "result_terms": [
  48.                                     {
  49.                                         "star": true
  50.                                     }
  51.                                 ]
  52.                             },
  53.                             {
  54.                                 "#operator": "FinalProject"
  55.                             }
  56.                         ]
  57.                     }
  58.                 }
  59.             ]
  60.         }
  61.     ],
  62.     "status": "success",
  63.     "metrics": {
  64.         "elapsedTime": "3.390859ms",
  65.         "executionTime": "3.240493ms",
  66.         "resultCount": 1,
  67.         "resultSize": 2050
  68.     }
  69. }
Advertisement
Add Comment
Please, Sign In to add comment