We have come up with following situation when trying to evaluate couchbase server for a new project.
Lets say we have 10000 User documents as following structure.
{
username: ‘myusername’,
firstName: ‘Mike’,
lastName: ‘Rodgers’
}
Now lets say next version of our application we need to re-factor above document as follows.
{
username: ‘myusername’,
name: {
firstName: 'Mike’
lastName: ‘Rodgers’
}
}
Is there any straight forward way to do this in couchbase at once. (For example in SQL databases we can simply run data migration script and convert old data in to new structure )
Thanks