Mongodb collection update patterns -


i have collection in db(e.g. merchants) gets updated regularly in prod. have db population script run every time.

this removes configuration collections , inserts them again based on data in script e.g. includes update merchant config.

db.merchants.remove({}); db.merchants.insert(themerchant); 

is there better pattern/procedure people use this? cant seem find guidance on how people doing in production. links methods people use great.

e.g. in sql server create patches


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -