spring difference between save and saveandflush

Solutions on MaxInterview for spring difference between save and saveandflush by the best coders in the world

showing results for - "spring difference between save and saveandflush"
Christian
18 May 2016
1Save may or may not write your changes to the DB straight away. 
2When we call saveAndFlush system are enforcing the synchronization of your model state with the DB. 
3... 
4It doesn't flush data directly to a database until and unless we explicitly call flush and commit method. 
5It's flush directly flush data to a database.