News for hackers. Stuff that matters.
Re:Building a distributed time-series database on PostgreSQL by cevian on Wednesday August 21, 2019 @04:20PM (#20761253)
[Timescaledb engineer here] We like to say that time-series data is any data that is insert-mostly with data associated with the most recent time period. That's a pretty broad definition, intentionally so. We see usage in telecoms, heavy industry, science, health, IoT, etc. It's really about recording the history of your data as it evolves, instead of just the current state.
Re:Building a distributed time-series database on PostgreSQL by srazzaque on Wednesday August 21, 2019 @06:09PM (#20762413)
I've been eyeing TimescaleDB at a distance for some time now. I'm curious if you have seen it used in finance as an alternative to KDB+ installations anywhere?

Have you thought to release any benchmarks against KDB+?

Re:Building a distributed time-series database on PostgreSQL by mfreed on Wednesday August 21, 2019 @06:25PM (#20762564)
To my understanding, KDB+'s license explicitly forbids benchmarking:

"1.3 Kdb+ On Demand Software Performance. End User shall not distribute or otherwise make available to any third party any report regarding the performance of the Kdb+ On Demand Software, Kdb+ On Demand Software benchmarks or any information from such a report unless End User receives the express, prior written consent of Kx to disseminate such report or information."

Re:Building a distributed time-series database on PostgreSQL by srazzaque on Wednesday August 21, 2019 @10:11PM (#20763993)
That's a shame. I'm not sure what the rationale is for such clauses - especially where performance of your tech is known to be pretty good (as is the case for KDB+).

There's definitely a huge opportunity to displace KDB+ as the mainstay for timeseries in capital markets. It is a premium product, but it obviously comes with a cost - both for the product and its operators.

Assuming all use cases can be catered for, if one needs an extra N machines if using TimescaleDB to cater for the same workloads, it might nullify any savings. If only there were a way to understand that without breaking their EULA...

Re:Building a distributed time-series database on PostgreSQL by beagle3 on Wednesday August 21, 2019 @10:33PM (#20764109)
Does this also apply to a locally installed version? It didn't in the past.

"On Demand" is IIRC the cloud kdb+, which is thus much less predictable and easy to misrepresent.

Re:Building a distributed time-series database on PostgreSQL by mfreed on Wednesday August 21, 2019 @10:57PM (#20764243)
Not my specialty, but website shows two versions available for download (at least for free non-commercial use): 64-bit "on-demand" or 32-bit. Both have a similar no benchmarking clause.

https://kx.com/connect-with-us/download/

32-bit version: "(c) 32 Bit Kdb+ Software Evaluations. User shall not distribute or otherwise make available to any third party any report regarding the performance of the 32 Bit Kdb+ Software, 32 Bit Kdb+ Software benchmarks or any information from such a report unless User receives the express prior written consent of Kx to disseminate such report or information."

But more broadly, feedback from the finance/capital markets suggest that the choice of kdb's proprietary Q query language vs. standard SQL is top-of-mind, expanding access and insights to time-series data from a small set of highly-specialized engineers to any of their developers / analysts / tools.

Re:Building a distributed time-series database on PostgreSQL by beagle3 on Thursday August 22, 2019 @04:44AM (#20765953)
Thanks. Interesting; I would be understanding if this was related to the “free” version, and the “bought and paid for” did not have such a restriction - but it might anyway.

I have used kdb in the past, and it is friendly in the Unix sense (picky about who it makes friends with) - first time users often write queries that use slow scalar loops.

Regardless, thanks; i’ll Be looking closely at timescaledb

Re:Building a distributed time-series database on PostgreSQL by _-david-_ on Wednesday August 21, 2019 @04:34PM (#20761440)
How does it compare with using temporal tables in a relational database?
Re:Building a distributed time-series database on PostgreSQL by manigandham on Wednesday August 21, 2019 @07:09PM (#20762906)
Temporal table = state of the data in the table at a particular time. Very useful for auditing or seeing how data has changed between different periods.

Timeseries = data with a primary key that includes time, potentially with other time properties. For example, metrics are commonly associated with a value at some time.

Re:Building a distributed time-series database on PostgreSQL by cevian on Wednesday August 21, 2019 @04:46PM (#20761614)
Well as far as I understand, temporal tables usually have either a valid time or system time. TimescaleDB is geared towards something you'd call measurement time, and most modifications are inserts to recent measurement time. In contrast, temporal tables are often still update-heavy and there is often no correlation with recent time, especially for valid time fields.