Skip to content

Document how to use buckets #26

@nirvdrum

Description

@nirvdrum

While looking at the source, I noticed that LexoRank.max() returns the max value for the first bucket and not the max value permissible. I thought maybe this was a bug because the library sets up three buckets. However, the library also can't call LexoRank.between() with two LexoRank instances corresponding to different buckets.

I was under the impression buckets were used to expand the range of possible values or possibly to shard values or help out database indices. But, it looks like the only way to get out of BUCKET_0 is to manually create the LexoRank with a reference to another LexoRankBucket. Can you please clarify the role buckets play and how they should be used?

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