History log of /6.0.3/couchdb/src/couch_set_view/include/ (Results 1 - 25 of 57)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
d149230218-Jul-2017 Aman Achpal <aman.achpal@couchbase.com>

MB-21156 Log improvements to couchdb log

This fix makes enhancements to mitigate the loss of important
information due to rotation of the couchdb log. This includes
moving superfluou

MB-21156 Log improvements to couchdb log

This fix makes enhancements to mitigate the loss of important
information due to rotation of the couchdb log. This includes
moving superfluous, redundant and unhelpful information to the
debug level, as well as replacing expanded lists with their
condensed form. Additionally, this improves the logging of
POST query requests by logging the ddoc and view being queried.

Change-Id: I62fea718ad24251e72746d2e4b169afbf689a8e9
Reviewed-on: http://review.couchbase.org/80987
Tested-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>

show more ...

584de8c001-Jun-2017 harsha <hhs.couchbase@gmail.com>

MB-24616 Control indexing of system _xattrs on document deletion

Indexing xattributes on document deletion has a potential problem,
that the index structure can grow out of proportions,

MB-24616 Control indexing of system _xattrs on document deletion

Indexing xattributes on document deletion has a potential problem,
that the index structure can grow out of proportions, if care is
not taken to delete them from the index structure.

Views depend on the dcp mutations to insert or delete a document
into the index structure. Dcp set triggers value insertion whereas
dcp deletion triggers value deletion from view index structure.

Since, we index xattrs on document deletion, there is no way to
delete this value from index structure, unless same document is
created and deleted without setting xattrs. In order to avoid
unscrupulous use of indexing xattrs, a new design doc level
attribute is added to enable indexing of xattrs on document deletion.
This attribute can be set using RESTful API on CAPI REST port,
and is not exposed in UI.

For example on development server where CAPI REST port is 9500,
design doc named ddoc which can index xattrs on document deletion
and smaple view called view1 is created using
curl -X PUT -H 'Content-Type: application/json'
http://Administrator:asdasd@localhost:9500/default/_design/ddoc -d
@views_def.json
where contents of views_def.json is
{
"views" : {
"view1": {
"map" : "function(doc, meta){emit(meta.id,
meta.xattrs);}"
}
},
"index_xattr_on_deleted_docs" : true
}

Change-Id: I3d977812409d6bba205431e7bc408aab4864b4e2
Reviewed-on: http://review.couchbase.org/78907
Reviewed-by: Abhishek Singh <abhishek@couchbase.com>
Tested-by: Harsha H S <hhs.couchbase@gmail.com>
Reviewed-by: Aman Kishore Achpal <aman.achpal@couchbase.com>

show more ...

Revision tags: v4.6.0, v4.5.0
6642faaf20-May-2015 Nimish Gupta <nimish@couchbase.com>

MB-14068 Remove the duplicate partitions

In this fix, we are removing the duplicate partitions to avoid
the partition version list to grow very large. Ideally there should not
be dup

MB-14068 Remove the duplicate partitions

In this fix, we are removing the duplicate partitions to avoid
the partition version list to grow very large. Ideally there should not
be duplicate partition, but we have seen duplicate partition versions
in production and we were not able to find or reproduce the issue.

Change-Id: Ic0a320a2176dccd5c1b96fdb35ff3e6f73e5ba47
Reviewed-on: http://review.couchbase.org/51278
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>

show more ...

f701b78209-Dec-2014 Volker Mische <vmx@couchbase.com>

Rename btree_op functions

The btree_op functions can also be used for the spatial views, hence
rename them to a name, not referring to "btree".

This is a pure refactoring withou

Rename btree_op functions

The btree_op functions can also be used for the spatial views, hence
rename them to a name, not referring to "btree".

This is a pure refactoring without any functional change.

Change-Id: I8e20189e2cd733711d76935f6d012c1f5908f0d8
Reviewed-on: http://review.couchbase.org/44232
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>

show more ...

708ba24326-Aug-2014 Volker Mische <vmx@couchbase.com>

MB-12048: Upgrade mapreduce headers from 2.x to 3.0

The mapreduce index header change in Couchbase 3.0 due to the introduction
of DCP. The header now also contains the partition versions

MB-12048: Upgrade mapreduce headers from 2.x to 3.0

The mapreduce index header change in Couchbase 3.0 due to the introduction
of DCP. The header now also contains the partition versions. As 2.x
headers don't have that information, `nil` is stored as a placeholder
whenever a 2.x header is parsed.

When the view group is created and it contains such a placeholder, the
partition versions are requested from the server. From then on the view
engine can proceed as usual. The next time the header is written to disk,
it will contain the correct information.

Change-Id: I2b3f1068613dd4a814b7479b4a36cb48dd6eb19e
Reviewed-on: http://review.couchbase.org/40914
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
Reviewed-by: Sriram Melkote <siri@couchbase.com>

show more ...

e0297e7a31-Jul-2014 harsha <hhs.couchbase@gmail.com>

MB-11838 Rename upr to dcp in couchdb.

Modify file names, modules and macros to reflect
the change in naming convention from upr to dcp.
Ensure macros are fully in upper case, Fix a

MB-11838 Rename upr to dcp in couchdb.

Modify file names, modules and macros to reflect
the change in naming convention from upr to dcp.
Ensure macros are fully in upper case, Fix a few
that were in comments and others that were a mix
of upper and lower case. Updated .gitignore to
reflect change in directory names.

Change-Id: I9f464eef69f33c796686aae1b63352f764064b58
Reviewed-on: http://review.couchbase.org/40118
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Nimish Gupta <nimish@couchbase.com>
Reviewed-by: Harsha H S <hhs.couchbase@gmail.com>
Tested-by: Harsha H S <hhs.couchbase@gmail.com>

show more ...

64d7b23d09-Jul-2014 Volker Mische <vmx@couchbase.com>

Supply view type to couchstore

Couchstore deals with mapreduce as well as spatial views. In order to
know which view it currently processes, we need pass on the view type.

0 sta

Supply view type to couchstore

Couchstore deals with mapreduce as well as spatial views. In order to
know which view it currently processes, we need pass on the view type.

0 stands for mapreduce view
1 stands for spatial view

Change-Id: I7b19789d600d9497cf5314209fa37f12227ca469
Reviewed-on: http://review.couchbase.org/39639
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>

show more ...

66b0418811-Mar-2014 Volker Mische <vmx@couchbase.com>

MB-10368: Remove couch_db_set module

As we get the sequence numbers through UPR and not from the disk files
the couch_db_set module is obsolete. This commit removes it and all
its tr

MB-10368: Remove couch_db_set module

As we get the sequence numbers through UPR and not from the disk files
the couch_db_set module is obsolete. This commit removes it and all
its traces.

It also removes couch_set_view_util:open_db/2 which is no longer needed.

Change-Id: I9208cc81f1c1146d58ac4d7b8c268ad6986bfad0
Reviewed-on: http://review.couchbase.org/34437
Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
Tested-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

466a721828-Jan-2014 Volker Mische <vmx@couchbase.com>

MB-10044: Partition UUID is an unsigned 64-bit integer

The partition UUID is handles as unsigned 64-bit integer,
we should do the same on the Erlang side. This change doesn't
really

MB-10044: Partition UUID is an unsigned 64-bit integer

The partition UUID is handles as unsigned 64-bit integer,
we should do the same on the Erlang side. This change doesn't
really change the functionality as over the wire it gets
encoded as a binary anyway.

Change-Id: I10a79f9810f0c352df58936e393f30e5ca8d1f70
Reviewed-on: http://review.couchbase.org/32917
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

59f6bdc127-Jan-2014 Volker Mische <vmx@couchbase.com>

MB-10026: add type specs to all functions in couch_upr

Some type specs in couch_upr.hrl are duplicated from
couch_set_view.hrl. This way you don't need to include
the couch_set_view.

MB-10026: add type specs to all functions in couch_upr

Some type specs in couch_upr.hrl are duplicated from
couch_set_view.hrl. This way you don't need to include
the couch_set_view.hrl in any of the couch_upr modules
just because of the type specs.

Change-Id: I1ec8072bbab4d6057eb39083c5c905bb50eeb224
Reviewed-on: http://review.couchbase.org/32874
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

02df1ed904-Dec-2013 Volker Mische <vmx@couchbase.com>

MB-9666: Persist and use Partition Versions/Failover Log

The Failover Log that is returned by the Stream Request OK
response is now used in the view group and also persisted
in the h

MB-9666: Persist and use Partition Versions/Failover Log

The Failover Log that is returned by the Stream Request OK
response is now used in the view group and also persisted
in the header on disk.

"make check" in couch_set_view passes again.

Change-Id: I950a102e18ab4223908c4b42f962d4a742840988
Reviewed-on: http://review.couchbase.org/30838
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: buildbot <build@couchbase.com>

show more ...

99b5220d20-Nov-2013 Volker Mische <vmx@couchbase.com>

MB-8903: Start UPR in group and not the updater

Starting the upr conection in the group makes more sense
as it is one connection per group anyway.

Change-Id: I1e6bd1ba489aeda9d7

MB-8903: Start UPR in group and not the updater

Starting the upr conection in the group makes more sense
as it is one connection per group anyway.

Change-Id: I1e6bd1ba489aeda9d72af1adbf1b47fec0befad4
Reviewed-on: http://review.couchbase.org/30545
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

282a9d8a17-Sep-2013 Filipe David Borba Manana <fdmanana@apache.org>

Add emacs style line comment to several source files

Change-Id: Idc3e80655f6e122b1633a88b922336e5d3b42867
Reviewed-on: http://review.couchbase.org/29036
Reviewed-by: Filipe David Bor

Add emacs style line comment to several source files

Change-Id: Idc3e80655f6e122b1633a88b922336e5d3b42867
Reviewed-on: http://review.couchbase.org/29036
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

0cf47b9406-Sep-2013 Filipe David Borba Manana <fdmanana@apache.org>

MB-9133 Use native index builder for index builds

Just use the new external program in couchstore to do the
initial index builds.

Sample test:

Building an index for a d

MB-9133 Use native index builder for index builds

Just use the new external program in couchstore to do the
initial index builds.

Sample test:

Building an index for a design document with 4 views, from
one of the evperf tests, for a dataset of 6.5M documents:

Before this change:

Total indexing time: 10m58.060s
Btree build phase time: 127.85283s

After this change:

Indexing time: 9m1.305s
Btree build phase time: 22.018846s

Change-Id: Ibec96b74ca219483694ebf71323af921c23dc58e
Reviewed-on: http://review.couchbase.org/29033
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

d0e78d4f05-Sep-2013 Filipe David Borba Manana <fdmanana@apache.org>

MB-7656 Track more recent header position in group snapshot

Change-Id: If58ee859342ae7b1e7c06202b04f699008b2a2c1
Reviewed-on: http://review.couchbase.org/28817
Reviewed-by: Volker Mi

MB-7656 Track more recent header position in group snapshot

Change-Id: If58ee859342ae7b1e7c06202b04f699008b2a2c1
Reviewed-on: http://review.couchbase.org/28817
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

82c6086b22-Jul-2013 Volker Mische <vmx@couchbase.com>

MB-8582: Move ETS table names to indexer specific module

Change-Id: I97609184562b3fa0dab4dd318a3bc2e5d4838160
Reviewed-on: http://review.couchbase.org/27609
Reviewed-by: Filipe David

MB-8582: Move ETS table names to indexer specific module

Change-Id: I97609184562b3fa0dab4dd318a3bc2e5d4838160
Reviewed-on: http://review.couchbase.org/27609
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: buildbot <build@couchbase.com>

show more ...

e0d2c5a222-Jul-2013 Filipe David Borba Manana <fdmanana@apache.org>

Merge remote-tracking branch 'origin/2.1.1'

* origin/2.1.1:
MB-8286 Explicit error message if user reduction is too large

Conflicts:
src/couch_set_view/src/couch_s

Merge remote-tracking branch 'origin/2.1.1'

* origin/2.1.1:
MB-8286 Explicit error message if user reduction is too large

Conflicts:
src/couch_set_view/src/couch_set_view_group.erl

Change-Id: Ieb079c96797ec027f2c7260b09529bd90de430d2

show more ...


8ae2046c18-Jul-2013 Filipe David Borba Manana <fdmanana@apache.org>

MB-8286 Explicit error message if user reduction is too large

If the reduction produced by a JavaScript reduce function is too
large (i.e. larger than 64Kb), raise an explicit error with

MB-8286 Explicit error message if user reduction is too large

If the reduction produced by a JavaScript reduce function is too
large (i.e. larger than 64Kb), raise an explicit error with
a much more friendly error message. Before this change, we would
encode the reduction's size as a 16 bits integer which didn't
match the binary size when the later was larger than 64Kb, and
later cause a badmatch error.

Change-Id: I87614a42fee8e9e027e81134a6cd3c1691a73529
Reviewed-on: http://review.couchbase.org/27546
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

9d473b9110-Jul-2013 Volker Mische <vmx@couchbase.com>

MB-8582: Make more parts indexer agnostic

There were still parts that were specific to the mapreduce_view
indexer. Those are now more generic.

Change-Id: I017eb414f938353f3df3f3

MB-8582: Make more parts indexer agnostic

There were still parts that were specific to the mapreduce_view
indexer. Those are now more generic.

Change-Id: I017eb414f938353f3df3f38a95549b67c80a8630
Reviewed-on: http://review.couchbase.org/27541
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

a84ccbb701-Jul-2013 Volker Mische <vmx@couchbase.com>

MB-8531: Implement initial spatial index build

The initial index build for spatial indexes is now using the
new C code.

Change-Id: I8edd00cfb5341907369b468da6a9aca4ed13c21c

MB-8531: Implement initial spatial index build

The initial index build for spatial indexes is now using the
new C code.

Change-Id: I8edd00cfb5341907369b468da6a9aca4ed13c21c
Reviewed-on: http://review.couchbase.org/27220
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

6e8be40f01-Jul-2013 Volker Mische <vmx@couchbase.com>

MB-8531: Move #tmp_file_info{} record into common header

That record is are also needed by the spatial index.

Change-Id: I36031d47aae83b9869585fbc9a8e2ce661d6aeac
Reviewed-on: h

MB-8531: Move #tmp_file_info{} record into common header

That record is are also needed by the spatial index.

Change-Id: I36031d47aae83b9869585fbc9a8e2ce661d6aeac
Reviewed-on: http://review.couchbase.org/27218
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

Revision tags: 2.1.1r, 2.1.0r, 2.0.2r
c71fd2fb16-May-2013 Volker Mische <vmx@couchbase.com>

MB-8295: Parametrise Set View ETS tables

ETS tables a global. With this commit it's possible
to start couch_set_view with a paramter ('prod' or
'dev') and the ETS tables will be set

MB-8295: Parametrise Set View ETS tables

ETS tables a global. With this commit it's possible
to start couch_set_view with a paramter ('prod' or
'dev') and the ETS tables will be set accordingly.
They won't share the tables, but have their own ones.

This commit is just a refactoring, so it doesn't
really change the functionality or the external APIs.

This commit needs to be merged together with:
http://review.couchbase.org/26383

Change-Id: I4ed8093b402c041ba3f0e9842887b2547fd4cdc7
Reviewed-on: http://review.couchbase.org/26344
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>

show more ...

880e127208-May-2013 Volker Mische <vmx@couchbase.com>

MB-8241: Move MapReduce View specific stuff into its own record

Change-Id: I2848abbc0338790d0b3488d66eac173c9a477585
Reviewed-on: http://review.couchbase.org/26240
Reviewed-by: Filip

MB-8241: Move MapReduce View specific stuff into its own record

Change-Id: I2848abbc0338790d0b3488d66eac173c9a477585
Reviewed-on: http://review.couchbase.org/26240
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>

show more ...

bddf446703-May-2013 Volker Mische <vmx@couchbase.com>

MB-8241: Refactor couch_set_view_group module

Refactor all MapReduce View specific code out of the
couch_set_view_group module into the mapreduce_view
module.

Change-Id: I8b

MB-8241: Refactor couch_set_view_group module

Refactor all MapReduce View specific code out of the
couch_set_view_group module into the mapreduce_view
module.

Change-Id: I8bf618bc7cccdfd277a68ff9a1e5c906919d0f30
Reviewed-on: http://review.couchbase.org/26123
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>

show more ...

edfebea529-Apr-2013 Volker Mische <vmx@couchbase.com>

MB-8241: Refactor couch_set_view_updater module

Refactor all MapReduce View specific code out of the
couch_set_view_updater module into a new mapreduce_view
module.

Change-I

MB-8241: Refactor couch_set_view_updater module

Refactor all MapReduce View specific code out of the
couch_set_view_updater module into a new mapreduce_view
module.

Change-Id: I48fcf252d81bd5ed97400783829730d0982577a1
Reviewed-on: http://review.couchbase.org/25932
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>

show more ...

123