Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要存储一个“长”Java 变量。 问题是:将“Long”变量的十六进制表示存储到 blob 和将“Long”变量存储到 bigint 的存储成本是否相同? 有任何性能优点或缺点吗?
我认为blob字段有一个长度 int 作为前缀。所以它的开销很小。
blob
顺便说一句,如果您已经知道需要长数据类型,为什么不坚持使用bigint?
bigint