need help/explanation about implementing GET _dbs_info startkey (json) #5300
-
I'm trying to use startkey param in "GET _dbs_info" but no matter what I try I always get all the DBs. I don't understand how the startkey in query param can be represented in json.( according to docs ) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi, how did you query your DB? I can't reproduce this. For example, i have two dbs. Request:
Response: [
"_replicator",
"_users"
] If I want only the '_users' db in the result, I would do the following. Request:
Response: [
{
"key": "_users",
"info": {
"instance_start_time": "1728841527",
"db_name": "_users",
"purge_seq": "0-g1AAAABTeJzLYWBgYMpgTmHgz8tPSTV0MDQy1zMAQsMckEQeC5BkaABS_4EgK5EBp8pEhqR6iJIsACz0Fj4",
"update_seq": "1-g1AAAACTeJzLYWBgYMpgTmHgz8tPSTV0MDQy1zMAQsMckEQeC5BkaABS_4EgK4M5kSEXKMCeapZmnmxoiakLp0mJDEn1UCMYwUaYGJqZp5qkYSrPAgArkCRR",
"sizes": {
"file": 12652,
"external": 5387,
"active": 2342
},
"props": {},
"doc_del_count": 0,
"doc_count": 1,
"disk_format_version": 8,
"compact_running": false,
"cluster": {
"q": 2,
"n": 1,
"w": 1,
"r": 1
}
}
}
] |
Beta Was this translation helpful? Give feedback.
Hi,
how did you query your DB?
I can't reproduce this. For example, i have two dbs.
Request:
Response:
If I want only the '_users' db in the result, I would do the following.
Request:
Response: