/[Apache-SVN]/couchdb/trunk/src/couchdb/couch_query_servers.erl
ViewVC logotype

Log of /couchdb/trunk/src/couchdb/couch_query_servers.erl

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 882903 - (view) (annotate) - [select for diffs]
Modified Sat Nov 21 13:43:43 2009 UTC (5 days, 22 hours ago) by kocolosk
File length: 13994 byte(s)
Diff to previous 803685 (colored)
code improvements from tidier. Patch by Kostis Sagonas. COUCHDB-570

Revision 803685 - (view) (annotate) - [select for diffs]
Modified Wed Aug 12 19:58:14 2009 UTC (3 months, 2 weeks ago) by jchris
File length: 14083 byte(s)
Diff to previous 803245 (colored)
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.

Revision 803245 - (view) (annotate) - [select for diffs]
Modified Tue Aug 11 18:50:08 2009 UTC (3 months, 2 weeks ago) by jchris
File length: 12766 byte(s)
Diff to previous 799835 (colored)
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.


Revision 799835 - (view) (annotate) - [select for diffs]
Modified Sat Aug 1 11:16:36 2009 UTC (3 months, 3 weeks ago) by jan
File length: 12129 byte(s)
Diff to previous 795687 (colored)
enable include_docs=true for list functions, patch by Mark Hammond, closes COUCHDB-444

Revision 795687 - (view) (annotate) - [select for diffs]
Modified Mon Jul 20 04:11:36 2009 UTC (4 months, 1 week ago) by jchris
File length: 12099 byte(s)
Diff to previous 794057 (colored)
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.

Revision 794057 - (view) (annotate) - [select for diffs]
Modified Tue Jul 14 20:21:39 2009 UTC (4 months, 2 weeks ago) by nslater
File length: 11505 byte(s)
Diff to previous 791350 (colored)
wheeeeeeee

Revision 791350 - (view) (annotate) - [select for diffs]
Modified Mon Jul 6 00:33:50 2009 UTC (4 months, 3 weeks ago) by nslater
File length: 11507 byte(s)
Diff to previous 784601 (colored)
trimmed trailing whitespace

Revision 784601 - (view) (annotate) - [select for diffs]
Modified Sun Jun 14 18:45:49 2009 UTC (5 months, 1 week ago) by jchris
File length: 11551 byte(s)
Diff to previous 780165 (colored)
merge list-iterator branch to trunk. changes JavaScript _list API

Revision 780165 - (view) (annotate) - [select for diffs]
Modified Sat May 30 02:43:52 2009 UTC (5 months, 4 weeks ago) by damien
File length: 12107 byte(s)
Diff to previous 774474 (colored)
Test and fix for infinite loops in view_servers, fix for crashed OS processes causing leaked erlang processes and fix for view server crashing when view group process terminates.

Revision 774474 - (view) (annotate) - [select for diffs]
Modified Wed May 13 18:27:11 2009 UTC (6 months, 2 weeks ago) by damien
File length: 11428 byte(s)
Diff to previous 774101 (colored)
Adding testing for GET /_changes?continuous=true by adding a GET /_sleep?time=Msecs call, which allows the browser to process the waiting data on the other async XHR request.

Revision 774101 - (view) (annotate) - [select for diffs]
Modified Tue May 12 21:38:43 2009 UTC (6 months, 2 weeks ago) by jchris
File length: 11428 byte(s)
Diff to previous 771466 (colored)
You can now specify either "_sum" or "_count" as the source code for 2 built-in Erlang reduce functions. The framework is ready for YOU to add more built in reductions. The short list includes: _avg, _stddev, _min, and _max. We could also have one function that does all that in a single function, but it might not be as fun to use.

Revision 771466 - (view) (annotate) - [select for diffs]
Modified Mon May 4 22:06:01 2009 UTC (6 months, 3 weeks ago) by jchris
File length: 9636 byte(s)
Diff to previous 749852 (colored)
reduce_limit error is thrown when the reduce function output is not small enough compared to the input. Errors can be switched off using the config API.

Revision 749852 - (view) (annotate) - [select for diffs]
Modified Wed Mar 4 00:15:07 2009 UTC (8 months, 3 weeks ago) by jan
File length: 9320 byte(s)
Diff to previous 747679 (colored)
allow for handling 404s in document show functions

Revision 747679 - (view) (annotate) - [select for diffs]
Modified Wed Feb 25 06:34:03 2009 UTC (9 months ago) by jchris
File length: 9072 byte(s)
Diff to previous 738237 (colored)
Support for reduce views in _list. closes COUCHDB-260. Thanks Jason Davies.

Revision 738237 - (view) (annotate) - [select for diffs]
Modified Tue Jan 27 20:46:39 2009 UTC (9 months, 4 weeks ago) by jchris
File length: 8606 byte(s)
Diff to previous 736876 (colored)
Improved etag handling for show funcs and db_doc requests; main.js cleanup (baby steps); null doc allowed for show funcs

Revision 736876 - (view) (annotate) - [select for diffs]
Modified Fri Jan 23 00:53:05 2009 UTC (10 months ago) by jchris
File length: 8552 byte(s)
Diff to previous 733576 (colored)
View list functions can stream views in any format. See list_views test for details.

Revision 733576 - (view) (annotate) - [select for diffs]
Modified Mon Jan 12 01:48:36 2009 UTC (10 months, 2 weeks ago) by jchris
File length: 7540 byte(s)
Diff to previous 730016 (colored)
rename _form to _show and move the funcs in the design doc to design.show.docs

