biedongbin commented on issue #7840:
URL: 
https://github.com/apache/incubator-seata/issues/7840#issuecomment-3680140868

   另外  目前的seata设计,代码未对上下文大小做控制,, 表设计上大小控制了2000 , 比如 
BusinessActionContextParameter 注解默认写入上下文,此处实际使用中非常容易出现内存问题, 建议 引入此类设计
   
   找AI 写了一个 深度cope util ,几个原则
    * 1. 深度拷贝控制 - 支持设置最大拷贝深度,避免过度拷贝  (默认1, 最大限制3)
    * 2. 循环引用检测 - 自动检测并截断循环引用,防止StackOverflowError 
    * 3. 字段过滤 - 支持include/exclude模式精确控制拷贝字段   (默认最多copy 15个字段)
    * 4. 类型优化 - 不可变类型直接返回原引用,时间类型通过格式化重新创建新实例
    * 5. 集合支持 - 支持Map、Collection和Array的深度拷贝,可控制集合大小(默认1,最大限制10)
    * 6. 循环结构禁止 - 明确禁止可能引起循环的Node结构等
    * 7. 继承支持 - 自动处理父类字段的拷贝
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to