Skip to content

Creating a series of automatic indexes fails #4879

Closed

Description

@tobiasdam

I tried to follow the example for series of automatic indexes in the SQL - CREATE INDEX docs:

  • Create a series automatic indexes for the thumbs property in the type Movie:
ArcadeDB> CREATE INDEX ON Movie (thumbs) UNIQUE
ArcadeDB> CREATE INDEX ON Movie (thumbs BY KEY) UNIQUE
ArcadeDB> CREATE INDEX ON Movie (thumbs BY VALUE) UNIQUE

I created the type and property as follows:

create document type Movie
create property Movie.thumbs map of string

Unfortunately, the second and third CREATE INDEX command of the example fail as BY KEY and BY VALUE are apparently not represented in the automatically created index name:

Index 'Movie[thumbs]' already exists

Image

Activity

  1. tobiasdam commented on Jul 2, 2026

    @tobiasdam
    Author

    I tested with version 26.7.1

  2. self-assigned this
    on Jul 2, 2026
  3. added theissue type on Jul 2, 2026
  4. added this to the 26.8.1 milestone on Jul 2, 2026
  5. added 2 commits that reference this issue on Jul 2, 2026
  6. lvca commented on Jul 2, 2026

    @lvca
    Member

    Fixed in main and available in the next release.

    The plain index and the BY KEY / BY VALUE variants are now treated as distinct indexes, so the three commands from the docs no longer collide with each other:

    CREATE INDEX ON Movie (thumbs) UNIQUE
    CREATE INDEX ON Movie (thumbs BY KEY) NOTUNIQUE
    CREATE INDEX ON Movie (thumbs BY VALUE) NOTUNIQUE

    Tip: BY KEY/BY VALUE are usually NOTUNIQUE, since the same map key (or value) normally appears across many records. Thanks for reporting!

  7. added a commit that references this issue on Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions