多个客户端在没有服务器的情况下查询数据
我正在开展一个学校项目,其中客户需要让多个用户查询和写入单个数据源。用户可以访问共享网络驱动器,并且所有功能都必须位于客户端应用程序中,IT 部门不允许从其服务器之一运行服务,并且外部服务器托管不是一种选择。
实际需要存储的数据量其实很少,最多也就144行左右。
我研究过使用嵌入式数据库、 sqllite 、 hsql 、 objectdb ...等,但它们似乎过度杀伤了需要保存的数据量。对于 hsql 来说,如果有人访问数据库,它就会被完全锁定到任何其他用户。并发性并不是什么大问题,尽管一年很少只有几次,但会有 5-7 个人使用该系统。
使用 XQuery 之类的东西并序列化 xml 中的所有内容是否是一个可行的选择,或者只是简单地使用 java 可序列化 api?
I'm working on a school project where the client needs to have multiple users querying and writing to a single data source. The users have access to shared network drives and all functionality has to be in the client application, the IT department won't allow a service to run from one of their servers and external server hosting isn't an option.
The amount of data that actually needs to be stored is actually very little, about 144 rows maximum.
I've looked into using embedded databases, sqllite , hsql , objectdb ... etc but they seem over kill for how little data needs to be saved. It also seemed like with hsql if anyone accessed the database it would be completely locked to any other user. Concurrency wouldn't be much of an issue there will be 5-7 people using the system albeit scarcely only a few times a year.
Would using something like XQuery and serializing everything in xml be a viable option or just simply using the java serializable api?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将文件写入共享网络驱动器的分布式客户端数据库可能是此用例的一个很好的解决方案。看看Cloud DB,它可能就是您想要的。
A distributed, client side database writing files to the shared network drive could be a good solution for this use case. Take a look at Cloud DB, it might be what your looking for.