是否有多键键值存储?

发布于 2024-10-03 23:35:24 字数 269 浏览 0 评论 0原文

是否有专门的存储来存储元组,即 t=(clicks,impressions, ctr) 散列在多个值上 - 比如说 pageId、categoryId、userId、sessionId 等。

我知道我可以使用 MySQL、MongoDb 等来做到这一点。但我更喜欢寻找一些专门的、甚至嵌入式(Java)商店。它不需要像 RDMBS 那样提供复杂的查询语言或事务。但原子性和持久性将是一个优点。 ;)

我认为这也可用于在多个维度存储聚合数据的 DWH 类型应用程序,但我还没有找到任何此类产品。

Is there a specialized store for storing tuples i.e. t=(clicks, impressions, ctr) hashed on multiple values - let's say pageId, categoryId, userId, sessionId et cetera.

I know I could do this using MySQL, MongoDb et cetera. But I am more looking for some specialized and mabye even embedded (in Java) store. It does not need to offer a complex query language or transactions like RDMBS. But atomicity and durability would be a pro. ;)

I figure this could also be of use for DWH-type applications storing aggregate data in multiple dimensions but I have not found any such product.

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

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

发布评论

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

评论(3

冬天的雪花 2024-10-10 23:35:24

您最好的选择是使用

HashMap<Key1Type, HashMap<Key2Type, ValueType>> 

或者如果您的项目都可以通过字符串表示,您可以连接它们的值并将它们全部存储在

HashMap<string, ValueType>

Your best bets are to either to use

HashMap<Key1Type, HashMap<Key2Type, ValueType>> 

or if your items can all be represented via string, you could concatenate their values and store them all in

HashMap<string, ValueType>
佼人 2024-10-10 23:35:24

如果您可以接受定期加载过程,则 OLAP 服务器(例如 Mondrian 或 SQL Server Analysis Services)可能适合您。尽管底层数据结构不是哈希表,但它们正是这样做的。实际上,您需要将数据暂存到数据库中并将数据从数据库加载到多维数据集中。

If you can live with a periodic load process an OLAP server such as Mondrian or SQL Server Analysis Services might work for you. They do exactly this sort of thing, although the underlying data structure is not a hash table. Practically you will need to stage the data into a database and load the data from the database into the cube.

拔了角的鹿 2024-10-10 23:35:24

使用键值存储,您始终可以使用键组合在单个键列中存储多个列。也就是说 wiredtiger 确实提供了键和值的多个列,并且能够进行投影来构建索引。

键组合是将多个值包装在单个值中的做法,最简单的组合使用字符作为分隔符,例如 ":"

Using a key-value store you can always use key composition to store multiple columns in single key column. That's said wiredtiger does offer multiple columns on key and value with the ability to do projection to build indices.

Key composition is the pratice of packing a multiple value in single value the simplest composition use a char as separator such as ":".

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