-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[venus-sector-manager] 扩展可用数据库类型 #323
Comments
关于统一 wrapped store & 多类型 datastore 的对比背景目前 sector-manager 中对于不同类型的数据存放存在两种模式,它们分别是:
对比db 层的比较:
编码层的比较:
互相 migrate 的对比:基于目前代码中存在两种混用的情况,统一化则需要进行 migrate
总结统一成任何一种目前都存在一些问题,不过基于代码层都会进行改造,而数据库层面使用多个实例这种方式(外部数据库使用 table/collection),对于数据库的性能和可维护性都比较亲和,倾向于将目前的代码统一成使用多个实例这种方式。 |
建议使用根据用途区分多实例的方式,同时保持 prefix wrapper 的使用逻辑 |
模块 / Components
描述 / Description
The text was updated successfully, but these errors were encountered: