Skip to content

Clean up use of "magic numbers" throughout the codebase by introducing constants #287

@Varun0157

Description

@Varun0157

As mentioned in another issue, we want to get rid of seemingly arbitrary values with constants where relevant, to reduce future bugs.

Examples include:

  • Table identifiers (b"bucket" and b"_keys" in the storage.py)
  • Random name length of 11, used in storage.py and lsh.py
  • Buffer size default (set as 50000 some times in storage.py and lsh.py, and 5000 sometimes, as in the Cassandra storage in storage.py).

etc.

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