Skip to content

[DData] Adding large number of values to ORMultiValueDictionary using SetItems takes too long #5663

@Arkatufus

Description

@Arkatufus

Version Information
Version of Akka.NET?
Which Akka.NET Modules? DData

Describe the bug
Using distributed data ORMultiValueDictionary and adding a key say with 20000 values calling SetItems takes upto 2-3 mins to complete.

To Reproduce
Steps to reproduce the behavior:

r.Replicator.Tell(Dsl.Update(
    registryKey, 
    ORMultiValueDictionary<TKey, TVal>.EmptyWithValueDeltas, 
    WriteLocal.Instance,
    s => s.SetItems(c.SelfUniqueAddress, d.Key, d.Value)));

Links to working reproductions on Github / Gitlab are very much appreciated

Expected behavior
It should not take long to add 20,000 values

Actual behavior
Takes upto 2-3 mins to complete.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions