protocol buffers - How to retrieve protobuf data rendomly? -
i want store large amount of data in protobuf format in include time-stamp parameter. , want retrieve data based on time-stamp value. thanks.
protobuf sequential-access format. there's no way jump middle of message looking data; have parse through whole thing.
some options:
- devise framing format allows break datastore many small chunks, each of separate protobuf message. large project.
- use sqlite or actual database.
- use random-access-fieldly format cap'n proto instead. (disclosure: i'm author of cap'n proto, , of protobufs v2 (google's open source release).)
Comments
Post a Comment