I have a huge dataset around 20million, I want to do an order by which some revenue column, however order by takes time, is there anyway order by can be effective or fast?
j
John Kowtko
08/16/2024, 11:53 AM
Hi Pratush,
If you actually want to sort and return 20 million records from a query, that sounds more like a report, and that is not Druid's areas of focus.
If, however, you are sorting so that you can retrieve the Top N elements, Druid does have features which should be able to do this fairly performantly.
Can you post an example query, and let us know what type of response time you are expecting?
Thanks. John
p
pratush maheshwari
08/16/2024, 12:59 PM
sample query : select a,b,c,d, sum(value) from table group by a,b,c,d order by sum(value) desc limit 100
@John Kowtko
j
John Kowtko
08/16/2024, 1:08 PM
Okay, can you do an explain query plan and show the native query?