Parent Directory
|
Revision Log
| Links to HEAD: | (view) (annotate) |
| Sticky Revision: |
code improvements from tidier. Patch by Kostis Sagonas. COUCHDB-570
List functions weren't returning OS processes. Needed to add a call to couch_query_server:stop_map_doc/1 to return outstanding OS processes back to the query servers pools. This was causing some awesome errors by keeping the query_servers PID linked to the socket PID, which caused errors in apparently unrelated requests as the query_servers daemon was restarted on config changes. Also needed to move where the query servers were requested in list functions involving reduces. Map only lists were fine though.
Make it harder to accidently terminate chunked resposnes by requiring callers to explicity call last_chunk(Req) and ignoring send_chunk calls with no data.
Fixed the test for couch_stats_aggregator.
Update functions can now handle any HTTP verb, excepting GET and HEAD
Fix bug when lists use two design docs. The language was being pulled from the wrong doc in the pair. Also removed some unused variables. Added a test in list_views.js
View refactoring and addition of raw collationoption. Significant performance improvements in view indexer.
Refactoring of endkey code in views and btrees. End key functionaility is now handled inside the btree code, simplfying calling code and making it trivial to add new collation options
allow list function and view function to be in different design docs, patch by Mark Hammond, closes COUCHDB-446
Introduces native Erlang query servers. Closes COUCHDB-377 Thanks Mark Hammond and Paul Davis for doing most of the work, and Michael McDaniel for the inspiration. There is still room for improvement on the APIs exposed to the Erlang views, as well as likely a whole lot of work to be done to increase parallelism. But the important part now is that we have native Erlang views.
recloses COUCHDB-4 (view etags) thanks to Matt Goodall for the tests. keep 'em coming!
silence compiler warnings, don't use unused variables
Initial commit of _update handler. Thanks to Paul Davis, Jason Davies for code and others for discussion.
The _update handler accepts POSTs to paths like: /db/_design/foo/_update/bar and PUTs which include docids, like: /db/_design/foo/_update/bar/docid
The function signature:
function(doc, req) {
doc.a_new_field = req.query.something;
return [doc, "<h1>added something to your doc</h1>"];
}
The tests in update_documents.js are fairly complete and include examples of bumping a counter, changing only a single field, parsing from (and returning) XML, and creating new documents.
Initial check-in of OAuth and cookie authentication.
enable include_docs=true for list functions, patch by Mark Hammond, closes COUCHDB-444
Initial checkin of _changes filters. The prime weak-spot for this approach is that it maintains an OS-process per connected filtered _changes consumer. I'm pretty sure we'll be able to work around this without changing the API, but it'll involve a lot of OS-process bookkeeping. Those enhancements should generally improve show & list performance as well. Punting on them for now, first wanted to get _changes filters implemented so people could give feedback.
wheeeeeeee
Apply patch from Benoit Chesneau's COUCHDB-404 Restores 0.8-style /db/_view view urls and adds an option to render views and documents as other formats like: /db/docid?show=blog/post /db/_view/blog/posts?list=index We're retaining the longer _design/appname paths as well because that resource is valuable for reverse proxies and rewriters.
Fixes COUCHDB-389 Provide an offset calculation for all view responses. Thanks Brad Anderson.
trimmed trailing whitespace
Fixes COUCHDB-383 - Ignore extra URL parameters. No one opposed the switch so here it is.
merge list-iterator branch to trunk. changes JavaScript _list API
Refactor the make_view_fold_function stuff. Added a proper Acc to both map and reduce view folds. Cleaned up some pattern matchers.
Refactoring the view URL parameter parsing.
refactor main.js into many files and improve show/list error handling
always load _conflicts in _show functions
Commit Damien's rep_security branch to trunk. Changes bulk_docs conflict checking. Breaks file format, see mailing list for data upgrade procedure, or http://wiki.apache.org/couchdb/Breaking_changes
merge design doc resource branch. breaking changes to _view query paths. closes COUCHDB-280
validate reduce view list queries, make query_parse_error response code 400 thanks Jan, thanks Jason Davies. closes COUCHDB-283
allow multi-key POST requests for _list. closes COUCHDB-269. thanks Jason Davies
refactor show 404 handling doc-loading special case out of couch_httpd_db.erl
allow for handling 404s in document show functions
supply etags for reduce view lists
Support for reduce views in _list. closes COUCHDB-260. Thanks Jason Davies.
Put file ref_counting into it's own module, to make the speed of opening an already open database faster (by not waiting on file pending operations, particularly fsync).
View etags are now provided. See note in the source about how they could be more efficient. Changes arity on make_view_fold_fun etc. Closes COUCHDB-4
apply COUCHDB-252. Allow _list functions to signal that iteration of the view should cease. Thanks davisp.
Apply COUCHDB-251. Allow _list functions to accept arbitrary GET parameters. Thanks Paul Davis.
Improved etag handling for show funcs and db_doc requests; main.js cleanup (baby steps); null doc allowed for show funcs
View list functions can stream views in any format. See list_views test for details.
rename _form to _show and move the funcs in the design doc to design.show.docs
merge form branch to trunk
better error handling for missing docs and design docs
The initial checkin of the form branch
This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.
| apache@apache.org | ViewVC Help |
| Powered by ViewVC 1.1.2 |