Skip to content
This repository was archived by the owner on Apr 1, 2023. It is now read-only.
This repository was archived by the owner on Apr 1, 2023. It is now read-only.

Support descending indexes #268

@jfunston

Description

@jfunston

Currently chogori platform does not support descending storage layout, and for chogori SQL we will disallow descending secondary indexes and descending primary indexes will need to be sorted and handled in the PG layer.

The difficulty with descending storage layout is that we support compound keys which are encoded together in a single string, which gives better performance than per key-field comparison and makes range partitioning easier. The problem is how to encode variable length string fields in reverse order (perhaps we can check the ELEN paper for a solution). If it is not possible than a complete solution would require re-writing the platform layer to handle keys per-field everywhere.

Some other partial solutions:

  • Support descending order for key fields that are not strings only
  • In SQL K2 adapter layer, we can transparently use a reverse order scan if there is only one primary key or the other primary keys are fully specified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions