implydata / plywood

A toolkit for querying and interacting with Big Data

Home Page:https://plywood.imply.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Native Plywood performance slower than Pivot

sundaramprasad opened this issue · comments

Hello,
I was experimenting with Plywood and Pivot separately and I tried to run same query from Pivot as well as I have written a code in nodeJS which uses Plywood for running query on druid. But same query takes almost 1-2 seconds in Pivot.
But when I tried my nodeJS code which also uses plywood, my query took around 10 seconds for exactly same query and same results. I don't understand what the problem is. The plywood statement which I generated in my nodeJS code is as follows:

$src.split($__time.timeBucket('PT1M', 'Etc/UTC'), 'Time').apply('count', $src.sum($count)).sort($count,'descending').limit(20).apply('GroupBy', $src.split($dim1,dim1).apply('count', $src.su
m($count)).sort($count,'descending').limit(5).apply('GroupBy', $src.split($dim2,dim2).apply('count', $src.sum($count)).sort($count,'descending').limit(5)))

where "src" is my datasource and "dim1" and "dim2" are my dimensions.

I don't understand when pivot is also using plywood at the back, why using native plywood as query client is giving delayed results than pivot. Are there some settings which I have been missing?

-Sundaram