Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
jnordwick
· 10y ago · 0 comments
I mean like give me the preceding row from the current. Very useful for calculating anything from a simple rate of change to a properly doing a temporal database. Arrays as a column type doesn't get you that.
Comments
[–]
teraflop
10y ago
No, but window functions do, unless I'm not understanding what your goal is.
http://www.postgresql.org/docs/current/static/functions-wind...
[–]
jnordwick
OP
10y ago
I actually was using that yesterday. So so so so very very very very slow.
[–]
slachterman
10y ago
Impala supports LAG and LEAD, etc.:
http://www.cloudera.com/documentation/archive/impala/2-x/2-0...
[–]
jnordwick
OP
10y ago
So do most databased, but they are SLOOOOOOOW.