使用 Berkeley DB API 作为 Spring+JPA 应用程序 (DB2) 的缓存解决方案

发布于 2024-10-09 06:24:58 字数 204 浏览 0 评论 0原文

我们的应用程序处理数百万条记录,我们将 spring 与 jpa 结合使用。

目前,我们正在探索在我们的应用程序中使用伯克利数据库的可行性,但通过谷歌搜索找不到太多可用的解决方案。

我们想知道是否可以使用任何 BDB API 来缓存从 DB2 数据库检索的数据,我们希望这样做可以更好地提高性能,因为数据每天都会增长。

任何帮助将不胜感激。谢谢。

Our application deals with millions of records and we use spring with jpa.

Currently we are exploring on the feasibility to use Berkeley database in our application and as couldn't find much solutions available googling.

We would like to know whether any of BDB APIs can be used in caching the data retrieved from DB2 database, we want to do that to increase the performance much way better since the data will grow on a daily basis.

Any help would be appreciated. Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

青芜 2024-10-16 06:24:58

我不知道 BerkeleyDB 本身中有任何与此相关的内容,也不知道 JPA 本身中有任何可以让您附加缓存的内容。相反,各种实现中都有用于插入缓存的接口 - 因此,答案将取决于您使用的 JPA 实现。

快速浏览一下,似乎 OpenJPA 和 EclipseLink 都没有任何方式使用磁盘上的缓存,但 Hibernate 可以使用各种缓存提供程序,其中 EHCache 和 OSCache 都有磁盘上的选项。我不知道其他实现。

I'm not aware of anything in BerkeleyDB itself that is geared towards this, nor anything in JPA itself that lets you attach caches. Rather, there are interfaces in the various implementations for plugging in caches - hence, the answer will rather depend on which JPA implementation you're using.

Based on a quick look, it seems neither OpenJPA nor EclipseLink have any way to use an on-disk cache, but Hibernate can use a variety of cache providers, of which EHCache and OSCache have on-disk options. I don't know about other implementations.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文