Revision 730016 - (view) (annotate) - [select for diffs]
Modified Mon Dec 29 23:43:10 2008 UTC (10 months, 4 weeks ago) by jchris
File length: 7527 byte(s)
Diff to previous 727132 (colored)
merge form branch to trunk

Revision 727132 - (view) (annotate) - [select for diffs]
Modified Tue Dec 16 20:31:51 2008 UTC (11 months, 1 week ago) by jchris
File length: 7148 byte(s)
Diff to previous 726143 (colored)
couch_os_process to manage the JSON line protocol. thanks davisp.

Revision 726143 - (view) (annotate) - [select for diffs]
Modified Fri Dec 12 22:32:42 2008 UTC (11 months, 2 weeks ago) by joes
File length: 8513 byte(s)
Diff to previous 719160 (colored)
move couchdb to tlp

Revision 719160 - (view) (annotate) - [select for diffs]
Modified Thu Nov 20 04:42:43 2008 UTC (12 months, 1 week ago) by damien
Original Path: incubator/couchdb/trunk/src/couchdb/couch_query_servers.erl
File length: 8513 byte(s)
Diff to previous 713132 (colored)
Nearly completed security/validation work. Still needs replication testing.

Revision 713132 - (view) (annotate) - [select for diffs]
Modified Tue Nov 11 19:45:50 2008 UTC (12 months, 2 weeks ago) by damien
Original Path: incubator/couchdb/trunk/src/couchdb/couch_query_servers.erl
File length: 8486 byte(s)
Diff to previous 694989 (colored)
Check in of initial validation and authorization work. This work is incomplete, as there is not yet any way of restricting who can update the design docs.

Revision 694989 - (view) (annotate) - [select for diffs]
Modified Sat Sep 13 17:32:46 2008 UTC (14 months, 1 week ago) by damien
Original Path: incubator/couchdb/trunk/src/couchdb/couch_query_servers.erl
File length: 7931 byte(s)
Diff to previous 690668 (colored)
Changes and refactorings to couch_config

Revision 690668 - (view) (annotate) - [select for diffs]
Modified Sun Aug 31 09:43:41 2008 UTC (14 months, 3 weeks ago) by cmlenz
Original Path: incubator/couchdb/trunk/src/couchdb/couch_query_servers.erl
File length: 7964 byte(s)
Diff to previous 690513 (colored)
Merged json_term_changes branch back into trunk.

Revision 690513 - (view) (annotate) - [select for diffs]
Modified Sat Aug 30 14:27:01 2008 UTC (14 months, 4 weeks ago) by jan
Original Path: incubator/couchdb/trunk/src/couchdb/couch_query_servers.erl
File length: 7706 byte(s)
Diff to previous 687336 (colored)
- Rename configuration options and sections to allow for a nicer .ini file and HTTP API calls.
- Enable .ini parser to read variable assignments with spaces around the '='-sign.
- Remove inadequate comment.

Revision 687336 - (view) (annotate) - [select for diffs]
Modified Wed Aug 20 13:55:41 2008 UTC (15 months, 1 week ago) by jan
Original Path: incubator/couchdb/trunk/src/couchdb/couch_query_servers.erl
File length: 7742 byte(s)
Diff to previous 665852 (colored)
Merge runtimeconfig branch back into trunk

Revision 665852 - (view) (annotate) - [select for diffs]
Modified Mon Jun 9 19:55:34 2008 UTC (17 months, 2 weeks ago) by damien
Original Path: incubator/couchdb/trunk/src/couchdb/couch_query_servers.erl
File length: 7234 byte(s)
Diff to previous 656861 (colored)
Changed name of 'combine' phase of reduce to 'rereduce', to avoid confusion.

Revision 656861 - (view) (annotate) - [select for diffs]
Modified Thu May 15 21:51:22 2008 UTC (18 months, 1 week ago) by damien
Original Path: incubator/couchdb/trunk/src/couchdb/couch_query_servers.erl
File length: 7230 byte(s)
Diff to previous 649948 (colored)
Incremental reduce first checkin. Warning! Disk format change.

Revision 649948 - (view) (annotate) - [select for diffs]
Modified Sun Apr 20 18:17:15 2008 UTC (19 months, 1 week ago) by damien
Original Path: incubator/couchdb/trunk/src/couchdb/couch_query_servers.erl
File length: 6190 byte(s)
Diff to previous 645661 (colored)
Added proper UUID generation and changed the details of how way debug logging is done to now use a more effcient macro instead of a function call.

Revision 645661 - (view) (annotate) - [select for diffs]
Modified Mon Apr 7 19:51:17 2008 UTC (19 months, 2 weeks ago) by damien
Original Path: incubator/couchdb/trunk/src/couchdb/couch_query_servers.erl
File length: 6210 byte(s)
Diff to previous 642432 (colored)
Compaction. Works, but still needs queueing and better handling for long reads/writes overlapping the compaction switchover.

Revision 642432 - (view) (annotate) - [select for diffs]
Added Fri Mar 28 23:32:19 2008 UTC (20 months ago) by cmlenz
Original Path: incubator/couchdb/trunk/src/couchdb/couch_query_servers.erl
File length: 6484 byte(s)
Imported trunk.

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.

  Diffs between and
  Type of Diff should be a

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2