|
|
|
|
|
by manigandham
2778 days ago
|
|
Yes, I understand this as the "last value recorded" concept in my comment. KDB+ supports this with "asof" joins. Others can just do it by scanning a wider time frame or the entire table. Null gaps in a columnstore can be skipped over basically instantaneously and usually are just zone map/index lookups. Again I question how common this query is and whether it's really worth limiting yourself to a special TSDB because of it. |
|
"Scanning the entire table" for every request to have the last value recorded is rarely a practical option.
> KDB+ supports this with "asof" joins.
> [...]
> Again I question how common this query is and whether it's really worth limiting yourself to a special TSDB because of it.
KDB literally markets itself as a time series database. What's the point you're making again?
I think TimescaleDB lacks an "asof" function for now, but it makes up for it by having the full power of PostgreSQL for other stuff. Regardless, Time Series databases like KDB and TimescaleDB are useful.
EDIT:
it looks like TimescaleDB recommends using
to get the most recent value for any particular set of sources that you're SELECTing over, which would use indices and be reasonably fast.