How spring data clean persited entities in transactional method?
问题 I need to receive and save huge amount of data using spring data over hibernate. Our server allocated not enough RAM for persisting all entities at the same time. We will definitely get OutOfMemory error. So we need to save data by batches it's obvious. Also we need to use @Transactional to be sure that all data persisted or non was persisted in case of even single error. So, the question: does spring data during @Transactional method keep storing entities in RAM or entities which were