tspurway / hustle

A column oriented, embarrassingly distributed relational event database.
Other
240 stars 36 forks source link

Invariant query columns optimization #23

Open tspurway opened 10 years ago

tspurway commented 10 years ago

During a query like:

select(tab.c1, tab.c2, where=(tab.c1 == 'hello') & (tab.c3 > 2))

we can avoid fetching tab.c1 during the input processing (_hustle_inputstream), saving some cycles, because it will always have the value of 'hello'.