You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/01/12 00:32:59 UTC

[GitHub] kobeyk edited a comment on issue #1853: The $in operator in _find makes the queries very slow

kobeyk edited a comment on issue #1853: The $in operator in _find makes the queries very slow
URL: https://github.com/apache/couchdb/issues/1853#issuecomment-453700931
 
 
   @wohali this is my query explain:
   
   `{
    "dbname": "block",
    "index": {
     "ddoc": "_design/b25ce9a6eaeca74ab29f8b0b4d6527f693362264",
     "name": "fid-json-index",
     "type": "json",
     "def": {
      "fields": [
       {
        "fid": "asc"
       }
      ]
     }
    },
    "selector": {
     "$and": [
      {
       "fid": {
        "$in": [
         3692398112768
        ]
       }
      }
     ]
    },
    "opts": {
     "use_index": [],
     "bookmark": "nil",
     "limit": 20,
     "skip": 0,
     "sort": {},
     "fields": [
      "_id",
      "fid",
      "_rev",
      "name",
      "des",
      "type",
      "fname",
      "extension",
      "mtime",
      "uid",
      "icon"
     ],
     "r": [
      49
     ],
     "conflicts": false,
     "stale": false,
     "update": true,
     "stable": false,
     "execution_stats": false
    },
    "limit": 20,
    "skip": 0,
    "fields": [
     "_id",
     "fid",
     "_rev",
     "name",
     "des",
     "type",
     "fname",
     "extension",
     "mtime",
     "uid",
     "icon"
    ],
    "mrargs": {
     "include_docs": true,
     "view_type": "map",
     "reduce": false,
     "start_key": [],
     "end_key": [
      "<MAX>"
     ],
     "direction": "fwd",
     "stable": false,
     "update": true,
     "conflicts": "undefined"
    }
   }
   `
   =======================================
   
   full database scan

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services