zrlw commented on issue #13298: URL: https://github.com/apache/dubbo/issues/13298#issuecomment-1798818236
如果修改nacos,增加按content字段查询config_info表的接口,这个接口不好写。 比如```content="a,b,c"```有三个应用分别是a、b、c,那么查询应用名为b的记录要怎么写,写```content like ',%b%,'```不行,万一```content="b,c"```就查不到了,写```content like '%b'```也不行,万一```content="xbx,c"```就查错了。 保证功能正确,只能去遍历groupid=mapping的全部记录,将每条记录的content按逗号分拆成数组,再逐个查数组里的每个元素。记录少的时候这么搞还可以凑合用,记录多的时候还这么搞,效率太差。 -- 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]
