public void OneStreamerManyBatches() { using (var streamer = Ignite.GetDataStreamer <int, int>(Cache.Name)) { for (int i = 0; i < Count; i++) { streamer.Add(i, i); } } }
public void OneBatchManyStreamers() { const int batchSize = BaseCount * 10; for (int i = 0; i < (Count / batchSize); i++) { using (var streamer = Ignite.GetDataStreamer <int, int>(Cache.Name)) { var offs = i * batchSize; for (int j = 0; j < batchSize; j++) { streamer.Add(offs + j, offs + j); } } } }