Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
samy opened this issue Sep 4, 2023 · 0 comments
Open

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

samy opened this issue Sep 4, 2023 · 0 comments

Comments

@samy
Copy link

samy commented Sep 4, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant