Software:kdb+

From HandWiki
Short description: High-speed database

kdb+
Original author(s)Arthur Whitney
Developer(s)KX
Initial release2003; 21 years ago (2003)
Written inq
Operating systemWindows, macOS, Linux, Solaris
PlatformIA-32, x86-64, SPARC
Available inEnglish
Typerelational time series database
LicenseProprietary
Websitekx.com

kdb+ is a column-based relational time series database (TSDB) with in-memory (IMDB) abilities, developed and marketed by KX.[1] The database is commonly used in high-frequency trading (HFT) to store, analyze, process, and retrieve large data sets at high speed.[2] kdb+ has the ability to handle billions of records and analyzes data within a database.[3] The database is available in 32-bit and 64-bit versions for several operating systems.[4] Financial institutions use kdb+ to analyze time series data such as stock or commodity exchange data.[5] The database has also been used for other time-sensitive data applications including commodity markets such as energy trading, telecommunications, sensor data, log data, machine and computer network usage monitoring[6] along with real time analytics in Formula One racing.[7]

Overview

kdb+ is a high-performance column-store database that was designed to process and store large amounts of data. Commonly accessed data is pushed into random-access memory (RAM), which is faster to access than data in disk storage. Created with financial institutions in mind, the database was developed as a central repository to store time series data that supports real-time analysis of billions of records.[8][1][9] kdb+ has the ability to analyze data over time and responds to queries similar to Structured Query Language (SQL).[2]

Columnar databases return answers to some queries in a more efficient way than row-based database management systems.[5] kdb+ dictionaries, tables and nanosecond time stamps are native data types and are used to store time series data.[5][10]

At the core of kdb+ is the built-in programming language, q, a concise, expressive query array language, and dialect of the language APL.[8] Q can manipulate streaming, real-time, and historical data.[2] kdb+ uses q to aggregate and analyze data, perform statistical functions, and join data sets and supports SQL queries[11] The vector language q was built for speed and expressiveness and eliminates most need for looping structures.[5] kdb+ includes interfaces in C, C++, Java, C#, and Python.[4][5]

History

In 1998, KX released kdb, a database built on the language K written by Arthur Whitney. In 2003, kdb+ was released as a 64-bit version of kdb. In 2004, the kdb+ tick market database framework was released along with kdb+ taq, a loader for the New York Stock Exchange (NYSE) taq data. kdb+ was created by Arthur Whitney, building on his prior work with array languages.[5]

In April 2007, KX announced that it was releasing a version of kdb+ for Mac OS X. At that time, kdb+ was also available on the operating systems Linux, Windows, and Solaris.[12]

In September 2012, version 3.0 was released. It was optimized for Intel's upgraded processors with support for WebSockets, Globally unique identifiers (GUID)s, and Universally unique identifiers (UUID). Intel's Advanced Vector Extensions (AVX) and Streaming SIMD Extensions 4 (SSE4) 4.2 on the Sandy Bridge processors of the time allowed for enhanced support of the kdb+ system.[3] In June 2013, version 3.1 was released, with benchmarks up to 8 times faster than for older versions.[13]

In March 2020, version 4.0 was released.[14] New features included Multithreaded primitives, Intel Optane DC persistent memory support and Data at Rest Encryption.

References

  1. 1.0 1.1 Gutierrez, Daniel (January 19, 2015). "Kdb+ and the Internet of Things/Big Data". Inside Big Data. http://insidebigdata.com/2015/01/19/kdb-internet-thingsbig-data/. 
  2. 2.0 2.1 2.2 "Kx Systems and High Frequency Trading". The Trading Mesh. June 10, 2011. http://www.thetradingmesh.com/pg/blog/mike/read/5388/kx-systems-and-high-frequency-trading. 
  3. 3.0 3.1 Groenfeldt, Tom (September 24, 2012). "At Kx Systems Big Data Is Old News". Forbes. https://www.forbes.com/sites/tomgroenfeldt/2012/09/24/at-kx-systems-big-data-is-old-news/#1b2e873e7010. 
  4. 4.0 4.1 Sbardella, Luca (October 2, 2009). "A first look at kdb+". Quantmind. http://quantmind.com/blog/2009/10/a-first-look-at-kdb. 
  5. 5.0 5.1 5.2 5.3 5.4 5.5 Eadline, Douglas (September 9, 2014). "Working Down the Column: The Kdb+ Community". Cluster Monkey. http://www.clustermonkey.net/Deep-Dive/working-down-the-column-the-kdb-community.html. 
  6. Stamper, Jason (September 4, 2014). "Kx Systems readies faster database in push beyond financial services". 451 Research. 
  7. "Williams Racing Announce KX as an Official Supplier" (in en). https://www.williamsf1.com/posts/ea41af4f-c0b5-413c-a8d5-b7065586ff0e/williams-racing-announce-kx-as-an-official-supplier. 
  8. 8.0 8.1 Golovtchenko, Victor (January 1, 2016). "First Derivatives Boosts its KDB+ Software Business with New Acquisition". Finance Magnates. http://www.financemagnates.com/institutional-forex/technology/first-derivatives-boosts-its-kdb-software-business-with-new-acquisition/. 
  9. "Kdb+". Itl Group. http://itl-g.com/solutions/kdb/. 
  10. Crosman, Penny (September 14, 2009). "Kx Offers Nanosecond Timestamps in Updated Database". Information Week. http://www.wallstreetandtech.com/latency/kx-offers-nanosecond-timestamps-in-updated-database/d/d-id/1262409. 
  11. Marlin, Steve (June 19, 2014). "Wall Street Firms Extend 'Big Data; Capabilities". Markets Media. http://marketsmedia.com/wall-street-firms-extend-big-data-capabilities/. 
  12. Cohen, Peter (April 17, 2007). "Kdb+ financial database comes to Mac OS X". Macworld. http://www.macworld.com/article/1057391/kx.html. 
  13. "Kx's kdb+ claims up to 8x faster than any previous STAC M3 benchmarks". Automated Trader. June 11, 2013. http://www.automatedtrader.net/news/at/142863/kxs-kdb+-claims-up-to-8x-faster-than-any-previous-stac-m3--benchmarks. 
  14. Garland, Simon (March 23, 2020). "Kdb+ version 4.0 – faster, more secure". https://kx.com/blog/kdb-version-4-0-faster-more-secure/. 

External links