Skip to content

DocumentExchangerInterface should also allow fetching multiple documents at once #55

@damienalexandre

Description

@damienalexandre

From a performance POV, the current DocumentExchangerInterface is not ideal for the MultipleIndexationRequest use-case.

It can only fetch one document at a time, so it perform 1 SQL request (if SQL is used) for each IndexationRequest instead of possibly one for the whole MultipleIndexationRequest.

Would be nice to add DocumentExchangerInterface::fetchDocuments and use it when appropriate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgood first issueGood for newcomersv2.0Breaking Change / Feature planned for 2.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions