C#C
C#17mo ago
Marante

Chunking both key and value from dictionary

Hi all, I have a very specific problem of needing to chunk both key AND value of a dictionary (could be any data type).

Scenario: I need to export and import a bunch of time series data from one tenant to a different one. The case is that I fetch say 500 Keys, where each key can have a range from 0..? count of values. The time series database service only allow bathc inserts of 100 keys, with 20,000 values per key in each insert. I need to chunk the request prior to creating the request to maintain the aforementioned rules. How would you do this efficiently?
Was this page helpful?