Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
解决以下问题的最佳方法是什么:
我有一个用作 OLTP 服务器的 Sybase ASE 数据库。每天都会有大量数据插入到数据库中,因此“实时”表仅保存最后 n 天的数据(n 可能因表而异)。
我想介绍一个 Sybase IQ 服务器作为决策支持服务器,它保存所有前几天的数据以用于报告目的。
我想要一个夜间作业,它将 Sybase IQ 表与 ASE 中的表“同步”,即插入所有新行,更新所有更改的行,但不删除活动表所代表的 n 天之外的任何行。
欢迎所有想法!
您必须开发一个 ETL(提取转换负载)过程。
有很多商业和免费的 ETL 产品。但我认为在这种情况下最好的方法
创建 RS ASE -> ASE 复制(直接 ASE -> IQ 性能会很差)
修改删除函数字符串以分隔删除操作
通过链接服务器连接从第二个 ASE db 中定期截断插入 IQ 表(IQ 中的更新非常差)