Skip to content

Support size check when adding multiple records into set #122

@zyiou

Description

@zyiou

Is your feature request related to a problem? Please describe.
Currently we only support size check before sending the message, but adding multiple records to set will also cause size excess. We should make sure the set size is under size limit when adding records.

Describe the solution you'd like
Solution 1:

  • add record to set, check current length and length difference
  • if current length exceeds limit, revert set buffer by length difference

Solution 2:

  • build the record from element list
  • provide method to add record directly to set and check the size
  • if total length exceeds limit, return error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions