Just to add,
Basically, referencing MongoDB documentation on "Optimizing ObjectIDs", the suggestion is to "store Binary GUIDs as BinData, rather than as hex encoded strings. BSON includes a binary data datatype for storing byte arrays. Using this will make the id values, and their respective keys in the _id index, twice as small."
I was not able to see a BinData data type in the record.field package. How would you switch out mongoauth's User's id to be of BinData data type instead and use base64 encoded values?
Thank you.