Better ID generation for couchbase-model