tonysun83 commented on issue #1789: New Feature: Database Partitions
URL: https://github.com/apache/couchdb/pull/1789#issuecomment-452188597
 
 
   After grabbing the latest commit on this branch. I no longer get an unknown 
error 500's. I think the code is working as designed. We might want to add in 
an extra field so users know which indexes have partitioned = false. 
   
   ```
   {
       "total_rows": 4,
       "indexes": [
           {
               "ddoc": null,
               "name": "_all_docs",
               "type": "special",
               "def": {
                   "fields": [
                       {
                           "_id": "asc"
                       }
                   ]
               }
           },
           {
               "ddoc": "_design/foo-default-partition-index",
               "name": "foo-default-partition-index",
               "type": "json",
               "def": {
                   "fields": [
                       {
                           "a": "asc"
                       }
                   ]
               }
           },
           {
               "ddoc": "_design/foo-partition-false-index",
               "name": "foo-default-partition-false-index",
               "type": "json",
               "def": {
                   "fields": [
                       {
                           "a": "asc"
                       }
                   ]
               }
           },
           {
               "ddoc": "_design/foo-partition-true-index",
               "name": "foo-default-partition-true-index",
               "type": "json",
               "def": {
                   "fields": [
                       {
                           "a": "asc"
                       }
                   ]
               }
           }
       ]
   }
   ```
   
   ```
   {
       "_id": "_design/foo-default-partition-index",
       "_rev": "1-f55c91d8a173c5b1e7e61f35b3f4b594",
       "language": "query",
       "views": {
           "foo-default-partition-index": {
               "map": {
                   "fields": {
                       "a": "asc"
                   },
                   "partial_filter_selector": {}
               },
               "reduce": "_count",
               "options": {
                   "def": {
                       "fields": [
                           "a"
                       ]
                   }
               }
           }
       }
   }
   ```

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to