turms-im / turms

🕊️ The world's most advanced open source instant messaging engine for 100K~10M concurrent users https://turms-im.github.io/docs
Apache License 2.0
1.72k stars 266 forks source link

TurmsMapCodec valueCodec ? #1490

Closed lovemianhuatang closed 2 months ago

lovemianhuatang commented 2 months ago

当使用 Map<String, Object> 类型字段value类型不同时,数据保存为空。

image image image
lovemianhuatang commented 2 months ago
image

可能是嵌套时valueCodec的问题,包括decode

JamesChenX commented 2 months ago

Most of the time, we don't support features that we don't use. As if when coding in Java, it is not a bug that ArrayList will have many problems when working in a multi-threaded environment because ArrayList is not designed to work with multi threads at all.

In this case, it is the same. But we may support it when supporting custom entity properties.