是否有支持协议缓冲区的数据库?

时间:2022-02-01 07:43:10

Are there any databases, in either the SQL or NoSQL worlds, that support protocol buffers? (Support could mean various things, but hopefully would include being able to index on fields in protocol buffers.)

在SQL或NoSQL世界中,是否有任何数据库支持协议缓冲区?(支持可能意味着各种各样的东西,但希望包括能够对协议缓冲区中的字段进行索引。)

2 个解决方案

#1


3  

I am not aware of any (not that they don't exist, I just don't know about them), but perhaps it is worth discussing an alternate strategy and the pros and cons.

我不知道有什么(不是说它们不存在,只是我不知道),但也许有必要讨论一下另一种策略以及利弊。

Typically you would want to store a serialized version of your protocol buffer, indexed by some particular key (a unique identifier, perhaps). You could then build secondary indexes for other interesting fields that point to that unique identifier. The idea is that you would want explicit indexes like this to scale beyond what a system that provides arbitrary indexes. This obviously opens up a world of new problems (such as stale arbitrary indexes).

通常,您希望存储协议缓冲区的序列化版本,由某个特定键(可能是唯一标识符)索引。然后,您可以为指向该唯一标识符的其他有趣字段构建辅助索引。其思想是,您希望像这样的显式索引能够扩展到提供任意索引的系统之外。这显然打开了一个新问题的世界(比如陈旧的任意索引)。

#2


1  

Here is a project I found: https://github.com/google/mysql-protobuf

这是我找到的一个项目:https://github.com/google/mysql-protobuf。

It's sql that speaks protobuf, looks promising but last commit was in mid March 2016.

它的sql语言说的是protobuf,看起来很有前途,但最后一次提交是在2016年3月中旬。

#1


3  

I am not aware of any (not that they don't exist, I just don't know about them), but perhaps it is worth discussing an alternate strategy and the pros and cons.

我不知道有什么(不是说它们不存在,只是我不知道),但也许有必要讨论一下另一种策略以及利弊。

Typically you would want to store a serialized version of your protocol buffer, indexed by some particular key (a unique identifier, perhaps). You could then build secondary indexes for other interesting fields that point to that unique identifier. The idea is that you would want explicit indexes like this to scale beyond what a system that provides arbitrary indexes. This obviously opens up a world of new problems (such as stale arbitrary indexes).

通常,您希望存储协议缓冲区的序列化版本,由某个特定键(可能是唯一标识符)索引。然后,您可以为指向该唯一标识符的其他有趣字段构建辅助索引。其思想是,您希望像这样的显式索引能够扩展到提供任意索引的系统之外。这显然打开了一个新问题的世界(比如陈旧的任意索引)。

#2


1  

Here is a project I found: https://github.com/google/mysql-protobuf

这是我找到的一个项目:https://github.com/google/mysql-protobuf。

It's sql that speaks protobuf, looks promising but last commit was in mid March 2016.

它的sql语言说的是protobuf,看起来很有前途,但最后一次提交是在2016年3月中旬。