Skip to content

Correctness of indexing zero-length string/binary keys #1

Description

@katyo

An attempt to index field values of zero-length causes LMDB error.
It because LMDB not support for that key length.

So currently zero-length values doesn't indexing, i.e. it is treated as nulls.
But that solution may have problems with some filters (like "$has") which differentiates nulls and empty values.

One of possible solutions is adding some character to all values (of string and binary types) when converting to keys.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions