{"id":2359,"date":"2016-11-30T23:26:22","date_gmt":"2016-11-30T23:26:22","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=2359"},"modified":"2025-06-13T20:20:29","modified_gmt":"2025-06-14T03:20:29","slug":"testing-mongodb-and-couchbase-concurrent-query","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/pt\/testing-mongodb-and-couchbase-concurrent-query\/","title":{"rendered":"Comportamento de simultaneidade: MongoDB vs. Couchbase"},"content":{"rendered":"<p dir=\"ltr\" style=\"line-height: 1.38; margin-top: 16pt; margin-bottom: 4pt;\"><img decoding=\"async\" align=\"middle\" alt=\"Couchbase - MongoDB\" src=\"\/wp-content\/original-assets\/2016\/july\/testing-mongodb-and-couchbase-concurrent-query\/screen-shot-2016-07-31-at-7.53.29-am.png\" \/><\/p>\n<p dir=\"ltr\" style=\"line-height: 1.38; margin-top: 16pt; margin-bottom: 4pt;\"><span><span style=\"font-size: 18.6667px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Multi-User Testing<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">David Glasser of <\/span><a href=\"https:\/\/www.meteor.com\" style=\"text-decoration:none;\"><span style=\"font-size: 16px; font-family: Consolas; color: rgb(17, 85, 204); text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Meteor<\/span><\/a><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\"> wrote <\/span><a href=\"https:\/\/engineering.meteor.com\/mongodb-queries-dont-always-return-all-matching-documents-654b6594a827#.544qmh6zd\" style=\"text-decoration:none;\"><span style=\"font-size: 16px; font-family: Consolas; color: rgb(17, 85, 204); text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">a blog on an MongoDB query missing matching documents issue<\/span><\/a><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\"> he ran into. \u00a0It is straightforward to reproduce the issue on both MongoDB MMAPv1 and MongoDB WiredTiger engine. Here are his conclusions from his article (emphasis is mine)<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Long story short\u2026<\/span><\/span><\/p>\n<ul style=\"margin-top:0pt;margin-bottom:0pt;\">\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">This issue doesn\u2019t affect queries that don\u2019t use an index, such as queries that just look up a document by ID.<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">It doesn\u2019t affect queries which explicitly do a single value equality match on all fields used in the index key.<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">It doesn\u2019t affect queries that use indexes whose fields are never modified after the document is originally inserted.<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">But any other kind of MongoDB query can fail to include all the matching documents!<\/span><\/span><\/p>\n<\/li>\n<\/ul>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Here\u2019s another way to look at it. In MongoDB, if the query can retrieve two documents using a secondary index (index on something other than _id) when concurrent operations are going on, the results could be wrong. \u00a0This is a common scenario in many database applications. <\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Here is the test:<\/span><\/span><\/p>\n<ol style=\"margin-top:0pt;margin-bottom:0pt;\">\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Create a Container: Bucket, table, or collection.<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Load the data with a small dataset, say 300K documents.<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Create an index on the field you want to filter on (predicates).<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">In one session, update the indexed field in one session and query on the other. <\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<p>\n\u00a0<\/p>\n<h3 dir=\"ltr\" style=\"line-height:1.38;margin-top:16pt;margin-bottom:4pt;\"><span><span style=\"font-size: 18.6667px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">MongoDB Testing<\/span><\/span><\/h3>\n<p>\n\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Steps to reproduce the issue on MongoDB:<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<ol style=\"margin-top:0pt;margin-bottom:0pt;\">\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Install MongoDB 3.2.<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Bring up mongod with either MMAPv1 or WiredTiger.<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Load data using tpcc.py<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">python tpcc.py &#8211;warehouses 1 &#8211;no-execute mongodb<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Get the count<\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left: 72pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> use tpcc<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left: 72pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.find().count();<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left: 72pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">299890<\/span><\/span><\/p>\n<ol start=\"6\" style=\"margin-top:0pt;margin-bottom:0pt;\">\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">db.ORDER_LINE.ensureIndex({state:1});<\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<p>\u00a0<\/p>\n<h4 dir=\"ltr\" style=\"line-height:1.38;margin-top:14pt;margin-bottom:4pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">MongoDB Experiment 1: Update to higher value<\/span><\/span><\/h4>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Setup the state field with the value aaaaaa and then concurrently update this value to zzzzzz and query for total number of documents with the two values [&apos;aaaaaa&apos;,&apos;zzzzzz&apos;] matching the field. \u00a0When the value of the indexed field moves from lower (aaaaaa) to higher (zzzzzz) value, these entries are moving from one side of the B-tree to the other. \u00a0Now, we\u2019re trying to see if the scan returns duplicate value, translated to higher count() value.<\/span><\/span><\/p>\n<div>\u00a0<\/div>\n<p style=\"color: rgb(51, 51, 51); line-height: 20.8px; text-align: left;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({OL_DIST_INFO:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;aaaaaa&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 299890, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 299890 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.find({state:{$in:[&apos;aaaaaa&apos;,&apos;zzzzzz&apos;]}}).count();<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">299890<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.find({state:{$in:[&apos;aaaaaa&apos;,&apos;zzzzzz&apos;]}}).explain();<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;queryPlanner&#8221; : {<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;plannerVersion&#8221; : 1,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;namespace&#8221; : &#8220;tpcc.ORDER_LINE&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;indexFilterSet&#8221; : false,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;parsedQuery&#8221; : {<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;state&#8221; : {<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;$in&#8221; : [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;aaaaaa&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;zzzzzz&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">]<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">},<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;winningPlan&#8221; : {<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;stage&#8221; : &#8220;FETCH&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;inputStage&#8221; : {<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); font-weight: 700; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;stage&#8221; : &#8220;IXSCAN&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;keyPattern&#8221; : {<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;state&#8221; : 1<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">},<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); font-weight: 700; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); font-weight: 700; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); font-weight: 700; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); font-weight: 700; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); font-weight: 700; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;indexName&#8221; : &#8220;state_1&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;isMultiKey&#8221; : false,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;direction&#8221; : &#8220;forward&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;indexBounds&#8221; : {<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;state&#8221; : [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;[&#8220;aaaaaa&#8221;, &#8220;aaaaaa&#8221;]&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;[&#8220;zzzzzz&#8221;, &#8220;zzzzzz&#8221;]&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">]<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">},<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;rejectedPlans&#8221; : [ ]<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">},<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;serverInfo&#8221; : {<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;host&#8221; : &#8220;Keshavs-MacBook-Pro.local&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;port&#8221; : 27017,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;version&#8221; : &#8220;3.0.2&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;gitVersion&#8221; : &#8220;6201872043ecbbc0a4cc169b5482dcf385fc464f&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">},<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;ok&#8221; : 1<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(56, 118, 29); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">}<\/span><\/span><\/p>\n<div>\u00a0<\/div>\n<ol style=\"margin-top:0pt;margin-bottom:0pt;\">\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update statement 1: Update all documents to set state = \u201czzzzzz\u201d<\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0db.ORDER_LINE.update({OL_DIST_INFO:{$gt:&#8221;&#8221;}}, <\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{$set: {<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">state: &#8220;zzzzzz&#8221;<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">}}, {multi:true});<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<ol start=\"2\" style=\"margin-top:0pt;margin-bottom:0pt;\">\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update statement 2: Update all documents to set state = \u201caaaaaa\u201d<\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;margin-left: 36pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0db.ORDER_LINE.update({OL_DIST_INFO:{$gt:&#8221;&#8221;}}, <\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{$set: {<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">state: &#8220;aaaaaa&#8221;<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">}}, {multi:true});<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a03. Count statement: Count documents:(state in [\u201caaaaaa\u201d, \u201czzzzzz\u201d])<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0db.ORDER_LINE.find(<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{state:{$in:[&apos;aaaaaa&apos;,&apos;zzzzzz&apos;]}}<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">).count();<\/span><\/span><\/p>\n<div>\u00a0<\/div>\n<p style=\"color: rgb(51, 51, 51); line-height: 20.8px; text-align: left;\">\u00a0<br \/>\n\u00a0<\/p>\n<div dir=\"ltr\" style=\"margin-left:0pt;\">\n<table style=\"border: none;\">\n<tbody>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Time <\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Session 1: Issue Update Statement1<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">(update state = \u201czzzzzz\u201d)<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Session 2: Issue Count Statement continuously.<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T0<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement starts <\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#b6d7a8;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Count = 299890<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T1<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#dd7e6b;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Count = 312736<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T2<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#dd7e6b;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Count = 312730<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T3<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#dd7e6b;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Count = 312778<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T4<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#dd7e6b;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Count = 312656<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T4<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#dd7e6b;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Count = 313514<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T4<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#dd7e6b;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Count = 303116<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T4<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Done<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#b6d7a8;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Count = 299890<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Result: In this scenario, the index does double counting of many documents and reports more than it actually has.<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Cause: \u00a0Data in the leaf level of B-Tree is sorted. As the update B-Tree gets updated from aaaaaa to zzzzzz, the keys in the lower end are moved to the upper end. \u00a0The concurrent scans are unaware of this move. \u00a0MongoDB does not implement a stable scan and counts the entries as they come. \u00a0So, in a production system with many updates going on, it could count the same document twice, thrice or more. \u00a0It just depends on the concurrent operations.<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<h4 dir=\"ltr\" style=\"line-height:1.38;margin-top:14pt;margin-bottom:4pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">MongoDB Experiment 2: Update to lower value<\/span><\/span><\/h4>\n<p>\n<span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Let\u2019s do the reverse operation to update the data from \u2018zzzzzz\u2019 to \u2018aaaaaa\u2019. \u00a0In this case, the index entries are moving from a higher value to a lower value, thus causing the scan to miss some of the qualified documents, shown to be undercounting.<\/span><\/span><\/p>\n<\/div>\n<p style=\"color: rgb(51, 51, 51); line-height: 20.8px; text-align: left;\">\u200b<\/p>\n<p style=\"color: rgb(51, 51, 51); line-height: 20.8px; text-align: left;\">\u00a0<\/p>\n<div dir=\"ltr\" style=\"margin-left:0pt;\">\n<table style=\"border: none;\">\n<tbody>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Time <\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Session 1: Issue Update Statement2<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">(update state = \u201caaaaaa\u201d)<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Session 2: Issue Count Statement continuously.<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T0<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement starts <\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#b6d7a8;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Count = 299890<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T1<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#ffd966;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Count = 299728<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T2<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#ffd966;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Count = 299750<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T3<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#ffd966;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Count = 299780<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T4<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#ffd966;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Count = 299761<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T4<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#ffd966;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Count = 299777<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T4<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#ffd966;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Count = 299815<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T4<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Done<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#b6d7a8;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Count = 299890<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\n\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Result: In this scenario, the index misses many documents and reports fewer documents than it actually has.<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Cause: \u00a0This exposes the reverse effect. When the keys with values zzzzzz is modified to aaaaaa, items go from the higher to the lower end of the B-Tree. Again, since there is no stability in scans, it would miss the keys that moved from the higher end to the lower end.<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<h4 dir=\"ltr\" style=\"line-height:1.38;margin-top:14pt;margin-bottom:4pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">MongoDB Experiment 3: Concurrent UPDATES <\/span><\/span><\/h4>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Two sessions update the indexed field concurrently and continuously. \u00a0In this case, based on the \u00a0the prior observations, each of the sessions run into both overcount and undercount issue. The nModified result varies because MongoDB reports only updates that changed the value. <\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">But the total number of modified documents is never more than 299980. So, MongoDB does avoid updating the same document twice, thus handling the <\/span><a href=\"https:\/\/en.wikipedia.org\/wiki\/Halloween_Problem\" style=\"text-decoration:none;\"><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(17, 85, 204); text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">classic halloween problem<\/span><\/a><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">. \u00a0Because they don\u2019t have a stable scan, I presume they handle this by maintaining lists of objectIDs updated during this multi-update statement and avoiding the update if the same object comes up as a qualified document.<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); font-weight: 700; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">SESSION 1<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> \u00a0db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;aaaaaa&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 299890, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 299890 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;zzzzzz&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 303648, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 12026 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;aaaaaa&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : <\/span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">194732<\/span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 138784 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;zzzzzz&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : <\/span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">334134<\/span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 153625 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;aaaaaa&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 184379, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 146318 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;zzzzzz&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 335613, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 153403 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;aaaaaa&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 183559, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 146026 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;zzzzzz&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : <\/span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">335238<\/span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 149337 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;aaaaaa&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 187815, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 150696 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;zzzzzz&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 335394, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 154057 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;aaaaaa&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 188774, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 153279 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;zzzzzz&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 334408, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 155970 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;zzzzzz&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 299890, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 0 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> <\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Arial; color: rgb(0, 0, 0); font-weight: 700; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">SESSION 2:<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;zzzzzz&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 302715, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 287864 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;aaaaaa&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : <\/span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">195248<\/span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 161106 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;zzzzzz&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 335526, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 146265 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;aaaaaa&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 190448, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 153572 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;zzzzzz&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : <\/span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">336734<\/span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 146487 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;aaaaaa&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 189321, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 153864 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;zzzzzz&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 334793, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 150553 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;aaaaaa&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 186274, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 149194 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;zzzzzz&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 336576, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 145833 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;aaaaaa&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 183635, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 146611 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> db.ORDER_LINE.update({state:{$gt:&#8221;&#8221;}}, {$set: {state:&#8221;zzzzzz&#8221;}}, {multi:true});<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WriteResult({ &#8220;nMatched&#8221; : 336904, &#8220;nUpserted&#8221; : 0, &#8220;nModified&#8221; : 143920 })<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 13.3333px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> <\/span><\/span><\/p>\n<h3 dir=\"ltr\" style=\"line-height:1.38;margin-top:16pt;margin-bottom:4pt;\"><span><span style=\"font-size: 18.6667px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Couchbase Testing<\/span><\/span><\/h3>\n<p>\u00a0<\/p>\n<ol style=\"margin-top:0pt;margin-bottom:0pt;\">\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Install Couchbase 4.5.<\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<ol start=\"2\" style=\"margin-top:0pt;margin-bottom:0pt;\">\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Load data using tpcc.py<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">python tpcc.py &#8211;warehouses 1 &#8211;no-execute n1ql<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Get the count<\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left: 36pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> SELECT COUNT(*) FROM ORDER_LINE;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;margin-left: 36pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0 \u00a0<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<ol start=\"5\" style=\"margin-top:0pt;margin-bottom:0pt;\">\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">CREATE INDEX i1 ON ORDER_LINE(state);<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">UPDATE ORDER_LINE SET state = \u2018aaaaaa\u2019;<\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<p>\u00a0<\/p>\n<h4 dir=\"ltr\" style=\"line-height:1.38;margin-top:14pt;margin-bottom:4pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Couchbase Experiment 1: Update to higher value<\/span><\/span><\/h4>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Do the initial setup.<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> UPDATE ORDER_LINE SET state = \u2018aaaaaa\u2019 WHERE OL_DIST_INFO > \u201c\u201d;<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Verify the Count. \u00a0state field(attribute) with values \u201caaaaaa\u201d is 300023.<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">> select count(1) a_cnt FROM ORDER_LINE where state = \u00a0&apos;aaaaaa&apos; <\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0UNION ALL <\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0select count(1) z_cnt FROM ORDER_LINE where state = \u00a0&apos;zzzzzz&apos;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0&#8220;results&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;a_cnt&#8221;: 300023<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0},<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;z_cnt&#8221;: 0<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0],<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Let\u2019s ensure the index scan happens on the query. \u00a0<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">EXPLAIN SELECT COUNT(1) AS totalcnt <\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">FROM ORDER_LINE <\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">WHERE state = &apos;aaaaaa&apos; or state = &apos;zzzzzz&apos;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;~children&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;#operator&#8221;: &#8220;DistinctScan&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;scan&#8221;: {<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;#operator&#8221;: &#8220;IndexScan&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;covers&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;cover ((`ORDER_LINE`.`state`))&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;cover ((meta(`ORDER_LINE`).`id`))&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0],<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;index&#8221;: &#8220;i2&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;index_id&#8221;: &#8220;665b11a6c36d4136&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;keyspace&#8221;: &#8220;ORDER_LINE&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;namespace&#8221;: &#8220;default&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;spans&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;Range&#8221;: {<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;High&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;&#8221;aaaaaa&#8221;&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0],<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;Inclusion&#8221;: 3,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;Low&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;&#8221;aaaaaa&#8221;&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0]<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0},<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;Range&#8221;: {<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;High&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;&#8221;zzzzzz&#8221;&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0],<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;Inclusion&#8221;: 3,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;Low&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;&#8221;zzzzzz&#8221;&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0]<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0],<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;using&#8221;: &#8220;gsi&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0},<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">We can also use UNION ALL of two separate predicates (state = \u2018aaaaaa\u2019) and (state = \u2018zzzzzz\u2019) to have the index count efficiently. \u00a0<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">cbq> explain select count(1) a_cnt <\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">FROM ORDER_LINE <\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">where state = \u00a0&apos;aaaaaa&apos; <\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">UNION ALL <\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">select count(1) z_cnt <\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">FROM ORDER_LINE <\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">where state = \u00a0&apos;zzzzzz&apos;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0&#8220;requestID&#8221;: &#8220;ef99e374-48f5-435c-8d54-63d1acb9ad22&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0&#8220;signature&#8221;: &#8220;json&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0&#8220;results&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;plan&#8221;: {<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;#operator&#8221;: &#8220;UnionAll&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;children&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;#operator&#8221;: &#8220;Sequence&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;~children&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;#operator&#8221;: &#8220;IndexCountScan&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;covers&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;cover ((`ORDER_LINE`.`state`))&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;cover ((meta(`ORDER_LINE`).`id`))&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0],<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;index&#8221;: &#8220;i2&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;index_id&#8221;: &#8220;665b11a6c36d4136&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;keyspace&#8221;: &#8220;ORDER_LINE&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;namespace&#8221;: &#8220;default&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;spans&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;Range&#8221;: {<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;High&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;&#8221;aaaaaa&#8221;&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0],<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;Inclusion&#8221;: 3,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;Low&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;&#8221;aaaaaa&#8221;&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0]<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0],<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;using&#8221;: &#8220;gsi&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0},<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;#operator&#8221;: &#8220;IndexCountProject&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;result_terms&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;as&#8221;: &#8220;a_cnt&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;expr&#8221;: &#8220;count(1)&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0]<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0]<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0},<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;#operator&#8221;: &#8220;Sequence&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;~children&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;#operator&#8221;: &#8220;IndexCountScan&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;covers&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;cover ((`ORDER_LINE`.`state`))&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;cover ((meta(`ORDER_LINE`).`id`))&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0],<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;index&#8221;: &#8220;i2&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;index_id&#8221;: &#8220;665b11a6c36d4136&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;keyspace&#8221;: &#8220;ORDER_LINE&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;namespace&#8221;: &#8220;default&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;spans&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;Range&#8221;: {<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;High&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;&#8221;zzzzzz&#8221;&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0],<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;Inclusion&#8221;: 3,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;Low&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;&#8221;zzzzzz&#8221;&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0]<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0],<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;using&#8221;: &#8220;gsi&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0},<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;#operator&#8221;: &#8220;IndexCountProject&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;result_terms&#8221;: [<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;as&#8221;: &#8220;z_cnt&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;expr&#8221;: &#8220;count(1)&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0]<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0]<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0]<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0},<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;text&#8221;: &#8220;select count(1) a_cnt FROM ORDER_LINE where state = \u00a0&apos;aaaaaa&apos; UNION ALL select count(1) z_cnt FROM ORDER_LINE where state = \u00a0&apos;zzzzzz&apos;&#8221;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0],<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0&#8220;status&#8221;: &#8220;success&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0&#8220;metrics&#8221;: {<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;elapsedTime&#8221;: &#8220;2.62144ms&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;executionTime&#8221;: &#8220;2.597189ms&#8221;,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;resultCount&#8221;: 1,<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8220;resultSize&#8221;: 3902<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">\u00a0\u00a0\u00a0}<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">}<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Setup the state field with the value aaaaaa. Then update this value to zzzzzz and concurrently query for total number of documents with the either of the two values.<\/span><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Session 1: Update state field to value zzzzzz<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">UPDATE ORDER_LINE SET state = \u2018zzzzzz\u2019 WHERE OL_DIST_INFO > \u201c\u201d;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\"> \u00a0\u00a0\u00a0&#8220;mutationCount&#8221;: 300023<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\"> }<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Session 2: query the count of \u2018aaaaaa\u2019 and \u2018zzzzzz\u2019 from ORDER_LINE.<\/span><\/span><\/p>\n<p>\n\u00a0<\/p>\n<div dir=\"ltr\" style=\"margin-left:0pt;\">\n<table style=\"border: none;\">\n<tbody>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Time <\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Session 1: Issue Update Statement1<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">(update state = \u201czzzzzz\u201d)<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">a_cnt<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">z_cnt<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Total<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T0<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement starts <\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#b6d7a8;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#b6d7a8;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">0<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#b6d7a8;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T1<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">288480<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">11543<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T2<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">259157<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">40866<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T3<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">197167<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">102856<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T4<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">165449<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">134574<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T5<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">135765<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">164258<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T6<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">86584<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">213439<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T7<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Done<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#b6d7a8;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">0<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#b6d7a8;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#b6d7a8;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\n\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Result: \u00a0Index updates happen as the data gets updated. \u00a0As the values migrate from \u2018aaaaaa\u2019 to \u2018zzzzzz\u2019, they\u2019re not double counted. \u00a0<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Couchbase indexes provide stable scans by snapshotting the index at regular frequency. While this is a considerable engineering effort, as we\u2019ve seen from this issue, it provides stability of answers even under extreme concurrency situations. <\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">The data that index scan retrieves will be from the point scan starts. \u00a0Subsequent updates coming in concurrently, will not be returned. \u00a0This provides another level of stability as well.<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">It\u2019s important to note that stability of scans is provided for each index scan. Indices take snapshots every 200 milliseconds. \u00a0When you have a long running query with multiple index scans on the same or multiple indices, the query could use multiple snapshots. So, different index scans in a long running query will each return different results. \u00a0This is an use case we\u2019ll be improving in a future release to use same snapshot across scans of a single query.<\/span><\/span><\/p>\n<h4 dir=\"ltr\" style=\"line-height:1.38;margin-top:14pt;margin-bottom:4pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Couchbase Experiment 2: Update to lower value<\/span><\/span><\/h4>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Let\u2019s do the reverse operation to update the data from \u2018zzzzzz\u2019 back to \u2018aaaaaa\u2019.<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Session 1: Update state field to value aaaaaa<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">UPDATE ORDER_LINE SET state = \u2018aaaaaa\u2019 WHERE OL_DIST_INFO > \u201c\u201d;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{ <\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">&#8220;mutationCount&#8221;: 300023<\/span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\"> }<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Session 2: query the count of \u2018aaaaaa\u2019 and \u2018zzzzzz\u2019 from ORDER_LINE.<\/span><\/span><\/p>\n<p>\n\u00a0<\/p>\n<div dir=\"ltr\" style=\"margin-left:0pt;\">\n<table style=\"border: none;\">\n<tbody>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Time <\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Session 1: Issue Update Statement1<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">(update state = \u201caaaaaa\u201d)<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">a_cnt<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">z_cnt<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Total<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T0<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement starts <\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#b6d7a8;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">0<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#b6d7a8;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#b6d7a8;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T1<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">28486<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">271537<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T2<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">87919<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">212104<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T3<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">150630<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">149393<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T4<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">272358<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">27665<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T5<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Continues<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">299737<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">286<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#d9ead3;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height:0px\">\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">T6<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Update Statement Done<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#b6d7a8;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">0<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#b6d7a8;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<td style=\"border-left:solid #000000 1px;border-right:solid #000000 1px;border-bottom:solid #000000 1px;border-top:solid #000000 1px;vertical-align:top;background-color:#b6d7a8;padding:7px 7px 7px 7px\">\n<p dir=\"ltr\" style=\"line-height:1.2;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">300023<\/span><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u00a0<\/p>\n<h4 dir=\"ltr\" style=\"line-height:1.38;margin-top:14pt;margin-bottom:4pt;\"><span><span style=\"font-size: 16px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Couchbase Experiment 3:Concurrent UPDATES<\/span><\/span><\/h4>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Two sessions update the indexed field concurrently and continuously. The stable scans of the index alway returns the full list of qualified documents: 30023 and Couchbase updates all of the documents and reports the mutation count as 30023. \u00a0An update is an update regardless of whether the old value is the same as the new value or not.<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); font-weight: 700; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Session 1:<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">update ORDER_LINE set state = &apos;aaaaaa&apos; where state > &#8220;&#8221;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{ \u00a0\u00a0\u00a0\u00a0&#8220;mutationCount&#8221;: 300023 }<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">update ORDER_LINE set state = \u00a0\u2018zzzzzz&apos;where state > &#8220;&#8221;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{ \u00a0\u00a0\u00a0\u00a0&#8220;mutationCount&#8221;: 300023 }<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">update ORDER_LINE set state = &apos;aaaaaa&apos; where state > &#8220;&#8221;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{ \u00a0\u00a0\u00a0\u00a0&#8220;mutationCount&#8221;: 300023 }<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">update ORDER_LINE set state = \u00a0\u2018zzzzzz&apos;where state > &#8220;&#8221;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{ \u00a0\u00a0\u00a0\u00a0&#8220;mutationCount&#8221;: 300023 }<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">update ORDER_LINE set state = &apos;aaaaaa&apos; where state > &#8220;&#8221;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{ \u00a0\u00a0\u00a0\u00a0&#8220;mutationCount&#8221;: 300023 }<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">update ORDER_LINE set state = \u00a0\u2018zzzzzz&apos;where state > &#8220;&#8221;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{ \u00a0\u00a0\u00a0\u00a0&#8220;mutationCount&#8221;: 300023 }<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">update ORDER_LINE set state = &apos;aaaaaa&apos; where state > &#8220;&#8221;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{ \u00a0\u00a0\u00a0\u00a0&#8220;mutationCount&#8221;: 300023 }<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">update ORDER_LINE set state = \u00a0\u2018zzzzzz&apos;where state > &#8220;&#8221;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{ \u00a0\u00a0\u00a0\u00a0&#8220;mutationCount&#8221;: 300023 }<\/span><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); font-weight: 700; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Session 2: <\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">update ORDER_LINE set state = \u00a0\u2018zzzzzz&apos;where state > &#8220;&#8221;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{ \u00a0\u00a0\u00a0\u00a0&#8220;mutationCount&#8221;: 300023 }<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">update ORDER_LINE set state = &apos;aaaaaa&apos; where state > &#8220;&#8221;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{ \u00a0\u00a0\u00a0\u00a0&#8220;mutationCount&#8221;: 300023 }<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">update ORDER_LINE set state = \u00a0\u2018zzzzzz&apos;where state > &#8220;&#8221;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{ \u00a0\u00a0\u00a0\u00a0&#8220;mutationCount&#8221;: 300023 }<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">update ORDER_LINE set state = &apos;aaaaaa&apos; where state > &#8220;&#8221;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{ \u00a0\u00a0\u00a0\u00a0&#8220;mutationCount&#8221;: 300023 }<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">update ORDER_LINE set state = \u00a0\u2018zzzzzz&apos;where state > &#8220;&#8221;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{ \u00a0\u00a0\u00a0\u00a0&#8220;mutationCount&#8221;: 300023 }<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">update ORDER_LINE set state = &apos;aaaaaa&apos; where state > &#8220;&#8221;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{ \u00a0\u00a0\u00a0\u00a0&#8220;mutationCount&#8221;: 300023 }<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">update ORDER_LINE set state = \u00a0\u2018zzzzzz&apos;where state > &#8220;&#8221;;<\/span><\/span><\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">{ \u00a0\u00a0\u00a0\u00a0&#8220;mutationCount&#8221;: 300023 }<\/span><\/span><\/p>\n<p><span><span style=\"font-size: 18.6667px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Conclusions<\/span><\/span><\/p>\n<p>\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><strong><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">MongoDB:<\/span><\/span><\/strong><\/p>\n<ol style=\"margin-top:0pt;margin-bottom:0pt;\">\n<li dir=\"ltr\" style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">MongoDB queries will miss documents if there are concurrent updates that move the data from one portion of the index to another portion of the index (higher to lower).<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">MongoDB queries will return the same document multiple times if there are concurrent updates that move the data from one portion of the index to another portion of the index (lower to higher).<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Concurrent multi updates on MongoDB will run into the same issue and will miss updating all the required documents, but they do avoid updating the same document twice in a single statement.<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">When developing applications that use MongoDB, you must design a data model so you select and update only one document for each query. Avoid multi-document queries in MongoDB since it will return incorrect results when there are concurrent updates.<\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<p>\n\u00a0<\/p>\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><strong><span><span style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Couchbase:<\/span><\/span><\/strong><\/p>\n<p>\u00a0<\/p>\n<ol style=\"margin-top:0pt;margin-bottom:0pt;\">\n<li dir=\"ltr\" style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Couchbase returns the expected number of qualifying documents even when there are concurrent updates. \u00a0\u00a0Stable index scans in Couchbase provide the protection to the application that MongoDB does not.<\/span><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Concurrent updates benefit from stable index scans and process all of the qualified documents when the application statement is issued.<\/span><\/span><\/p>\n<\/li>\n<\/ol>\n<h3 dir=\"ltr\" style=\"margin-top: 16pt; margin-bottom: 4pt; line-height: 1.38; color: rgb(51, 51, 51); text-align: left;\"><span style=\"font-size: 18.6667px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Acknowledgements<\/span><\/h3>\n<p dir=\"ltr\"><span style=\"color: rgb(0, 0, 0); font-family: Consolas; font-size: 14.6667px; line-height: 20.24px; text-align: left; white-space: pre-wrap;\">Thanks to Sriram Melkote and Deepkaran Salooja from Couchbase Indexing team for their review and valuable input to the effort. <\/span><\/p>\n<h3 dir=\"ltr\" style=\"line-height:1.38;margin-top:16pt;margin-bottom:4pt;\"><span><span style=\"font-size: 18.6667px; font-family: Consolas; color: rgb(0, 0, 255); vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">References<\/span><\/span><\/h3>\n<p>\u00a0<\/p>\n<ol style=\"margin-top:0pt;margin-bottom:0pt;\">\n<li dir=\"ltr\" style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">MongoDB Strong Consistency: <\/span><a href=\"https:\/\/www.mongodb.com\/nosql-explained\" style=\"text-decoration:none;\"><span style=\"font-size: 14.6667px; color: rgb(17, 85, 204); text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">https:\/\/www.mongodb.com\/nosql-explained<\/span><\/a><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">MongoDB Concurrency: <\/span><a href=\"https:\/\/docs.mongodb.com\/manual\/faq\/concurrency\/\" style=\"text-decoration:none;\"><span style=\"font-size: 14.6667px; color: rgb(17, 85, 204); text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">https:\/\/docs.mongodb.com\/manual\/faq\/concurrency\/<\/span><\/a><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">MongoDB queries don\u2019t always return all matching documents!: \u00a0<\/span><a href=\"https:\/\/engineering.meteor.com\/mongodb-queries-dont-always-return-all-matching-documents-654b6594a827#.s9y0yheuv\" style=\"text-decoration:none;\"><span style=\"font-size: 14.6667px; color: rgb(17, 85, 204); text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">https:\/\/engineering.meteor.com\/mongodb-queries-dont-always-return-all-matching-documents-654b6594a827#.s9y0yheuv<\/span><\/a><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">Couchbase: <\/span><a href=\"https:\/\/www.couchbase.com\" style=\"text-decoration:none;\"><span style=\"font-size: 14.6667px; color: rgb(17, 85, 204); text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">https:\/\/www.couchbase.com<\/span><\/a><\/span><\/p>\n<\/li>\n<li dir=\"ltr\" style=\"font-size: 14.6667px; font-family: Consolas; color: rgb(0, 0, 0); vertical-align: baseline; background-color: transparent;\">\n<p dir=\"ltr\" style=\"line-height:1.38;margin-top:0pt;margin-bottom:0pt;\"><span><span style=\"font-size: 14.6667px; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">N1QL: \u00a0<\/span><a href=\"https:\/\/query.couchbase.com\" style=\"text-decoration:none;\"><span style=\"font-size: 14.6667px; color: rgb(17, 85, 204); text-decoration: underline; vertical-align: baseline; white-space: pre-wrap; background-color: transparent;\">https:\/\/query.couchbase.com<\/span><\/a><\/span><\/p>\n<\/li>\n<\/ol>\n<p>\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Multi-User Testing \u00a0 David Glasser of Meteor wrote a blog on an MongoDB query missing matching documents issue he ran into. \u00a0It is straightforward to reproduce the issue on both MongoDB MMAPv1 and MongoDB WiredTiger engine. Here are his conclusions [&hellip;]<\/p>\n","protected":false},"author":55,"featured_media":13873,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[9417,1812],"tags":[1706,1313,1309],"ppma_author":[8929],"class_list":["post-2359","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-performance","category-n1ql-query","tag-concurrency","tag-consistency","tag-mongodb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.3 (Yoast SEO v27.3) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Concurrency Behavior: MongoDB vs. Couchbase - The Couchbase Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/pt\/testing-mongodb-and-couchbase-concurrent-query\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Concurrency Behavior: MongoDB vs. Couchbase\" \/>\n<meta property=\"og:description\" content=\"Multi-User Testing \u00a0 David Glasser of Meteor wrote a blog on an MongoDB query missing matching documents issue he ran into. \u00a0It is straightforward to reproduce the issue on both MongoDB MMAPv1 and MongoDB WiredTiger engine. Here are his conclusions [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/pt\/testing-mongodb-and-couchbase-concurrent-query\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-30T23:26:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-06-14T03:20:29+00:00\" \/>\n<meta name=\"author\" content=\"Keshav Murthy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rkeshavmurthy\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Keshav Murthy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"13 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/testing-mongodb-and-couchbase-concurrent-query\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/testing-mongodb-and-couchbase-concurrent-query\\\/\"},\"author\":{\"name\":\"Keshav Murthy\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/person\\\/c261644262bf98e146372fe647682636\"},\"headline\":\"Concurrency Behavior: MongoDB vs. Couchbase\",\"datePublished\":\"2016-11-30T23:26:22+00:00\",\"dateModified\":\"2025-06-14T03:20:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/testing-mongodb-and-couchbase-concurrent-query\\\/\"},\"wordCount\":2512,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/testing-mongodb-and-couchbase-concurrent-query\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/1\\\/2022\\\/11\\\/couchbase-nosql-dbaas.png\",\"keywords\":[\"Concurrency\",\"Consistency\",\"mongodb\"],\"articleSection\":[\"High Performance\",\"SQL++ \\\/ N1QL Query\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/testing-mongodb-and-couchbase-concurrent-query\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/testing-mongodb-and-couchbase-concurrent-query\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/testing-mongodb-and-couchbase-concurrent-query\\\/\",\"name\":\"Concurrency Behavior: MongoDB vs. Couchbase - The Couchbase Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/testing-mongodb-and-couchbase-concurrent-query\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/testing-mongodb-and-couchbase-concurrent-query\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/1\\\/2022\\\/11\\\/couchbase-nosql-dbaas.png\",\"datePublished\":\"2016-11-30T23:26:22+00:00\",\"dateModified\":\"2025-06-14T03:20:29+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/testing-mongodb-and-couchbase-concurrent-query\\\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/testing-mongodb-and-couchbase-concurrent-query\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/testing-mongodb-and-couchbase-concurrent-query\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/1\\\/2022\\\/11\\\/couchbase-nosql-dbaas.png\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/sites\\\/1\\\/2022\\\/11\\\/couchbase-nosql-dbaas.png\",\"width\":1800,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/testing-mongodb-and-couchbase-concurrent-query\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Concurrency Behavior: MongoDB vs. Couchbase\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/admin-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/04\\\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/#\\\/schema\\\/person\\\/c261644262bf98e146372fe647682636\",\"name\":\"Keshav Murthy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g4e51d72fc07c662aa791316deafffac4\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g\",\"caption\":\"Keshav Murthy\"},\"description\":\"Keshav Murthy is a Vice President at Couchbase R&amp;D. Previously, he was at MapR, IBM, Informix, Sybase, with more than 20 years of experience in database design &amp; development. He lead the SQL and NoSQL R&amp;D team at IBM Informix. He has received two President's Club awards at Couchbase, two Outstanding Technical Achievement Awards at IBM. Keshav has a bachelor's degree in Computer Science and Engineering from the University of Mysore, India, and has received twenty four US patents.\",\"sameAs\":[\"https:\\\/\\\/blog.planetnosql.com\\\/\",\"https:\\\/\\\/x.com\\\/rkeshavmurthy\"],\"url\":\"https:\\\/\\\/www.couchbase.com\\\/blog\\\/pt\\\/author\\\/keshav-murthy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Concurrency Behavior: MongoDB vs. Couchbase - The Couchbase Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/pt\/testing-mongodb-and-couchbase-concurrent-query\/","og_locale":"pt_BR","og_type":"article","og_title":"Concurrency Behavior: MongoDB vs. Couchbase","og_description":"Multi-User Testing \u00a0 David Glasser of Meteor wrote a blog on an MongoDB query missing matching documents issue he ran into. \u00a0It is straightforward to reproduce the issue on both MongoDB MMAPv1 and MongoDB WiredTiger engine. Here are his conclusions [&hellip;]","og_url":"https:\/\/www.couchbase.com\/blog\/pt\/testing-mongodb-and-couchbase-concurrent-query\/","og_site_name":"The Couchbase Blog","article_published_time":"2016-11-30T23:26:22+00:00","article_modified_time":"2025-06-14T03:20:29+00:00","author":"Keshav Murthy","twitter_card":"summary_large_image","twitter_creator":"@rkeshavmurthy","twitter_misc":{"Written by":"Keshav Murthy","Est. reading time":"13 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/testing-mongodb-and-couchbase-concurrent-query\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/testing-mongodb-and-couchbase-concurrent-query\/"},"author":{"name":"Keshav Murthy","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/c261644262bf98e146372fe647682636"},"headline":"Concurrency Behavior: MongoDB vs. Couchbase","datePublished":"2016-11-30T23:26:22+00:00","dateModified":"2025-06-14T03:20:29+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/testing-mongodb-and-couchbase-concurrent-query\/"},"wordCount":2512,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/testing-mongodb-and-couchbase-concurrent-query\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","keywords":["Concurrency","Consistency","mongodb"],"articleSection":["High Performance","SQL++ \/ N1QL Query"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/testing-mongodb-and-couchbase-concurrent-query\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/testing-mongodb-and-couchbase-concurrent-query\/","url":"https:\/\/www.couchbase.com\/blog\/testing-mongodb-and-couchbase-concurrent-query\/","name":"Concurrency Behavior: MongoDB vs. Couchbase - The Couchbase Blog","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/testing-mongodb-and-couchbase-concurrent-query\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/testing-mongodb-and-couchbase-concurrent-query\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","datePublished":"2016-11-30T23:26:22+00:00","dateModified":"2025-06-14T03:20:29+00:00","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/testing-mongodb-and-couchbase-concurrent-query\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/testing-mongodb-and-couchbase-concurrent-query\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/testing-mongodb-and-couchbase-concurrent-query\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/11\/couchbase-nosql-dbaas.png","width":1800,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/testing-mongodb-and-couchbase-concurrent-query\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Concurrency Behavior: MongoDB vs. Couchbase"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"Blog do Couchbase","description":"Couchbase, o banco de dados NoSQL","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"Blog do Couchbase","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/c261644262bf98e146372fe647682636","name":"Keshav Murthy","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/secure.gravatar.com\/avatar\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g4e51d72fc07c662aa791316deafffac4","url":"https:\/\/secure.gravatar.com\/avatar\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g","caption":"Keshav Murthy"},"description":"Keshav Murthy is a Vice President at Couchbase R&amp;D. Previously, he was at MapR, IBM, Informix, Sybase, with more than 20 years of experience in database design &amp; development. He lead the SQL and NoSQL R&amp;D team at IBM Informix. He has received two President's Club awards at Couchbase, two Outstanding Technical Achievement Awards at IBM. Keshav has a bachelor's degree in Computer Science and Engineering from the University of Mysore, India, and has received twenty four US patents.","sameAs":["https:\/\/blog.planetnosql.com\/","https:\/\/x.com\/rkeshavmurthy"],"url":"https:\/\/www.couchbase.com\/blog\/pt\/author\/keshav-murthy\/"}]}},"acf":[],"authors":[{"term_id":8929,"user_id":55,"is_guest":0,"slug":"keshav-murthy","display_name":"Keshav Murthy","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/af74df754db27152971d0aed2f323ead5a1f9fe5afd0209af91e12e784451224?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts\/2359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/users\/55"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/comments?post=2359"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts\/2359\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/media\/13873"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/media?parent=2359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/categories?post=2359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/tags?post=2359"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/ppma_author?post=2359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}