On Tue, Nov 17, 2015 at 5:16 AM, Julian Hyde <[email protected]> wrote:

> And before you demonize Calcite, Ted, let’s make it clear that we don’t
> know whether Calcite is to blame here. I actually doubt that it is, because
> AFAIK Kylin does not use Calcite for cuboid selection.
>

Julian,

I hope my comments were not intended as demonization. I think that for all
of the current applications of Calcite, there are costs and benefits that
tip very much toward the benefit side, particular in the context being in
question.

It is a good idea to measure before attempting to change things. But I
really don't think that getting the entire parsing and planning time faster
than about 100 ms needs to be a goal of Calcite. It might be nice, but it
just isn't needed in the current consumers I know about. So even if
detailed measurement turns up Calcite taking about that long, I don't think
that is a priority issue.




>
> Sarnath’s original remark was
>
> > if SQL parsing is CPU intensive, it should not really take 100ms
> > unless some IO is being performed.
>
> SQL parsing absolutely should not take 100ms. It’s sometimes justified for
> the whole query preparation process to take 100ms — if that’s what it takes
> to find a “smart” way to answer the query, and the query would take a long
> time to answer otherwise.
>
> But if there’s a performance problem in the query preparation process,
> let’s log a performance bug, and identify where the time is being spent.
>

Reply via email to