共享业务镜像库与商品价格同步样板 #52
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "feature/WuYongJie-business-mirror-product-prices"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
目标
将“商品价格”从按页查询快照改为项目共享业务镜像表,解决第一页有数据、翻页却需要另一份冷快照的问题,并建立后续业务表物化同步的可复用样板。
实际修改范围
business_mirror,默认与系统配置库复用同一 MariaDB/TLS/账号,但数据和表结构分库保存。business_mirror_sync_states、product_price_mirror_rows迁移。business-mirror:sync-product-prices,支持可断点首次全量同步及 48 小时重叠增量同步。operations_replica / rpt.Bulk_Price_Limit,使用 datetime2(7)+业务ID+条码稳定游标,小批量参数化只读查询。写入公共契约
business_mirrorcaiwu_business_mirrorsupplier-payables.product-pricesbusiness_mirror_sync_states,product_price_mirror_rowsbusiness-mirror:sync-product-prices仅复用、不修改
operations_replicarpt.Bulk_Price_Limit验证
bash -n通过;git diff --check通过。高风险与回滚
caiwu_business_mirror、执行迁移和读取上游生成首份镜像。WIP: 共享业务镜像库与商品价格同步样板to 共享业务镜像库与商品价格同步样板