I want to convert this schema
{
total: Number
leaves: Number
fakes: Number
inviterID: String
fake: Boolean
}
to
{
invites: Number
leaves: Number
fakes: Number
inviterID: String
fake: Boolean
}
invites
will be calculated using total - leaves
. What will be the fastest way to transfer 70 million documents to this layout using that calculation and also deleting the total
property?