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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

Revision 824970 - (view) (annotate) - [select for diffs]
Modified Tue Oct 13 23:13:16 2009 UTC (6 weeks, 2 days ago) by davisp
File length: 21330 byte(s)
Diff to previous 814893 (colored)
Add more information to the view info objects.

View info is available at the URL:

http://127.0.0.1:5984/db_name/_design/ddocid/_info

New fields include:

    updater_running [true|false] : Whether the view is being built
    waiting_commit [true|false] : Whether this view is a head of db commits
    waiting_clients [integer] : How many clients are waiting on this view
    update_seq [integer] : The update sequence that has been indexed
    purge_seq [integer] : The purge sequence that has been processed

Other fields for reference:

    signature [string] : The md5 signature of the design document's functions
    language [string] : The language of the design document
    disk_size [integer] : Number of bytes the view file occupies on disk
    compact_running [boolean] : Whether the view is currently being compacted


Revision 814893 - (view) (annotate) - [select for diffs]
Modified Mon Sep 14 22:33:05 2009 UTC (2 months, 1 week ago) by damien
File length: 20980 byte(s)
Diff to previous 802680 (colored)
View refactoring and addition of raw collationoption. Significant performance improvements in view indexer.

Revision 802680 - (view) (annotate) - [select for diffs]
Modified Mon Aug 10 07:49:27 2009 UTC (3 months, 2 weeks ago) by jan
File length: 20719 byte(s)
Diff to previous 796805 (colored)
fix speling, thanks Jason

Revision 796805 - (view) (annotate) - [select for diffs]
Modified Wed Jul 22 17:34:14 2009 UTC (4 months ago) by kocolosk
File length: 20718 byte(s)
Diff to previous 795232 (colored)
various bugfixes and improvements for view compaction

View compaction was broken after the switch to signature-based index
files, but we don't have tests for it yet so we didn't notice.  I also
committed a few changes that should make compaction faster and more
robust:

* commit the header immediately after compaction finishes.  We used
  to wait 1 seconds, but if the server restarted in that second the
  index would be reset.

* unlink from old index file at the end. Prevents process crashes
  that could couch_view (and with the delayed commit would sometimes
  cause index resets).
  
* don't wait for running view updates to finish before replacing old
  view index file.  If an update is running, restart it and point it to
  the new view group.  This alleviates the situation where the view
  compaction goes into a busy wait, printing "still behind main file"
  1000s of times to the log, and generally makes compaction finish more
  quickly.
  
* better logging

Revision 795232 - (view) (annotate) - [select for diffs]
Modified Fri Jul 17 21:33:41 2009 UTC (4 months, 1 week ago) by damien
File length: 19276 byte(s)
Diff to previous 794843 (colored)
Deterministic revids, MD5 checking of documents, added tracking of rev when an attachment is edited to allow attachment level replication.

Revision 794843 - (view) (annotate) - [select for diffs]
Modified Thu Jul 16 20:40:59 2009 UTC (4 months, 1 week ago) by kocolosk
File length: 19449 byte(s)
Diff to previous 794057 (colored)
checkpoint long-running view updates

Improves stale=ok view queries, which will now see gradually updating indexes.
Also reduces the consequences of an updater crash because we can restart from
the latest checkpoint.

Revision 794057 - (view) (annotate) - [select for diffs]
Modified Tue Jul 14 20:21:39 2009 UTC (4 months, 1 week ago) by nslater
File length: 18843 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: 18838 byte(s)
Diff to previous 791140 (colored)
trimmed trailing whitespace

Revision 791140 - (view) (annotate) - [select for diffs]
Modified Sat Jul 4 15:47:47 2009 UTC (4 months, 3 weeks ago) by jchris
File length: 18910 byte(s)
Diff to previous 780165 (colored)
Name view index files by their function hashes for no downtime deploys. Closes COUCHDB-218

Adds ability to switch view indexes on the fly by building the index from a "staging" design doc, and then COPYing the staging doc to the production doc's id. Since indexes are referenced by view definition, the new version of the production design doc will point immediately to the index files already built in staging.

