简单时间序列数据库

发布于 2024-10-04 21:56:07 字数 280 浏览 1 评论 0原文

我正在寻找一个简单的时间序列数据库。例如,这种数据库可以采用原始股票报价数据,并在瞬间返回日终数据、下午 3 点的数据或类似类型的查询。我不知道 google 使用什么http://www.google.com/finance?q=INDEXDJX< /a> 然而,这就是我正在寻找的数据和速度。一些高端时间序列数据库的成本很高,而且远远超出了我的需要。是否有适合于此的开源或几乎免费的数据库?

I am looking for a simple time series database. The sort of database that could take raw stock tick data for example and for company X and company Y in a split second return end of day data, or data at 3pm, or similar types of query. I dont know what google uses for http://www.google.com/finance?q=INDEXDJX however that's the sort of data and speed I am looking for. Some of the high end time series dbs cost the earth and do far more than I need. Are there opensource or nearly-free dbs out there that would be appropriate for this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

还在原地等你 2024-10-11 21:56:07

我编写了一个正在积极开发的开源时间序列数据库(目前仅限.NET)。它可以以“二进制平面文件”的方式存储大量(太字节)的统一数据。所有使用都是面向流的(正向或反向)。我们公司积极将其用于股票报价存储和分析。

https://code.google.com/p/timeseriesdb/

// Create a new file for MyStruct data.
// Use BinCompressedFile<,> for compressed storage of deltas
using (var file = new BinSeriesFile<UtcDateTime, MyStruct>("data.bts"))
{
   file.UniqueIndexes = true; // enforces index uniqueness
   file.InitializeNewFile(); // create file and write header
   file.AppendData(data); // append data (stream of ArraySegment<>)
}

// Read needed data.
using (var file = (IEnumerableFeed<UtcDateTime, MyStrut>) BinaryFile.Open("data.bts", false))
{
    // Enumerate one item at a time maxitum 10 items starting at 2011-1-1
    // (can also get one segment at a time with StreamSegments)
    foreach (var val in file.Stream(new UtcDateTime(2011,1,1), maxItemCount = 10)
        Console.WriteLine(val);
}

There is an open source timeseries database under active development (.NET only for now) that I wrote. It can store massive amounts (terrabytes) of uniform data in a "binary flat file" fashion. All usage is stream-oriented (forward or reverse). We actively use it for the stock ticks storage and analysis at our company.

https://code.google.com/p/timeseriesdb/

// Create a new file for MyStruct data.
// Use BinCompressedFile<,> for compressed storage of deltas
using (var file = new BinSeriesFile<UtcDateTime, MyStruct>("data.bts"))
{
   file.UniqueIndexes = true; // enforces index uniqueness
   file.InitializeNewFile(); // create file and write header
   file.AppendData(data); // append data (stream of ArraySegment<>)
}

// Read needed data.
using (var file = (IEnumerableFeed<UtcDateTime, MyStrut>) BinaryFile.Open("data.bts", false))
{
    // Enumerate one item at a time maxitum 10 items starting at 2011-1-1
    // (can also get one segment at a time with StreamSegments)
    foreach (var val in file.Stream(new UtcDateTime(2011,1,1), maxItemCount = 10)
        Console.WriteLine(val);
}
Bonjour°[大白 2024-10-11 21:56:07

我们在这里谈论的数据量是多少?

我的所有项目都使用 MySQL,其中包括一个项目,我每天晚上都会收集 OMX 和 NASDAQ 上的所有股票,持续了大约 2 年。 MySQL 在我的本地计算机上搜索和排序完全没有问题。

MySQL 有社区版本(免费),如果您需要,您可以扩展并购买许可证。

MySQL最初由瑞典团队(MySQL AB)开发,然后首先被Sun收购,后来被Oracle收购。

http://mysql.com/products/community/ 下载免费的 MySQL 并阅读有关它的信息Wiki


更新

我看到 Flickr、Facebook、维基百科、Google、Nokia.com 和 YouTube 等大型网站都使用 MySQL。我认为当谈到 MySQL 的能力时,这本身就说明了一切。

What amount of data are we talking about here?

I use MySQL to all my projects, including one where I actually collected all the stocks on OMX and NASDAQ every evening for about 2 years. MySQL had no problems at all to search and sort on my local machine.

MySQL are available in a community version (FREE) and if you need you can scale up and buy a license.

MySQL was first developed by a Swedish team (MySQL AB) and then first bought by Sun and later by Oracle.

Download the free MySQL at http://mysql.com/products/community/ and read about it on the Wiki.


Update

I saw that MySQL are used by big sites like Flickr, Facebook, Wikipedia, Google, Nokia.com and YouTube. I think this speaks for itself when it comes to how competent MySQL are.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文