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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -