8000 Collection _key autoincrement value increases on error · Issue #2968 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content
Collection _key autoincrement value increases on error #2968
Closed
@sandrokeil

Description

@sandrokeil

my environment running ArangoDB

I'm using the latest ArangoDB of the respective release series:

  • 3.2

Mode:

  • Single-Server

Storage-Engine:

  • mmfiles

On this operating system:

  • [ x Linux
    • docker - official docker library

Problem

Assuem I have a collection with these options:

            [
                'keyOptions' => [
                    'allowUserKeys' => false,
                    'type' => 'autoincrement',
                    'increment' => 1,
                    'offset' => 1,
                ],
            ]

If an error occurs, the auto increment value increases nevertheless. So gaps can be occurred in the sequence, even If I use the transaction feature. Is there a way to prevent gaps in the auto increment value?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0