Conversion of EpisodeAction to CouchDB backend
commit262684ee41ccff3e3ce6646bfa13f8ee04901aed
authorStefan Koegl <stefan@skoegl.net>
Thu, 18 Nov 2010 19:53:50 +0000 (18 21:53 +0200)
committerStefan Koegl <stefan@skoegl.net>
Tue, 23 Nov 2010 08:33:39 +0000 (23 10:33 +0200)
tree6f48da24527da7d1161bdba66323c49bbf8218df
parentc866ab2a59a2908486933f307022e86aba3c13c7
Conversion of EpisodeAction to CouchDB backend

The conversion is via the management command migrate-episode-actions and
should be carried out incrementally based on the Ids of the actions in the
relational backend (ids given with --min-id=<id> and --max-id=<id>).

As episode actions are never changed, the migration can catch up until it
reaches current items. If the backlog is small enough (eg a few thousand
objects), creation of new episode actions in the relational backend can
be stopped, all remaining objects migrated and the backend be switched to the
CouchDB based one (which still has to be implemented).
doc/couch/documents.txt
mygpo/core/_design/validate_doc_update.js
mygpo/core/_design/views/episodes_by_id/map.js [new file with mode: 0644]
mygpo/core/_design/views/episodes_by_oldid/map.js [new file with mode: 0644]
mygpo/core/_design/views/episodes_by_url/map.js [new file with mode: 0644]
mygpo/core/_design/views/podcast_states_by_podcast/map.js [new file with mode: 0644]
mygpo/core/_design/views/podcast_states_by_user/map.js [new file with mode: 0644]
mygpo/core/management/commands/migrate-episode-actions.py [new file with mode: 0755]
mygpo/core/models.py
mygpo/migrate.py
mygpo/utils.py