| My main concern is that StatefulPersistenceContext#entitiesByUniqueKey could get huge if there are lots of entities with lots of unique IDs. Also, these unique IDs are mutable, so they can become obsolete and just take up space. I also wonder if entities should also be stashed by natural IDs as well. |