Skip to content

remove ordering from count query#43

Open
mfedortsov wants to merge 12 commits intoVirtusLab:masterfrom
mfedortsov:improvements
Open

remove ordering from count query#43
mfedortsov wants to merge 12 commits intoVirtusLab:masterfrom
mfedortsov:improvements

Conversation

@mfedortsov
Copy link

Split query by 2 part:

  1. query for data contains ordering
  2. query for count contains no ordering.

@romanowski
Copy link
Member

What is motivation for this change? Is there any perfmance gain?

@mfedortsov
Copy link
Author

I found interesting query from our servers. Yes, it will improve performance for some queries, especially if query contains several left joins inside.

@liosedhel
Copy link
Member

LGTM! The idea to not sort data when we only need a count of the items seems to be a reasonable approach.

@liosedhel
Copy link
Member

@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).

@pdolega
Copy link

pdolega commented Apr 20, 2017

👍

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

Successfully merging this pull request may close these issues.

5 participants