<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/couchdb.git/rel/overlay, 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>Decrease the view indexer transaction time</title>
<updated>2021-03-22T15:44:55+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2021-03-22T05:22:18+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=aa800e2d00eb9565d59396c1ae8c482d609ec872'/>
<id>aa800e2d00eb9565d59396c1ae8c482d609ec872</id>
<content type='text'>
The indexer transaction time is decreased in order to allow enough
time for the client to re-use the same GRV to emit doc bodies.

This PR goes along with [1], where emitted doc bodies in a view
responses now come from the same database read version as the one used
by the indexer. Since the batcher previously used 4.5 seconds as the
maximum, that left little time to read any doc bodies.

[1]: https://github.com/apache/couchdb/pull/3391

Issue: https://github.com/apache/couchdb/issues/3381
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The indexer transaction time is decreased in order to allow enough
time for the client to re-use the same GRV to emit doc bodies.

This PR goes along with [1], where emitted doc bodies in a view
responses now come from the same database read version as the one used
by the indexer. Since the batcher previously used 4.5 seconds as the
maximum, that left little time to read any doc bodies.

[1]: https://github.com/apache/couchdb/pull/3391

Issue: https://github.com/apache/couchdb/issues/3381
</pre>
</div>
</content>
</entry>
<entry>
<title>Lower the view indexer transaction retry limit</title>
<updated>2021-03-04T17:28:17+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2021-03-03T19:59:37+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=fdd53774bd802fe9e6b6eb473ae5b40c7436137c'/>
<id>fdd53774bd802fe9e6b6eb473ae5b40c7436137c</id>
<content type='text'>
Previously, the view indexer used the default retry limit (100) from the
`fdb_tx_options` config section. However, since the batching algorithm relies
on sensing errors and reacting to them, retrying the batch 100 times before
erroring out was not optimal. So value is lowered down to 5 and it's also made
configurable.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, the view indexer used the default retry limit (100) from the
`fdb_tx_options` config section. However, since the batching algorithm relies
on sensing errors and reacting to them, retrying the batch 100 times before
erroring out was not optimal. So value is lowered down to 5 and it's also made
configurable.
</pre>
</div>
</content>
</entry>
<entry>
<title>Allow for disabling custom reduce functions</title>
<updated>2020-10-20T20:39:11+00:00</updated>
<author>
<name>Paul J. Davis</name>
<email>paul.joseph.davis@gmail.com</email>
</author>
<published>2020-10-12T19:08:01+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=bfda16348f5c61e274ad5087e4a6407fa8306e0d'/>
<id>bfda16348f5c61e274ad5087e4a6407fa8306e0d</id>
<content type='text'>
This changes allows administators to disable custom JavaScript reduce
functions. Custom reduce functions are notoriously difficult to write
correctly and most of the time when written correctly would be more
efficiently done using an builtin reduce.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This changes allows administators to disable custom JavaScript reduce
functions. Custom reduce functions are notoriously difficult to write
correctly and most of the time when written correctly would be more
efficiently done using an builtin reduce.
</pre>
</div>
</content>
</entry>
<entry>
<title>simplify max_document_size comment</title>
<updated>2020-10-06T14:23:58+00:00</updated>
<author>
<name>Robert Newson</name>
<email>rnewson@apache.org</email>
</author>
<published>2020-10-06T14:18:31+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=990a3bd7240971cc0274b26fa496b88fd6c66f44'/>
<id>990a3bd7240971cc0274b26fa496b88fd6c66f44</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Views on ebtree</title>
<updated>2020-09-30T15:08:44+00:00</updated>
<author>
<name>Paul J. Davis</name>
<email>paul.joseph.davis@gmail.com</email>
</author>
<published>2020-07-24T15:59:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=b91f193563c9b3dadd4f8de4c49de9cbf4304837'/>
<id>b91f193563c9b3dadd4f8de4c49de9cbf4304837</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge branch master into prototype/fdb-layer</title>
<updated>2020-09-16T21:37:33+00:00</updated>
<author>
<name>Paul J. Davis</name>
<email>paul.joseph.davis@gmail.com</email>
</author>
<published>2020-09-16T21:19:57+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=ad93d1378048ab1049dcd5d6066e947afb614e67'/>
<id>ad93d1378048ab1049dcd5d6066e947afb614e67</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Update and cleanup default.ini replicator entries</title>
<updated>2020-09-15T20:13:46+00:00</updated>
<author>
<name>Nick Vatamaniuc</name>
<email>vatamane@apache.org</email>
</author>
<published>2020-08-28T08:36:05+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=b718d3380cbc8dc5799f36e19e1a94b8c2e00c2d'/>
<id>b718d3380cbc8dc5799f36e19e1a94b8c2e00c2d</id>
<content type='text'>
Update settings with defaults. Also comment out values which are already set to
default in the code.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Update settings with defaults. Also comment out values which are already set to
default in the code.
</pre>
</div>
</content>
</entry>
<entry>
<title>Optimize view indexer batch sizes</title>
<updated>2020-09-15T17:49:02+00:00</updated>
<author>
<name>Paul J. Davis</name>
<email>paul.joseph.davis@gmail.com</email>
</author>
<published>2020-09-03T17:04:56+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=a626125ad536f0a8003a50136bcbd7841264aa15'/>
<id>a626125ad536f0a8003a50136bcbd7841264aa15</id>
<content type='text'>
The couch_views_batch module is responsible for sensing the largest
batch sizes that can be successfully processed for a given indexer
process. It works by initially searching for the maximum number of
documents that can be included in a batch. Once this threshold is found
it then works by slowly increasing the batch size and decreasing when
its found again.

This approach works to maximise batch sizes while being reactive to when
a larger batch would cross over the FoundationDB transaction limits
which causes the entire batch to be aborted and retried which wastes
time during view builds.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The couch_views_batch module is responsible for sensing the largest
batch sizes that can be successfully processed for a given indexer
process. It works by initially searching for the maximum number of
documents that can be included in a batch. Once this threshold is found
it then works by slowly increasing the batch size and decreasing when
its found again.

This approach works to maximise batch sizes while being reactive to when
a larger batch would cross over the FoundationDB transaction limits
which causes the entire batch to be aborted and retried which wastes
time during view builds.
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove couch_rate</title>
<updated>2020-09-15T17:49:02+00:00</updated>
<author>
<name>Paul J. Davis</name>
<email>paul.joseph.davis@gmail.com</email>
</author>
<published>2020-09-03T18:28:19+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=15ff5802612bfd39f0cc6f4d7f0c3fd993552f7d'/>
<id>15ff5802612bfd39f0cc6f4d7f0c3fd993552f7d</id>
<content type='text'>
This implementation was difficult to understand and had behavior that
was too difficult to predict. It would break if view behavior changed in
significant ways from what was originally expected.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This implementation was difficult to understand and had behavior that
was too difficult to predict. It would break if view behavior changed in
significant ways from what was originally expected.
</pre>
</div>
</content>
</entry>
<entry>
<title>Add option to delay responses until the end</title>
<updated>2020-09-07T13:13:01+00:00</updated>
<author>
<name>Robert Newson</name>
<email>rnewson@apache.org</email>
</author>
<published>2020-09-04T11:38:11+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/couchdb.git/commit/?id=f677f1eeb02a8ccfd6f637d53c00993112aced30'/>
<id>f677f1eeb02a8ccfd6f637d53c00993112aced30</id>
<content type='text'>
When set, every response is sent once fully generated on the server
side. This increases memory usage on the nodes but simplifies error
handling for the client as it eliminates the possibility that the
response will be deliberately terminated midway through due to a
timeout.

The config value can be changed at runtime without impacting any
in-flight responses.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When set, every response is sent once fully generated on the server
side. This increases memory usage on the nodes but simplifies error
handling for the client as it eliminates the possibility that the
response will be deliberately terminated midway through due to a
timeout.

The config value can be changed at runtime without impacting any
in-flight responses.
</pre>
</div>
</content>
</entry>
</feed>
