Sequentially Numbered Orders


#1

We are looking to have sequentially numbered orders in our system. Not necessarily in place of the traditional random id, but at least in addition to it.

Our internal communication will be complicated significantly if we are referencing order id jjiEpcAtyJqaK94ux instead of order no. 10213, especially for our Customer Service reps and fulfillment service workers.

We are planning to use the ‘counters collection’ method seen here: https://docs.mongodb.org/manual/tutorial/create-an-auto-incrementing-field/

Are there any plans for this to be a part of core or does anyone else share this need?


#2

I think it would be a useful implementation and could probably be done on the schema, with a call to the id generator. I imagine you could extend the Counters with some formatting tools as well, if you wanted to not just use numbers… would be useful for products, etc as well.