Hi,
I was using below initially to populate 200,000 records in data grid. Then
I switched to IgniteDataStreamer (snippet 2) but didn't see performance
improvement, in both cases it was around 12 secs. Am I missing something
here?
Snippet 1:
for (Employee emp: emps) {
emp.setPayment(150000);
empCache.put(randomId, emp);
}
Snippet 2:
try (IgniteDataStreamer<String, Employee> txnStmr =
ignite.dataStreamer("Employee_Cache")) {
for (Employee emp: emps) {
emp.setPayment(150000);
txnStmr.addData(randomId, emp);
}
}
Thanks,
Gaurav