>From the flame graph, the most time is wasted in "getRelList", I didn't see
How do you collect and produce the flamegraphs? Do you use debugnonsafepoints Java option? Here are my measurements for running testQuery07: with 2222: 47..57 seconds without 2222: 40..45 seconds I do not know how much time does test initialization take (e.g. schema preparation), however, the difference seems to be visible. Vladimir