beholder
beholder copied to clipboard
remove ordering from count query
Split query by 2 part:
- query for data contains ordering
- query for count contains no ordering.
What is motivation for this change? Is there any perfmance gain?
I found interesting query from our servers. Yes, it will improve performance for some queries, especially if query contains several left joins inside.
LGTM! The idea to not sort data when we only need a count of the items seems to be a reasonable approach.
@mfedortsov Could you make a PR against the branch 1.1.x (with slick 3.0.3) also? (I will merge the 1.1.x branch into the master soon).
:+1: