Hello,
We have a query which runs very slowly on 6.0.4 but very fast (as expected) on 6.5.1. Data is same. Cluster size is also not an issue. So I checked the explain plan and I saw some minor differences. I thought that may be the reason, so using hints, I managed to get the same plan. With the same plan too, there is a huge difference.
Slow query takes 1 minute (60000 ms).
Fast query takes 400 ms.
So I compared the text plan and this is what I see:
Fast query:
“~children”: [
{
“#operator”: “NestedLoopJoin”,
“#stats”: {
“#itemsIn”: 52,
“#itemsOut”: 52,
“#phaseSwitches”: 523,
“execTime”: “2.852362ms”,
“kernTime”: “278.503176ms”
Slow query:
“~children”: [
{
“#operator”: “NestedLoopJoin”,
“#stats”: {
“#itemsIn”: 52,
“#itemsOut”: 52,
“#phaseSwitches”: 107955,
“execTime”: “6.19948121s”,
“kernTime”: “4.576653445s”
As we can see, for the same operator, same step, same in/out items, 6.0.4 takes 6s execTime & 4ms kernTime. Whereas 6.5.1 took only 2 ms & 278 ms. On further checking, slow query does huge amount of get operations on the bucket (14k gets/sec for a minute).
Is this a bug? Or some enhancement in 6.5.1? Can I use a hint or something to make it go faster?
Thanks