Why does spring data jpa get inconsistent results from executing the find method after executing the save method and the find method executing the find method without executing the save method?

I opened the sql log, and
found that the find method was executed after the save was executed, but not the sql.

if find is executed directly, sql will be executed

Why is this? what is the principle? there is no explanation on the official website.


has solved
Autowired
private EntityManager entityManager;
entityManager.clear ();
just clear the cache
https://stackoverflow.com/que...

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b36904-2c02b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b36904-2c02b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?