Choice of unique document id and performance

Thanks a lot for your reply Adrien!