Avoid fetching associated entity during mass indexing if possible

Description

When mass indexing an entity containing an @IndexedEmbedded *-to-one association which only includes the associated id into the index, fetching the associated entity from the database is not needed. So we can optimize that particular case.

Environment

None

Activity

Show:
Gunnar Morling
November 27, 2015, 8:55 AM

More specifically, the unproxying in o.h.s.engine.spi.DocumentBuilderIndexedEntity.buildDocumentFields() should happen in a smarter way, i.e. it should not be done if all we need is the id and we can get it from the proxy.

Yoann Rodière
January 27, 2020, 8:56 AM

Closing this ticket, we'll address the problem in HSEARCH-3100.

Assignee

Yoann Rodière

Reporter

Gunnar Morling

Labels

None

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Priority

Major
Configure