Specific improvements to the MongoDBDialect code:
getAssociation flushes the queue to be sure the key will be present. It seems this is not necessary. The code should simply look for the key in the queue and use it. If not found load it from mongoDB and put it in a loaded queue of sort (or via the EntityEntry stuff). I don't understand why flushing aggressively would help here.
|