couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Алекс Zatvornitskiy <a.zatvornits...@gmail.com>
Subject I've just released a first preview of couch_normalizer
Date Wed, 13 Feb 2013 15:04:00 GMT
Hi everybody!

A couch_normalizer v0.6 is out!

The couch_normalizer designed as a standard Apache CouchDB httpd handler
and uses a Rails db migration approach. Written both in Erlang and Elixir.
Works well on production and has a great IO performance.

For example:

% Starts a normalization process.

% curl -v -XPOST -H"Content-Type: application/json"
http://127.0.0.1:5984/db/_normalize

% => {"ok":"Normalization process has been started (<0.174.0>)."}


% Gets a normalization process execution status.

% curl -v http://127.0.0.1:5984/_active_tasks

% =>
[{"pid":"<0.174.0>","continue":false,"db":"db","docs_conflicted":0,"docs_deleted":0,"docs_normalized":0,"docs_read":3000,"finished_on":1358513508,"num_workers":5,"started_on":1358513508,"type":"normalization","updated_on":1358513508}]

As a result, it allows to deploy migration scripts (aka scenarios) and
change big amount of documents as fast as possible (without HTTP overhead
and some kind of 'delayed jobs') via internal CouchDB functions, such as
couch_db:open_doc/2, couch_db:update_doc/3 and so on.

Check more: https://github.com/datahogs/couch_normalizer

If you want to contribute, feel free to open an Github issue or submit a
pull request or ping me offline)

It still under scoping and development.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message