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 <[email protected]> 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 [[email protected]] > Verzonden: dinsdag 23 februari 2010 20:04 > Aan: [email protected] > 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.
