-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
清理历史宏定义问题 #209
Comments
清除宏定义的业务背景是什么? |
你好:业务描述:ql上下文参数中的key可能存在多个同义名词,比如:上下文参数中某key=预计结算费用,在我们系统中“预计结算费用”的英文关键字为fee,我们要在ql公式中能使用像“预计结算金额”、“预计结算款”等名词都能映射到fee,做法就是添加多组映射到fee的宏定义。客户场景:每个客户实体可能对于关键字的别名不同,都需要有各自的宏定义,同时要能支持清理历史定义的宏,所以需要把清理接口进行暴露处理手段:看了一下ql的代码,发现loader是私有的不能够直接去处理loader下的宏定义。目前我们暂时是创建新的runner去注册新的宏定义,像咨询一下有无更好的手段发自我的 iPhone在 2022年9月14日,21:40,DQYuan ***@***.***> 写道:
清除宏定义的业务背景是什么?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
其实你想要的是多租户的功能,是吗?目前 QLExpress 没有这个能力,如果单例做可能会有并发问题,每次都创建新的实例也会有性能风险。我们目前在开发新的版本,可能会考虑多租户的功能,有兴趣的话可以微信交流下,微信号可以发我邮箱 qinyuan.dqy@alibaba-inc.com |
推荐一个方案:使用单例的 ExpressRunner,然后在宏内部根据 context 中的一个变量进行逻辑分发,然后不同租户调用 execute 之前,将自己的租户标识写到 context 中 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题背景:应用中需要将ExpressRunner定义的历史macro清理掉,查看了源代码,runner下的loader属性是私有的,外层无法调用clear方法去清除macro。请问有什么方法能清理macro么?
The text was updated successfully, but these errors were encountered: