I need to insert 1 million records in cassandra, I'm using the datastax
driver, I have a correctly mapped teacher class and a list of teachers, then using the mapper I call the save method.
Cluster cluster = Cluster.builder().addContactPoint("MiServer").build();
Session session = cluster.connect("prueba");
Mapper<Profesor> mapper = new MappingManager(session).mapper(Profesor.class);
List<Profesor> profesors = CSVLogic.readAll("data.csv");
profesors.forEach(mapper::save);
the insert works well however the performance does not seem good, and I want to know what is the most efficient way to insert 1 million records from java