Closed hungphan227 closed 4 months ago
public static AttachmentId random() {
return new AttachmentId(RANDOM_STRING_GENERATOR.generate(20));
}
@chibenwa IMO 20 characters is not big. Is it necessary to use UUID?
It's not only a question of space but also of efficiency... Let me have a look.
The biggest issue I faced when trying to "drop" the use of String in favor of UUID in existing code - namely CassandraMessageDAOV3.
Yet, I would still prefer a clean use of UUID please
pr for master branch https://github.com/apache/james-project/pull/2133
pr for postgresql branch https://github.com/apache/james-project/pull/2142
unbind AttachmentBlobResolver in master branch https://github.com/apache/james-project/pull/2150
Why
ID in attachment table should be UUID? (https://github.com/apache/james-project/pull/2108/commits/19caaf72ff47904e2427b2a8f7fefb11221102f6)
How