horaedb icon indicating copy to clipboard operation
horaedb copied to clipboard

Limit query is slow

Open ShiKaiWi opened this issue 2 years ago • 1 comments

Describe This Problem

In most cases, limit query is expected to be very fast. However, when there are too many segments, it will be very slow even if the query is limit by 1.

Proposal

Make it run as fast as possible for limit query.

Additional Context

No response

ShiKaiWi avatar Jun 16 '23 05:06 ShiKaiWi

In most cases, limit query is expected to be very fast.

I think you are meaning query without group by and order by.

For this to work, our executor should support pass result in a streaming way, which is what we have now, so this should be improved without too much work.

jiacai2050 avatar Jun 19 '23 02:06 jiacai2050