Please use and give feedback.

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: 17530 byte(s)
Diff to previous 778485 (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 778485 - (view) (annotate) - [select for diffs]
Modified Mon May 25 19:52:28 2009 UTC (6 months ago) by damien
File length: 17458 byte(s)
Diff to previous 771466 (colored)
Merging new tail append storage into trunk. Upgrades are automatic, once opened by this version  old versions of CouchDB will not be able to open the files. As a precaution, you should back-up your production databases before upgrading.

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: 17405 byte(s)
Diff to previous 763858 (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 763858 - (view) (annotate) - [select for diffs]
Modified Fri Apr 10 02:21:37 2009 UTC (7 months, 2 weeks ago) by damien
File length: 17240 byte(s)
Diff to previous 762153 (colored)
Fixes for leaked file handles, with test.

Revision 762153 - (view) (annotate) - [select for diffs]
Modified Sun Apr 5 20:34:35 2009 UTC (7 months, 3 weeks ago) by kocolosk
File length: 17199 byte(s)
Diff to previous 739866 (colored)
added compaction for view indexes.  See COUCHDB-92

No tests or Futon interface for this feature yet.

Revision 739866 - (view) (annotate) - [select for diffs]
Modified Sun Feb 1 22:21:09 2009 UTC (9 months, 3 weeks ago) by jchris
File length: 14472 byte(s)
Diff to previous 736906 (colored)
Added options member to design docs. Currently the only option is include_designs (views can now run over design docs as well if they need to), the default is false, which is the current behavior. Thanks davisp for the original patch. Closes COUCHDB-156

Revision 736906 - (view) (annotate) - [select for diffs]
Modified Fri Jan 23 04:15:47 2009 UTC (10 months ago) by damien
File length: 14329 byte(s)
Diff to previous 733174 (colored)
Added task status checking, to help debug the progress of long running tasks, like view indexing and compaction.

Revision 733174 - (view) (annotate) - [select for diffs]
Modified Fri Jan 9 22:20:48 2009 UTC (10 months, 2 weeks ago) by damien
File length: 14316 byte(s)
Diff to previous 731618 (colored)
Added support so clients can detect if a server has potentially lost commits after multiple updates, like during bulk imports and so the replicator can detect lost commits on remote replications.

Revision 731618 - (view) (annotate) - [select for diffs]
Modified Mon Jan 5 17:03:02 2009 UTC (10 months, 3 weeks ago) by damien
File length: 14316 byte(s)
Diff to previous 731144 (colored)
Fixed views to not commit index headers if they are ahead of what has been fully committed to the database. Also, the index headers are now committed async, improving response times updating views.

Revision 731144 - (view) (annotate) - [select for diffs]
Modified Sun Jan 4 01:01:33 2009 UTC (10 months, 3 weeks ago) by jchris
File length: 13557 byte(s)
Diff to previous 727832 (colored)
Rename _temp_views to _slow_views. Any clients who were using temp views are encouraged not to use slow views, and instead transition to design documents (or running the views on the client).

Revision 727832 - (view) (annotate) - [select for diffs]
Modified Thu Dec 18 21:43:34 2008 UTC (11 months, 1 week ago) by damien
File length: 13557 byte(s)
Diff to previous 726143 (colored)
fix for crash of couch_server when database non-existant

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: 13329 byte(s)
Diff to previous 725909 (colored)
move couchdb to tlp

Revision 725909 - (view) (annotate) - [select for diffs]
Modified Fri Dec 12 05:23:37 2008 UTC (11 months, 2 weeks ago) by damien
Original Path: incubator/couchdb/trunk/src/couchdb/couch_view_group.erl
File length: 13329 byte(s)
Diff to previous 724946 (colored)
modifications to view server to keep the file descriptor open for the life of the view group.

Revision 724946 - (view) (annotate) - [select for diffs]
Added Wed Dec 10 01:13:17 2008 UTC (11 months, 2 weeks ago) by jchris
Original Path: incubator/couchdb/trunk/src/couchdb/couch_view_group.erl
File length: 6594 byte(s)
view group state gen_server. thanks damien and davisp.

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