<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/couchdb.git/src/mango/test/15-execution-stats-test.py, branch decrease-indexer-transaction-time-limit</title>
<subtitle>github.com: apache/couchdb.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/'/>
<entry>
<title>update mango tests to work with Mango on FDB</title>
<updated>2020-04-06T15:55:49+00:00</updated>
<author>
<name>Garren Smith</name>
<email>garren.smith@gmail.com</email>
</author>
<published>2020-03-31T09:39:58+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=29ef7fb37007821edd8a0673226090cd47d48bab'/>
<id>29ef7fb37007821edd8a0673226090cd47d48bab</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Python black cleanups (#2477)</title>
<updated>2020-01-21T21:11:30+00:00</updated>
<author>
<name>Joan Touzet</name>
<email>wohali@users.noreply.github.com</email>
</author>
<published>2020-01-21T21:11:30+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=3c2eccc176e64812ab7b09c4a39c12b50aeac141'/>
<id>3c2eccc176e64812ab7b09c4a39c12b50aeac141</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix missing mango execution stats (part 2)</title>
<updated>2020-01-08T19:28:05+00:00</updated>
<author>
<name>Will Holley</name>
<email>willholley@gmail.com</email>
</author>
<published>2020-01-07T13:40:32+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=55ef9f11ecacd5e78aff176b357fe8e7b3b619df'/>
<id>55ef9f11ecacd5e78aff176b357fe8e7b3b619df</id>
<content type='text'>
The previous implementation of Mango execution stats relied on
passing the docs_examined count from each shard to the coordinator
in the view_row record. This failed to collect the count of
documents read which weren't followed by a match (in a given shard).
For example, if an index was scanned but no documents were matched,
the docs_examined would be 0, when it should be equal to the number
of documents in the index.

This commit changes the implementation so that docs examined is passed
only when each shard has completed its index scan.

The work is split into 2 commits to support mixed-version cluster
upgrades - the previous commit adds the message handlers only
so can be safely rolled out without breaking in-flight requests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The previous implementation of Mango execution stats relied on
passing the docs_examined count from each shard to the coordinator
in the view_row record. This failed to collect the count of
documents read which weren't followed by a match (in a given shard).
For example, if an index was scanned but no documents were matched,
the docs_examined would be 0, when it should be equal to the number
of documents in the index.

This commit changes the implementation so that docs examined is passed
only when each shard has completed its index scan.

The work is split into 2 commits to support mixed-version cluster
upgrades - the previous commit adds the message handlers only
so can be safely rolled out without breaking in-flight requests.
</pre>
</div>
</content>
</entry>
<entry>
<title>Format and check all code using python black (#1776)</title>
<updated>2018-12-06T23:03:57+00:00</updated>
<author>
<name>Joan Touzet</name>
<email>wohali@users.noreply.github.com</email>
</author>
<published>2018-12-06T23:03:57+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=33d4f6d02715a204ef2dd7ddc4795aed5c1b72ce'/>
<id>33d4f6d02715a204ef2dd7ddc4795aed5c1b72ce</id>
<content type='text'>
The Makefile target builds a python3 venv at .venv and installs
black if possible. Since black is Python 3.6 and up only, we
skip the check on systems with an older Python 3.x.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The Makefile target builds a python3 venv at .venv and installs
black if possible. Since black is Python 3.6 and up only, we
skip the check on systems with an older Python 3.x.</pre>
</div>
</content>
</entry>
<entry>
<title>Mango test suite Windows fixes, closes #1732</title>
<updated>2018-11-13T21:42:23+00:00</updated>
<author>
<name>Joan Touzet</name>
<email>wohali@apache.org</email>
</author>
<published>2018-11-13T21:42:23+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=375853cca38d127260f62127c15eb985c903d500'/>
<id>375853cca38d127260f62127c15eb985c903d500</id>
<content type='text'>
Unfortuantely, os:timestamp() on Windows only has millisecond
accuracy. That means that the two Mango tests checking for a positive
value of execution_time fail, since these tests appear to be running
in &lt;1ms on my test setup (a rather anemic Windows VM!)

This change disables only the check for execution_time in two tests,
and leaves the remainder of the execution_stats checks in place
on Windows.

It also introduces a convenience "make.cmd" file so you can
"make check" without typing "make -f Makefile.win check" all the time.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Unfortuantely, os:timestamp() on Windows only has millisecond
accuracy. That means that the two Mango tests checking for a positive
value of execution_time fail, since these tests appear to be running
in &lt;1ms on my test setup (a rather anemic Windows VM!)

This change disables only the check for execution_time in two tests,
and leaves the remainder of the execution_stats checks in place
on Windows.

It also introduces a convenience "make.cmd" file so you can
"make check" without typing "make -f Makefile.win check" all the time.
</pre>
</div>
</content>
</entry>
<entry>
<title>Correct result count in Mango execution stats (#867)</title>
<updated>2017-10-05T14:27:02+00:00</updated>
<author>
<name>Will Holley</name>
<email>willholley@gmail.com</email>
</author>
<published>2017-10-05T14:27:02+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=4963f66653e29d913eba4811b1b88d931877193f'/>
<id>4963f66653e29d913eba4811b1b88d931877193f</id>
<content type='text'>
Mango execution stats previously incremented the result count
at a point where the final result might be discarded. Instead,
increment the count when we know the result is being included
in the response.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Mango execution stats previously incremented the result count
at a point where the final result might be discarded. Instead,
increment the count when we know the result is being included
in the response.</pre>
</div>
</content>
</entry>
<entry>
<title>basic execution statistics for _find (#768)</title>
<updated>2017-08-30T09:51:06+00:00</updated>
<author>
<name>Will Holley</name>
<email>willholley@gmail.com</email>
</author>
<published>2017-08-30T09:51:06+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=af839e101a25cb8abc98b2571ef5344a47df470a'/>
<id>af839e101a25cb8abc98b2571ef5344a47df470a</id>
<content type='text'>
Accept an "execution_stats" parameter to _find. If present, return
a new "execution_stats" object in the response which contains
information about the query executed. Currently, this is only
implemented for json/all_docs indexes and contains:
 - total keys examined (currently always 0 for json indexes)
 - total documents examined (when include_docs=true used)
 - total quorum documents examined (when fabric doc lookups used)


</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Accept an "execution_stats" parameter to _find. If present, return
a new "execution_stats" object in the response which contains
information about the query executed. Currently, this is only
implemented for json/all_docs indexes and contains:
 - total keys examined (currently always 0 for json indexes)
 - total documents examined (when include_docs=true used)
 - total quorum documents examined (when fabric doc lookups used)


</pre>
</div>
</content>
</entry>
</feed>
