Skip to content

Improve DBRef resolution for collections [DATAMONGO-1194] #2070

Closed
@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened DATAMONGO-1194 and commented

Currently DBRef instances are resolved one by one, even for collection properties. This currently causes the DBRef resolution being done on a per-element basis which causes additional (un)necessary database lookups.

Maybe we can improve the collection handling a bit more so that the database lookup is only done once per property and the DBRef resolution can be batched


Affects: 1.7 GA (Fowler)

Issue Links:

  • DATAMONGO-1044 No AfterLoadEvent when loading DBRef

  • DATAMONGO-1193 Prevent unnecessary database lookups when resolving DBRefs on 2.x driver

Referenced from: pull request #377

Metadata

Metadata

Labels

in: mappingMapping and conversion infrastructuretype: enhancementA general enhancement

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions