couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael J. I. Jackson" <mjijack...@gmail.com>
Subject Re: Rename a database?
Date Wed, 24 Feb 2010 15:31:10 GMT
Seems I read something somewhere about HTTP MOVE (WebDav extension?) being
supported in a former incarnation.

--
Michael J. I. Jackson
http://mjijackson.com/
@mjijackson


On Tue, Feb 23, 2010 at 3:49 PM, Sean Hess <seanhess@gmail.com> wrote:

> I need the system to stay live the whole time, so the rename has to be
> nearly instantaneous. I do wish there was an http way to do it though.
>
> On Feb 23, 2010, at 3:42 PM, Nils Breunese <N.Breunese@vpro.nl> wrote:
>
> > You could use the replication feature. imported_data is your live
> > database and you create new_imported_database for the import. Once
> > the import is done you drop the imported_data, create a fresh
> > imported_data database and replicate new_imported_database to
> > imported_data. Afterwards you can delete new_imported_database. This
> > does require more storage than renaming the database on the
> > filesystem level, but the replication method can be done entirely
> > via HTTP.
> >
> > Nils.
> > ________________________________________
> > Van: Sean Clark Hess [seanhess@gmail.com]
> > Verzonden: dinsdag 23 februari 2010 20:04
> > Aan: user@couchdb.apache.org
> > Onderwerp: Rename a database?
> >
> > I need to import vast amounts of data into a couch database every
> > night. The
> > company providing us the data does not provide a list of changes, so
> > we need
> > to regenerate everything from scratch.
> >
> > I was thinking that it would be nice if I could create a new
> > database in
> > couch, copy in all the new data, then rename them once it is done.
> > That way
> > my old data can stay live while the new data is importing.
> >
> > Is there a way to rename databases? So, I would have an
> > "imported_data"
> > database, create a "new_imported_database", then delete the old and
> > rename
> > the new when the import finished.
> >
> > Any other ideas?
> >
> > De informatie vervat in deze  e-mail en meegezonden bijlagen is
> > uitsluitend bedoeld voor gebruik door de geadresseerde en kan
> > vertrouwelijke informatie bevatten. Openbaarmaking,
> > vermenigvuldiging, verspreiding en/of verstrekking van deze
> > informatie aan derden is voorbehouden aan geadresseerde. De VPRO
> > staat niet in voor de juiste en volledige overbrenging van de inhoud
> > van een verzonden e-mail, noch voor tijdige ontvangst daarvan.
>

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