MrNeocore edited a comment on issue #7060:
URL: 
https://github.com/apache/incubator-pinot/issues/7060#issuecomment-877826939


   @mayankshriv I can confirm a degradation in performance when using a large 
`LIMIT` value without `ORDER BY`
   Performance remains better than with `ORDER BY` though. (~250ms vs 350ms)
   Interestingly, adding the same `LIMIT` to the query with `ORDER BY` improves 
performance
   
   **In summary (same context as before):**
   - `select DISTINCT(kpi) from kpis` -> less than 10ms (numDocsScanned: 100000 
[out of 101250000])
   - `select DISTINCT(kpi) from kpis LIMIT 1000000` -> ~250 ms (numDocsScanned: 
ALL)
   - `select DISTINCT(kpi) from kpis ORDER BY kpi` -> ~350ms (numDocsScanned: 
ALL)
   - `select DISTINCT(kpi) from kpis ORDER BY kpi LIMIT 1000000` -> ~250 ms 
(numDocsScanned: ALL)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to