Serialization vs Embedded Database for simple standalone application

前端 未结 2 1867
轮回少年
轮回少年 2021-01-28 13:12

Say, I have a pretty simple Java application that needs the way to store some user settings. XML is not a really good solution, since I want to store them in binary form. So, wh

2条回答
  •  执笔经年
    2021-01-28 14:02

    As Apache Derby is an embeddable relational database, it makes sense to use it for storing and manipulating relational data. Using an embedded db for persisting a few user settings only is a bit overkill.

    If it were me, I would use a simple key/value pair serialization for persisting user settings.

提交回复
热议问题