You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hannahbast
changed the title
Very slow GROUP BY query, which could be fast reasily
Very slow GROUP BY query, which could be fast easily
Sep 13, 2018
hannahbast
changed the title
Very slow GROUP BY query, which could be fast easily
Very slow GROUP BY query, which could be much faster with better query plan
Sep 13, 2018
The following query is currently very slow on Wikipedia+FreebaseEasy:
The log shows that the PSO index is scanned and then the 130K tuples from the predicate are sorted. The sorting is used to make the GROUP BY easy.
For the query above, it would clearly be better to use the POS index. Then there would be no need to sort for the GROUP BY ?object.
Note that the sorting required by the final ORDER BY is no problem, since there are only 47K distinct objects for this query.
The text was updated successfully, but these errors were encountered: