Skip to content

Instantly share code, notes, and snippets.

@kevinAlbs
Created September 24, 2020 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kevinAlbs/34e377d226a0394d016de436bfe829ef to your computer and use it in GitHub Desktop.
Save kevinAlbs/34e377d226a0394d016de436bfe829ef to your computer and use it in GitHub Desktop.
MongoDB Enterprise > db.runCommand({find: "capped", maxTimeMS: 1, batchSize: 1, tailable: true})
{
"cursor" : {
"firstBatch" : [
{
"_id" : ObjectId("5f6d0506aeed084eb2d0847e"),
"x" : 1
}
],
"id" : NumberLong("6854027525062436626"),
"ns" : "test.capped"
},
"ok" : 1
}
MongoDB Enterprise > db.runCommand({getMore: NumberLong("6854027525062436626"), collection: "capped", batchSize: 1})
{
"cursor" : {
"nextBatch" : [
{
"_id" : ObjectId("5f6d0506aeed084eb2d0847f"),
"x" : 1
}
],
"id" : NumberLong("6854027525062436626"),
"ns" : "test.capped"
},
"ok" : 1
}
MongoDB Enterprise > db.runCommand({getMore: NumberLong("6854027525062436626"), collection: "capped", batchSize: 1})
{
"cursor" : {
"nextBatch" : [
{
"_id" : ObjectId("5f6d0507aeed084eb2d08480"),
"x" : 1
}
],
"id" : NumberLong("6854027525062436626"),
"ns" : "test.capped"
},
"ok" : 1
}
MongoDB Enterprise > db.runCommand({getMore: NumberLong("6854027525062436626"), collection: "capped", batchSize: 1})
{
"cursor" : {
"nextBatch" : [
{
"_id" : ObjectId("5f6d0508aeed084eb2d08481"),
"x" : 1
}
],
"id" : NumberLong("6854027525062436626"),
"ns" : "test.capped"
},
"ok" : 1
}
MongoDB Enterprise > db.runCommand({getMore: NumberLong("6854027525062436626"), collection: "capped", batchSize: 1})
{
"ok" : 0,
"errmsg" : "operation exceeded time limit",
"code" : 50,
"codeName" : "MaxTimeMSExpired"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment