Permalink
Commits on Jan 6, 2016
  1. @vmx

    Update build and run instructions

    Fix the errors in the instructions on how to build and run GeoCouch
    with Apache CouchDB.
    vmx committed Jan 6, 2016
  2. @vmx

    Make it compile properly

    The include path to Apache CouchDB wasn't set correctly.
    vmx committed Jan 6, 2016
Commits on Aug 11, 2014
  1. @vmx @vmx

    Move the _spatial design handler to ns_server

    ns_server takes care of the _spatial design handler, hence it should
    also be configured in the capi.ini of ns_server.
    
    Change-Id: I672d9e24f84f4c3ec6891e3e1789d740415fd63d
    Reviewed-on: http://review.couchbase.org/40416
    Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Aug 8, 2014
  2. @vmx @vmx

    Upgrade rebar

    In order to make the build work on Windows a more recent rebar is needed.
    Rebar is upgraded to:
    
        rebar 2.5.1 R14B04 20140730_173812 git 2.5.1-1-ge9f62c4
    
    Change-Id: I8416aa5fea727ef7f7148fd06090794ec99d19ff
    Reviewed-on: http://review.couchbase.org/40493
    Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Aug 10, 2014
  3. @vmx @vmx

    Add support for non-range emits

    It's now possible to emit a point rather than a range per dimesnion.
    So if you emit a 2-dimensional point, you no longer need to emit:
    
        emit([[doc.lon, doc.lon], [doc.lat, doc.lat]], null);
    
    But you can simply do a:
    
        emit([doc.lon, doc.lat], null);
    
    Change-Id: Ica542533e378222e76503edabf72fe57e589942c
    Reviewed-on: http://review.couchbase.org/40371
    Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Aug 7, 2014
  4. @vmx @vmx

    Add support for geometries

    The spatial views now also store the supplied geometry and return it
    on query time. When a view is created without a geometry, it won't
    be included in the result.
    
    Change-Id: Idb7418bb5aff124d0ecf9dfb03445c28a2b36381
    Reviewed-on: http://review.couchbase.org/40370
    Reviewed-by: Sarath Lakshman <sarath@couchbase.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Aug 7, 2014
  5. @vmx @vmx

    Implement cleanup for spatial views

    It's now possible to cleanup spatial views. This is needed for queries
    during and after rebalancing.
    
    Change-Id: I431fecbcecb1276271c9ed5930e4bf304c5ef412
    vmx committed with vmx Aug 5, 2014
  6. @vmx @vmx

    Extract partition ID out of the body

    In Couchstore the body of a KV-node value consists of the partition ID
    and the actual value. Extract the partition ID and store it separately
    from the body in the #kv_node{} record.
    
    Change-Id: Ic5e5cddf095feaa4e94a1f1d8528694d61c6658b
    vmx committed with vmx Aug 5, 2014
Commits on Aug 1, 2014
  1. @vmx @vmx

    Hard-code the include paths

    Instead of dynamically building the include paths from the COUCH_SRC
    environment variable, it is not hard-coded. The reason is that setting
    environment variables from within CMake is not straight forward.
    
    Change-Id: Ib34d556450d73a601cf16848e5f017cb9b01ca75
    Reviewed-on: http://review.couchbase.org/40173
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Aug 1, 2014
Commits on Jul 31, 2014
  1. @vmx @vmx

    Use Couchstore for initial build

    Instead of using Erlang to build the initial index bottom up, use the
    C based initial index build from Couchstore.
    
    Change-Id: Ie639763a59fadb31c48fc4a0ec3ab66d87918a18
    Reviewed-on: http://review.couchbase.org/40142
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Jul 31, 2014
  2. @vmx @vmx

    Add some notes for future reference

    Change-Id: I5d762facdf3ce783573eb06f08cdd590b968526d
    Reviewed-on: http://review.couchbase.org/40141
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Jul 31, 2014
  3. @vmx @vmx

    Change the on-disk encoding

    The encoding is now more similar to the one of the mapreduce views in
    order to increase the code re-use in couchstore. Currently the geometry
    isn't stored (it will be added later on).
    
    The key is the emitted multidimensional bounding box (MBB) and the
    document ID. The value is the partition ID and the emitted value. In
    the future the geometry will also be stored as part of the value.
    
    Change-Id: I158b8c35b2c161a46654495c65a95cfaeff2ad2a
    Reviewed-on: http://review.couchbase.org/40140
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Jul 31, 2014
  4. @vmx @vmx

    No need to partition nodes for the root node

    The call to the `partition_nodes/3` function is not needed when
    the node it should be partitioned for is the root node, as then
    result will always be the input ndoes wrapped in a list.
    
    Change-Id: Ic1b6e7029b8bb095efa1b082283b4a80add6aafc
    Reviewed-on: http://review.couchbase.org/40139
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Jul 31, 2014
  5. @vmx @vmx

    Add support for geometries

    So far there was only support for bounding boxes. With this change it
    is now possible to use the legacy API of emitting a GeoJSON geometry.
    
    Change-Id: I05e39ab9c57457f1a6aecd40014bf4bdb3bbac2f
    Reviewed-on: http://review.couchbase.org/40138
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Jul 31, 2014
  6. @vmx @vmx

    Couchstore expects native endianness

    The items are written to disk on the Erlang side and then processed
    on the C side.
    
    Change-Id: Ide1907b5421af377ead9599b4ac87feeb500e4f6
    Reviewed-on: http://review.couchbase.org/40137
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Jul 31, 2014
  7. @vmx @vmx

    Transmit the enclosing bounding box

    For the initial index build it is needed to know the enclosing bounding
    box in order to build up the tree bottom up.
    
    Change-Id: I3b625f46ae840dc36f2b6499fb1daf67c4efadb8
    Reviewed-on: http://review.couchbase.org/40136
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Jul 31, 2014
  8. @vmx @vmx

    Make it possible to set the root node

    Change-Id: Iaab5b1900d68e8ad7d1a17f32ab185ad30cf8f4d
    Reviewed-on: http://review.couchbase.org/40135
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Jul 31, 2014
  9. @vmx @vmx

    Make spatial merger work with set views

    An additional case is needed to make the spatial view merging
    possible, which is needed when a cluster is queried.
    
    Change-Id: I6d7bb2092b40f7f879ee32108e5c064c80aef60d
    Reviewed-on: http://review.couchbase.org/40134
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Jul 31, 2014
  10. @vmx @vmx

    CAPI module got renamed

    As the current spatial views are broken anyway, the new module can just
    replace the old one without a different name. Hence `capi_spatial` can
    be used for that module.
    
    Change-Id: I76a1971d3abf54c8af8e025d78fdffd609100d0b
    Reviewed-on: http://review.couchbase.org/40133
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Jul 31, 2014
  11. @vmx @vmx

    Build geocouch with CMake

    It's just quick hack to get it working somehow. In order to make it compile
    from the top level you need to do from the root of the repo checkout:
    
        mkdir couchdb/src/couch_index_merger/ebin couchdb/src/couch_set_view/ebin
        COUCH_SRC=`pwd`/couchdb/src/couchdb ERL_LIBS=`pwd`/couchdb/src make
    
    Change-Id: I26de8df6dc17a58349a9bb07c3b16804cd41ac70
    Reviewed-on: http://review.couchbase.org/40143
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Jul 31, 2014
  12. @vmx @vmx

    Use single file etap

    The bundled etap in couchdb got updated, hence no
    hacks are needed any more.
    
    Change-Id: I27cb726240eb91c03fb25032e2ed197494a47ffd
    Reviewed-on: http://review.couchbase.org/40132
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Sep 16, 2013
  13. @vmx @vmx

    MB-8746: Add support for incremental updates

    Now items can be updated/delete from the spatial index.
    
    Cleanup currently isn't supported.
    
    Change-Id: I514947960e9e12bd5aed7d24277884392058535d
    Reviewed-on: http://review.couchbase.org/28077
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Aug 9, 2013
  14. @vmx @vmx

    MB-100: Increase node fill threshold

    Change-Id: I2d1ae272767a7d98afb501f6b8b9073b846bf14d
    Reviewed-on: http://review.couchbase.org/28076
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Aug 9, 2013
  15. @vmx @vmx

    MB-100: Minor vtree_copy cleanup

    Simplify the extract() function.
    
    Change-Id: I58f9d6e7a6d5c52c9133ea75df64ce851ec976f5
    Reviewed-on: http://review.couchbase.org/28075
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Aug 9, 2013
  16. @vmx @vmx

    MB-100: Wrong indentation

    Change-Id: Ia790e4f4c1d0da26ef1435818dfacd2b8fb75539
    Reviewed-on: http://review.couchbase.org/27846
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Aug 1, 2013
  17. @vmx @vmx

    MB-8746: First working set view spatial view

    With this commit spatial views work with the full stack.
    Currently only the initial index building is supported,
    no updating yet.
    
    The preferred parameter to query those new spatial views
    is with using the "range" parameter. There's "start_range"
    and "end_range". Both take an array of numbers that
    correspond to every dimension of the index. The "start_range"
    is for the lower bound, the "end_range" for the upper bound.
    
    Change-Id: If924e316b051eb85ff89c9bce68812634bc7d11a
    Reviewed-on: http://review.couchbase.org/28074
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Aug 1, 2013
Commits on Jul 23, 2013
  1. @vmx @vmx

    MB-100: Fix typo

    Change-Id: Idcace45f939c721476bd5437d238d9e3b6dc3261
    Reviewed-on: http://review.couchbase.org/27571
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Jul 10, 2013
  2. @vmx @vmx

    MB-100: Cleanup type descriptions

    Change-Id: I549394393acab06d158142fb84c3013bfbb749f5
    Reviewed-on: http://review.couchbase.org/27570
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Jul 5, 2013
  3. @vmx @vmx

    MB-8572: Always throw {error, Msg}

    Change-Id: Ia1f2b3f71bbf5d30f1378fee31d6c8748144189d
    Reviewed-on: http://review.couchbase.org/27569
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Jul 5, 2013
  4. @vmx @vmx

    MB-8571: Optimize vtree node decoding

    When compiling with the +bin_opt_info option, you get hints
    where to optimize the code. The solution was to match the
    binary in the function and not the function body.
    
    Change-Id: I244e5399a5ef226f05b0f163ffa1e3f3777baf82
    Reviewed-on: http://review.couchbase.org/27568
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Tested-by: buildbot <build@couchbase.com>
    vmx committed with vmx Jul 5, 2013
  5. @vmx @vmx

    CBD-51: Use constants instead of magic numbers

    Change-Id: I7ceae86b1d3c2ae795bb6da08a08760d90fab8f7
    Reviewed-on: http://review.couchbase.org/27567
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Tested-by: buildbot <build@couchbase.com>
    vmx committed with vmx Jul 5, 2013
  6. @vmx @vmx

    MB-8531: Clean test shutdown

    Change-Id: Ia008a07cdcb2760211c97721105ad27a2a90fdd5
    Reviewed-on: http://review.couchbase.org/27566
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Tested-by: buildbot <build@couchbase.com>
    vmx committed with vmx Jul 1, 2013
  7. @vmx @vmx

    MB-8531: Implement initial index build

    This is the Erlang side of the new C based initial index build
    
    Change-Id: Ida64bb8977e18e662c0666a7bbdba112a32e74c4
    Reviewed-on: http://review.couchbase.org/27573
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Tested-by: buildbot <build@couchbase.com>
    vmx committed with vmx Jul 1, 2013
  8. @vmx @vmx

    MB-100: Unbreak dialyzer PLT creation

    Remove reference to no longer existent ebin directory.
    
    Change-Id: I907c83bf13a7212d995c2e56d2ebbaf1b3f7ab5b
    Reviewed-on: http://review.couchbase.org/27574
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    vmx committed with vmx Jul 19, 2013
Commits on Jul 19, 2013
  1. @vmx

    Revert "MB-8531: Implement initial index build"

    This reverts commit ad3f92a
    
    Accidentally an old version was merged.
    
    Change-Id: Ia82fc23148e94b21f9e63f496ab8b7e4890cce57
    Reviewed-on: http://review.couchbase.org/27572
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed Jul 19, 2013