Yes, the problem is rather complex. I can propose 2 options.
1. Measure performance impact of this patch, try to optimize it (get rid of memory allocations, etc.)
2. Do not implement the whole thing, analyze only few simple and most common cases for example SELECT * FROM table ORDER BY UNIQUE KEY
Laurynas,
Yes, the problem is rather complex. I can propose 2 options.
1. Measure performance impact of this patch, try to optimize it (get rid of memory allocations, etc.)
2. Do not implement the whole thing, analyze only few simple and most common cases for example SELECT * FROM table ORDER BY UNIQUE KEY
Thanks,
Sergei