java - Edit several hundred Protocol Buffer serialized messages read from database -


for operation on application, need read database & edit several hundred protocol buffer serialized messages. in each pb message, there 4 int fields , 1 boolean field, , in new message the boolean field required changed.

i in doubt best way accomplish this, , seeking & expert opinion.

i guess building entire messages once again creating builder objects rather expensive..

the builder approach should cheap enough, if can execute near server minimise latency. however, if bit field has first/last field number, should single byte update in either 2nd or last byte, might possible in sql if like. in fact, long want skip ints (i.e. don't need know or change them), picking out bool in middle easy.

but try route using existing client first; may faster think.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -