The export needs a wash on the way out

MongoLoader » Use cases » Clean the data on the way out

Download MongoLoader Free Trial »     Buy MongoLoader Now »

The situation

The application does not care that the same customer is in the collection three times, that the dates are stored in three different shapes, or that the phone numbers came in as numbers. The person receiving the export does care, and the loader on the other side cares even more.

Cleaning it in the spreadsheet means the work is repeated every time the export runs - and it is exactly the kind of work somebody forgets.

What you do

  1. Set the export up as usual - the collection, or a query if the messy rows can be filtered out - and choose the output format.
  2. Apply the cleaning on the way out: remove duplicates, format dates into one shape, convert data types so numbers and text arrive as the reader expects, and set the validation rules that decide what is written.
  3. Choose the fields and any format details the target needs - delimiter, sheet name, JSON structure.
  4. Run, and save it as a session so the cleaning happens identically next time.

Choosing the output file and fields for a MongoDB export in MongoLoader

Because the rules live in the task rather than in someone's spreadsheet, the file that arrives downstream is the same shape every week. Batch export applies the same treatment across many collections in one run.

What it will not do

Related

The export itself: collection to file, collections to files, query to file. Going back in afterwards: export, edit, import back. Both directions in one tool: one tool for both directions. Formats: large exports.