(C++) 序列化客户数据库的最佳方法?
我目前正在为公证人编写一个程序,用于存储他的客户信息,这是我关心的问题:
XML + 序列化使用与矢量(对象)+序列化使用与 SQL 数据库。
使用 Qt ,我想知道哪一个最适合存储客户端、搜索和修改客户端?
我有很多文本框和复选标记(姓名、地址、卖家信息、买家信息等)。
感谢您的想法!
I'm currently doing a program for a Notary for storing his customers informations, and here's my concern:
XML + Serialisation usage vs Vector (of Objects) + Serialisation usage vs SQL Databases.
Using Qt, I would like to know which would be the best for storing clients, searching and modifying the clients?
I have a lots of textboxes and checkmarks (Names, adresses, Sellers informations, Buyers informations, etc).
Thanks for your thoughts!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
就我个人而言,我会选择 SQLite 数据库。 XML 非常适合程序或存储之间的交换,但对于搜索来说并不是最有效的。矢量序列化并不那么容易记录。 SQLite 众所周知、嵌入式(无需单独的进程)、易于搜索且速度高效。我认为这是速度和自我文档的最佳折衷方案。
我假设这是一份个人保存具有法律意义的记录的申请。
Personally, I'd go with an SQLite database. XML is great for interchange between programs or storage, but not the most efficient for searching. Vector serialization is not so easily documented. SQLite is well-known, embedded (no separate process needed), easy to search, and efficient for speed. I would consider that the best compromise for speed and self-documentation.
I'm assuming this is an application for one person's keeping of legally significant records.