如何在PostgreSQL和SQLite之间同步一些数据
我需要“同步” PostgreSQL和SQLITE之间的一些数据。不是整个数据库,有些表。我正在使用Python。
我的场景:
主系统 - > Postgresql 本地系统 - > SQLITE
我的本地系统通过端点(JSON)消耗从主系统中的数据。
我想,当我的主系统中的更新(例如:产品更改描述)时,我的本地系统会更新他的数据。
我认为这样的事情是:
- 主系统具有更新的
- 主系统通知本地系统
- 本地系统访问并从主系统
- 本地系统更新他的数据库
是更好的漏洞吗? Somenone对此有任何材料吗?
I need "sync" some data between postgresql and sqlite. Is not the entire database, some tables. I'm using python.
My scenario:
Main System -> postgresql
Local System -> sqlite
My local system consumes data from main system through of a endpoint (json).
I want to, when is a update in my main system (example: a product change description), my local system update his data.
I thinked something like this:
- Main system has a update
- Main system notify local system
- Local system access and download data from main system
- Local system update his database
Is a better aproach? Somenone has any material about this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论