TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Querying Time Series in PostgreSQL

111 点作者 johnhess将近 11 年前

4 条评论

AlisdairO将近 11 年前
Apologies for the self-plug, but you can have a play around with some of PG&#x27;s date&#x2F;time functionality by going to <a href="http://pgexercises.com/questions/date/" rel="nofollow">http:&#x2F;&#x2F;pgexercises.com&#x2F;questions&#x2F;date&#x2F;</a>
评论 #7815284 未加载
alexchamberlain将近 11 年前
Really interesting read. Anyone got any comparison between the performance of these against say pandas or R[1]? I&#x27;d be particularly interested if anyone has stored multiple timeseries in a table and the performance of looking for individual or the latest timeseries.<p>[1]: I haven&#x27;t used R myself.
评论 #7812288 未加载
afiedler将近 11 年前
This is pretty cool, I didn&#x27;t know about window functions in Postgres. Most of the time when dealing with time series data I end up dropping into Python (pandas) or R (xts package), but it is nice to see how to do a lot of analysis right in the database.
nickporter将近 11 年前
Heh, some of the queries we do at work are pretty much exactly like the ones in the examples. Postgres is cool.