Best way to save the large number of records in hibernate -
i have 5000 records saved. best way in database point of view, whether save individual records(save(record) 5000 times) or saveall(list of 5000 records) in hibernate ...? kind of scenarios come regularly suggest me best one..
use feature batch insertion in hibernate.
batch insertion powerful feature of hibernate particularly useful when importing data other systems in batch. if not use batch feature of hibernate, application's performance may decrease dramatically @ time of insertion of many records.
here simple comparison on normal save , batch insert.
and official docs.
Comments
Post a Comment