summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Ignore batch file copy on UNIX1994-merge-rcouchJoan Touzet2014-04-181-1/+1
| | | | COUCHDB-1994
* Enable Windows buildJoan Touzet2014-04-186-38/+133
|
* keep the build quietbenoitc2014-04-161-4/+4
|
* fix tests: update db headerbenoitc2014-02-161-0/+1
|
* support validate_doc_read feature.benoitc2014-02-163-2/+5
|
* rebar.config: make it easier to add repositorybenoitc2014-02-162-75/+45
| | | | | Similar change exists in the bigcouch branch, except we continue to use a rebar.config file.
* fix travis CI: bootstrap is gonebenoitc2014-02-161-1/+1
|
* make test target less vebosebenoitc2014-02-151-22/+31
|
* icu nif tests has been moved in the couch_collate applicationbenoitc2014-02-152-30/+4
|
* forgot to remove useless files.benoitc2014-02-152-151/+0
|
* make the bootstrap script obsoletebenoitc2014-02-155-18/+158
| | | | | | | | | To set a release tag you can now pass a RELEASE_TAG parameter to the make rel command (or via the env). The release tag will then be appended to the version under the format <VERSION>-<TAG>. If RELEASE_TAG=git then the latest short commit ID will be used and the version will become <VERION>+build.<TAG>.
* remove node_package dependency1994-merge-rcouch-multi-repobenoitc2014-02-158-20/+999
|
* install applications in src/benoitc2014-02-146-38/+38
|
* make tests independant of the app locationbenoitc2014-02-1352-57/+9
| | | | user ERL_FLAGS instead of setting the path in the shebang
* fix deps urlbenoitc2014-02-131-5/+5
| | | | tests on travis failed because deps aren't fetched.
* small updatebenoitc2014-02-134-27/+62
|
* remove couch_httpdbenoitc2014-02-1316-5931/+0
|
* remove couch_indexbenoitc2014-02-1311-1457/+0
|
* remove couch_mrviewbenoitc2014-02-1322-4687/+0
|
* remove couch_replicatorbenoitc2014-02-1324-6409/+0
|
* remove couch_pluginsbenoitc2014-02-134-547/+0
|
* remove couch_dbupdatesbenoitc2014-02-133-126/+0
|
* remove couch_collatebenoitc2014-02-13134-75225/+0
|
* remove couchbenoitc2014-02-1360-18924/+0
|
* fix testsbenoitc2014-02-122-0/+9
| | | | | tests were crashing in travis afte lager has been added: goldrush and its dependencies were not started.
* couch_log: make sure that the the log file can be set in the inibenoitc2014-02-122-11/+77
| | | | | | | | | | | For some reason noone noticed until now, but changing the log file was only possible in the app.config until now. This change fix this by doing the following: - when couch_log starts it check if the log file handler has already been started using the app.config. If not it start a new handler - when the filename change after a config update using the API, the old file handler is shutdown and a new one is started with the new config.
* couch_log: be less invasive when using parse_transformbenoitc2014-02-122-2/+3
| | | | | | | Noticed when running tests vi travis-ci, jiffy doesn't like too much lager and the build hangs. So instead to compile all modules with the parse transform, only do it for couch_log. This is the only place where we really need it anyway.
* couch_log: use lagerbenoitc2014-02-125-103/+139
| | | | | | | | | | With this change instead to use our own way to log file we are using lager which improve the logging which will make couchdb more tolerant in the face of large or many log messages, won't out of memory the node. Note: Lager can handle multiple backend butwe are for now only handling the file and console backend in the ini file. Other backends can be configured using the app.config file.
* couch_replicator: fix test 03-replication-compact.tbenoitc2014-02-111-2/+4
| | | | | the record rep has bene upddated in the previous change to handle a replication based on a view index. Fix it.
* release: version couch.app.src shoud be set manuallybenoitc2014-02-096-78/+44
| | | | | | | fix build issue with some old version of rebar. Now the version of the couch.app is set manually. RCOUCH-2 done
* couch_index: don't try to get the config each time in the indexerbenoitc2014-02-091-3/+35
| | | | | | Rather than fetching the threshold and refresh interval settings each time we need them, register the process to couch_config events so we can update the config only when needed.
* couch_replicator: add replication using changes in a viewbenoitc2014-02-096-13/+93
| | | | | | | | | Instead of a database, the replicator can now filter the documents using a view index. All documents having a key emitted in the view can be replicated. View parameters can be used. Which means that you can replicate results corresponding to a key in a view or a range.
* couch_mrview: add HTTP handler to retrieve the infos on a view.benoitc2014-02-082-3/+15
|
* couch_mrview: add API to retrieve view info.benoitc2014-02-082-1/+34
| | | | | Add couch_mrview:get_view_info/3 to retrieve the internal informations of a view like the last update seq in this view or the number of rows.
* couch_httpd_changes: check removed keys from the view filterbenoitc2014-02-081-13/+27
| | | | | Make sure to only emit deleted document when a deleted key is passed to the view filter.
* couch_mrview: fix 10-index-changes.tbenoitc2014-02-081-4/+12
| | | | proper test to check the indexer.
* couch_index: add background indexing facilitybenoitc2014-02-087-22/+330
| | | | | | | | | | | | | | | | | | This change add the possibility to trigger a view indexation in background. The indexation can only work in background if at least one process acquired it using the `couch_index_server:acquire_index/3` function. If all the process that acquired it are down or released it using `couch_index_server:release_indexer/3` then the background task is stopped. By default the background indexation will happen every 1s or when 200 docs has been saved in the database. These parameters can be changed using the options `threshold` and `refresh_interval` in the couch_index section. To use it with couch_mrview a new option {refresh, true} has been added to couch_mrview_changes:handle_changes Also the query parameter refresh=true is passsed in t the HTTP changes API.
* add the option use_index={no,yes} (yes by default)benoitc2014-02-072-6/+24
| | | | | | If use_index=no even if the view is indexed by sequence, the index won't be use. Instead it will fold the btree and return the changes each time the view map function can emit a value. (default behaviour).
* add supports of view changes in the _changes APIbenoitc2014-02-079-27/+349
| | | | | | | | | | | | | Now when the option `seq_indexed=true` is set in the design doc, the view filter in _changes will use it to retrieve the results. Compared to the current way, using a view index will be faster to retrieve changes. It also gives the possibility to filter changes by key or get changes in a key range. All the view options can be used. Note 1: if someone is trying to filter a changes with view options when the views are not indexed by sequence, a 400 error will be returned. Note 2: The changes will only be returned when the view is updated if seq_indexed=true
* extract couch_httpd changes API in its own modulebenoitc2014-02-025-13/+206
|
* couch_mrview: couch_mrview_changes:handle_changesbenoitc2014-01-315-1/+392
| | | | | | | | | | | | Similar to couch_changes:handle_changes but for view changes. It add support for longpolling, normal and continuous stream The API differs from the one for doc by beeing independant from the transport: the support of HTTP will be added on top for example. This API will be also used to replace the view filter in the current _changes API. Also add unittests.
* add index update events notificationsbenoitc2014-01-305-2/+174
|
* Speed up and move couch_httpd:find_in_binary.NickNorth2014-01-293-29/+102
| | | | See https://issues.apache.org/jira/browse/COUCHDB-1953
* Add test for path normalization with qs paramsAdam Kocoloski2014-01-291-0/+11
| | | | COUCHDB-2031
* Move addition of qs params after normalizationAdam Kocoloski2014-01-291-31/+27
| | | | | | | This refactor executes normalize_path/1 before appending the bound query string parameters. COUCHDB-2031
* couch_mrview: add couch_mrview:refresh/2 functionbenoitc2014-01-282-4/+20
| | | | function to refresh a view index.
* couch_mrview: check removed keys from the index.benoitc2014-01-271-2/+40
|
* couch_mrview: add view changes testbenoitc2014-01-274-22/+168
| | | | test view changes and fix errors.
* couch_mrview: fix compaction with seqs_indexed=truebenoitc2014-01-272-8/+88
| | | | | This change smakes sure to compact the view indexes when using the view changes.
* couch_mrview: add couch_mrview:count_view_changes_since/{4,5}benoitc2014-01-272-2/+36
| | | | | Add function to couch changes in a view index, similar to couch_db:count_changes_since/2 .