Skip to content

Label is truncated when using fast update #58

@Katherine-101

Description

@Katherine-101

Hi!

I have loaded SenderDB from disk to memory, and doing insert operation for a new data (item-label pair) by SenderDB::insert_or_assign. label_byte_count_ in the loaded SenderDB is 7, but the label bytes of new data is 32. I found the new label is truncated to 7 bytes when the receiver get the query result.

image
image

Is this an unresolved issue, or something wrong with my operation?
I want to use fast update in this case (new label larger than old label in DB). My basic idea is to extend the label_bins_ to put the extra label part, pad the other position with zero in new bins, and then generate the polynomials. But it will raise a problem about label decryption. The effective_label_byte_count becomes variable, so it is hard to decrypt the label correctly.

Could you please give me some advice?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions