What is the best practice to update production view?


#1

Hello,

I’m having hard time updating my production views.

This is my current workflow when I need to update map and reduce code.

  1. Create a new design document
  2. Put the revised view
  3. Change my code to use the new view
  4. Push the code
  5. Revise the old view
  6. Change code to use the old view again
  7. Push the code
  8. Remove unnecessary view from #1

Is there a better way?


#2

Hi @moon0326

This is the correct procedure according to the docs.

I recommend to set a new name for the development design document when you copy the production. This way you can switch the view in the code when the new view is ready.


#3

Thank you @mathias for the link :slight_smile: