Skip to content

Performance degradation when inserting thousands of documents having same key ( for non unique index ) #1260

Description

@0xvoila

In nitrite db , I have a collection where key is non - unique and my dataset has lots of values which belongs to same key - so like key k1 has different 1000s of values

I have created a non-unique index on the collection .. As I am inserting more and more key of k1 then time taken by insert method is increasing due to linear k1 - [v1,v2,v3.....vn]

I saw the behaviour where insert time is keep on increasing instead of remaining constant ( kind of logN) ..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions