Ckuangf commented on issue #1963:
URL: 
https://github.com/apache/incubator-hugegraph/issues/1963#issuecomment-1247792368

   > > 在mysql作为存储后端的时候,使用的语句是replace 
into,而mysql中是不区分大小写的,所以在插入的时候会出现更新覆盖id和propertis情况,导致插入的顶点丢失
   > 
   > 看起来两个解决方案:
   > 
   > 1. 换一个原本就不区分大小写的 id 字符生成方式
   > 2. 让 mysql 导入的时候能区分大小写?
   > 
   > 似乎优先考虑第二个合力点? 有意愿可以尝试 PR fix 下
   
   这里比较好奇为什么需要在数据库里面存一个Base64的值,如果是为了加密 那使用一个对称加密的方式生成id也可以避免这种情况的。
   
   而且这里似乎会出现的问题具有普遍性,只要是不区分大小写的后端存储  都会有这个风险。最好是能唯一确定入库时的id


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to