Skip to content

Any way to disable use of output Walkers in FOSElasticaBundle ? #1925

@samy

Description

@samy

In current (6.3.1) version of FOSElasticaBundle, the ORMAdapter creates a $pager using the following code:

$pager = new PagerfantaPager(new Pagerfanta(new QueryAdapter($qb)));

Not using extra parameters of QueryAdapter constructor not allows us to disable the use of output walkers.

Why I try to disable the use of output walkers?

With : when PagerFanta paginates and computes the number of results, it uses subqueries (it is a native behaviour of Doctrine)
Without output walkers : it makes a simple SELECT COUNT(*) (3x times faster)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions