<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[ArcticDB - Medium]]></title>
        <description><![CDATA[For commerical enquiries, please contact us at arcticdb@man.com - Medium]]></description>
        <link>https://medium.com/arcticdb?source=rss----73571f8f9e6a---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>ArcticDB - Medium</title>
            <link>https://medium.com/arcticdb?source=rss----73571f8f9e6a---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 06:07:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/arcticdb" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The Ultimate Asset for Asset Management]]></title>
            <link>https://medium.com/arcticdb/the-ultimate-asset-for-asset-management-67e65f0cccd6?source=rss----73571f8f9e6a---4</link>
            <guid isPermaLink="false">https://medium.com/p/67e65f0cccd6</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[quant]]></category>
            <category><![CDATA[asset-management]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Elle Palmer]]></dc:creator>
            <pubDate>Fri, 20 Sep 2024 12:23:32 GMT</pubDate>
            <atom:updated>2024-09-20T12:23:32.386Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5VHXWdzBtpIA-PevB902-A.jpeg" /></figure><p>In today’s fast-paced financial world, asset managers are continually seeking ways to generate alpha for their clients. One of the most critical factors in achieving this goal is data productivity and management. Efficient handling of data can significantly impact the ability of asset managers to make informed decisions, optimise strategies, and ultimately outperform the market. But why is data productivity and management so crucial?</p><p><strong>The Importance of Data Productivity and Management</strong></p><p>Asset management is inherently data-driven. A recent report by the IFA revealed “data management infrastructure is the top investment priority” amongst UK based asset managers. Showing that the ability to process, analyse, and act on vast amounts of financial data can be the difference between success and failure. With technological advancements continuously reshaping the landscape, effective data management has never been more critical. Here’s how it helps:</p><ul><li><strong>Informed Decisions:</strong> Reliable and timely data enables asset managers to spot trends, assess risks, and seize opportunities.</li><li><strong>Optimised Strategies:</strong> An accessible and performant data framework makes backtesting quick and easy, which leads to better strategies.</li><li><strong>Generating Alpha:</strong> Robust data practices provide insights that are often missed by others, giving a competitive edge.</li></ul><p><strong>What is the solution?</strong></p><p>Improving data productivity and management boils down to one simple solution: investing in the right technology. This technology should enable data teams to work efficiently while staying mindful of operational costs.</p><p><strong>Why use ArcticDB?</strong></p><p>ArcticDB is a database designed from the ground up to enhance data productivity in quantitative investment management. Here’s why is stands out:</p><p><strong>Not Restrictive</strong></p><p>ArcticDB allows you to store and manage all your data in one database. This unified approach ensures that your data remains consistent and accessible, while also securing all previous versions in storage to prevent corruption. No more juggling multiple databases or worrying about data integrity.</p><p><strong>High Performance</strong></p><p>ArcticDB is highly performant. It is capable of processing ~ <strong>1 billion rows</strong> per second for a single consumer and <strong>many billions</strong> of rows per second across all consumers.</p><p><strong>Easy to Use</strong></p><p>With a simple Python API, ArcticDB eliminates the steep learning curve associated with many data systems. This ease of use ensures that your team can start leveraging its capabilities right away. “Most users are up to speed with ArcticDB in a matter of hours”.</p><p>Additionally, ArcticDB has a very straightforward installation process. It is platformless and can be installed into your Python environment in seconds using:</p><pre>pip install arcticdb</pre><p><strong>Serverless</strong></p><p>ArcticDB is serverless, which means it is scalable from one user to large organisations. It is also low maintenance as there is no need to manage servers, apply patches, or handle operating system upgrades which in turn keeps operating costs low. This serverless architecture is well suited to modern quantitative data science workloads.</p><p><strong>Quant Friendly</strong></p><p>For quantitative researchers, ArcticDB is a game changer. It minimises the cognitive load involved in accessing and managing data, freeing up mental resources for analysis and strategy development. This is because ArcticDB provides data in a python DataFrame format. Meaning, this data is instantly workable and there is no need for time consuming re-formatting.</p><p><strong>The ArcticDB Advantage</strong></p><p>ArcticDB’s unique features make it an indispensable tool for asset managers aiming to harness the power of data to generate alpha.</p><p>ArcticDB is continuously gaining recognition and endorsement from major financial institutions due to its impressive capabilities, despite being relatively new to the market. Our roadmap also includes an ever-expanding list of features and tools, and our enterprise agreements provide the flexibility to develop custom solutions tailored to your needs. By choosing ArcticDB, you are <strong>investing in the future of Quantitative Data Science at scale.</strong></p><p>In conclusion, data productivity and management are not just operational concerns but strategic imperatives for Quantitative asset managers. By integrating ArcticDB into your data practices, you can streamline your operations, minimise costs, and focus on what truly matters: making informed investment decisions and outperforming the market.</p><p>Winning the battle of data in quantitative research becomes not just a possibility, but a reality.</p><p>Reference: <a href="https://ifamagazine.com/asset-managers-embrace-data-to-navigate-market-uncertainty/">Asset Managers Embrace Data to Navigate Market Uncertainty — IFA Magazine</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67e65f0cccd6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arcticdb/the-ultimate-asset-for-asset-management-67e65f0cccd6">The Ultimate Asset for Asset Management</a> was originally published in <a href="https://medium.com/arcticdb">ArcticDB</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The 1 Billion Row Challenge (1BRC) on ArcticDB]]></title>
            <link>https://medium.com/arcticdb/the-1-billion-row-challenge-1brc-on-arcticdb-a31c070af000?source=rss----73571f8f9e6a---4</link>
            <guid isPermaLink="false">https://medium.com/p/a31c070af000</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[quant]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[billionrowchallenge]]></category>
            <dc:creator><![CDATA[Nick  Clarke]]></dc:creator>
            <pubDate>Thu, 22 Aug 2024 15:43:10 GMT</pubDate>
            <atom:updated>2024-08-27T12:14:22.663Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cpX1MZR_4I1L4sLMwx0CuQ.jpeg" /><figcaption>Aavik, the ArcticDB bear, counts the many seals that live in his neighbourhood</figcaption></figure><h3>The Challenge</h3><p>The <a href="https://github.com/gunnarmorling/1brc">1 Billion Row Challenge</a> was a tech competition that was run in January 2024.</p><p>The objective was to read and aggregate a csv file, each line of which contained a temperature for a particular weather station. The code for this was to be written in Java</p><p>The goal was to output the min, mean and max temperature for each weather station.</p><p>A sample file was included in the project that contained data for 413 weather stations. Code was included to generate random data for 10,000 weather stations with 1 billion rows.</p><p>Lots of entries were submitted. The winning entry took just over 1.5 seconds to complete the challenge. There were a range of entries taking up to 4 minutes.</p><p>You can read more about the original challenge here <a href="https://github.com/gunnarmorling/1brc">https://github.com/gunnarmorling/1brc</a>.</p><h3>Meeting the Challenge with ArcticDB</h3><p>We decided to keep to the spirit of the original challenge but we adapted it to use <a href="https://arcticdb.io/">ArcticDB </a>to do the leg work.</p><h3>Assumptions</h3><ul><li>We will use Python and <a href="https://arcticdb.io/">ArcticDB </a>for the data handling and processing</li><li>We will use lmdb as the <a href="https://arcticdb.io/">ArcticDB </a>backend, which stores the data on the local file system</li><li>We don’t include the time of creating and writing the data in the challenge time — just reading and aggregating — the same as the original Java test.</li></ul><h3>Steps</h3><ul><li>Create an <a href="https://arcticdb.io/">ArcticDB </a>object store and library</li><li>Generate the data and write it to a symbol in the library</li><li>Query we using aggregates min, max and mean for each city</li><li>The data is aggregated using the <a href="https://docs.arcticdb.io/latest/api/query_builder/">query_builder</a> parameter as part of the <a href="https://docs.arcticdb.io/latest/api/library/#arcticdb.version_store.library.Library.read">read</a></li><li>This will use C++ threads to concurrently process the IO and CPU intensive parts of the tasks</li><li>The output is the aggregated data</li></ul><h3>Summary</h3><ul><li>This is all done in less than 50 lines of easy to understand Python code</li><li>Links to the notebook and relevant docs to explain how to use ArcticDB are available at the end of the article</li><li>Most of the code is setup and data creation</li><li>The actual read and aggregate is only 2 lines of code</li></ul><h3>How Does it Perform?</h3><p>Running on a Dell XPS15 laptop with 14 cores and 64GB of RAM, the challenge runs in 7.2 seconds.</p><p>Running on a more powerful machine with 64 cores and 512GB of RAM, it runs in 4.1 seconds.</p><p>This is the equivalent of the “10k” challenge, the comparable results from the challenge are here <a href="https://github.com/gunnarmorling/1brc?tab=readme-ov-file#10k-key-set">1brc 10k results</a>. The results range from 3 seconds to 23 seconds.</p><p>So we have created a solution that is competitive with hand optimised Java using only a few lines of high-level Python.</p><p>Try looking at the code in the 1BRC github for the solutions that ran fastest in the challenge and you will soon realise that this kind of code can only be written by someone who is an expert in low-level code optimisation and even for an expert this kind of coding requires many iterations of profiling and improving to get the best performance.</p><p>When you use ArcticDB you are standing on the shoulders of our team of engineers who have such expertise, and make it all available to you through our simple Python API. There is one line in the notebook that can be considered performance tuning — setting the rows_per_segment to be larger than our default value.</p><p>In order the illustrate how ArcticDB can make use of the multiple cores available, we ran with various numbers of threads. The results are in the table below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/202/1*W4KZ61OqhpuY_qbUMk6Lig.png" /></figure><p>You don’t need to worry about this. ArcticDB can detect how many cores your machine has and will use all of them unless you restrict it as shown in the notebook.</p><p>Another version, modified to chunk the read/aggregate step to fit in the available memory, runs in 2 minutes on the free google colab. You can find that at the end of the notebook link at the bottom.</p><p>During the testing of this challenge, we discovered a few areas where we can in future improve the performance of the C++ engine further. We expect the speed to increase in even further in future.</p><h3>Conclusion</h3><p>We are pleased that using <a href="https://arcticdb.io/">ArcticDB </a>we were able to achieve performance approaching that of well written hand optimised code.</p><p>Please take these results as they are intended — we are not claiming to have solved the challenge itself but rather to have tackled the same problem using ArcticDB.</p><p>We have not tuned the performance beyond the basics. We wanted to keep the code simple and readable to show how easy it is to use ArcticDB to efficiently solve a wide range of problems.</p><h3>How Can I Find Out More?</h3><p>Links to</p><ul><li>Notebook: <a href="https://docs.arcticdb.io/dev/notebooks/ArcticDB_billion_row_challenge/">https://docs.arcticdb.io/dev/notebooks/ArcticDB_billion_row_challenge/</a></li><li>Docs: <a href="https://docs.arcticdb.io/latest/api/query_builder/">query_builder</a>, <a href="https://docs.arcticdb.io/latest/api/library/#arcticdb.version_store.library.Library.read">read</a>, <a href="https://docs.arcticdb.io/latest/">Home Page</a></li><li>Website: <a href="https://arcticdb.io/">https://arcticdb.io/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a31c070af000" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arcticdb/the-1-billion-row-challenge-1brc-on-arcticdb-a31c070af000">The 1 Billion Row Challenge (1BRC) on ArcticDB</a> was originally published in <a href="https://medium.com/arcticdb">ArcticDB</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fast Resampling of Timeseries with ArcticDB]]></title>
            <link>https://medium.com/arcticdb/fast-resampling-of-timeseries-with-arcticdb-87e40a5dc200?source=rss----73571f8f9e6a---4</link>
            <guid isPermaLink="false">https://medium.com/p/87e40a5dc200</guid>
            <category><![CDATA[time-ser]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[quant]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[finance]]></category>
            <dc:creator><![CDATA[Nick  Clarke]]></dc:creator>
            <pubDate>Mon, 19 Aug 2024 09:35:30 GMT</pubDate>
            <atom:updated>2024-08-20T08:43:36.460Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sTMg5PIKosq6e9Tr5hclRw.jpeg" /></figure><h3>Introduction</h3><p>Anyone who has built models from timeseries data will know that preparation of the data is a very important part of the process.</p><p>One method that is often used in data preparation is resampling. In practice, this tends to be downsampling higher frequency data to a lower (and often regular) frequency that will be used in the model.</p><p>To cater to the needs of our user community, we have implemented a resample feature in <a href="https://arcticdb.io/">ArcticDB </a>that allows high performance downsampling of data as part of the read. We achieve this high performance via our modern C++ implementation which can use all the cores by running multi-threaded.</p><p>We will walk through a few examples below to give you an idea of what it can do and how to use it.</p><h3>Set Up ArcticDB</h3><p>Setting up a database in <a href="https://arcticdb.io/">ArcticDB </a>is very straightforward. It just takes a few lines of Python code like this.</p><pre>import arcticdb as adb<br>arctic = adb.Arctic(&quot;lmdb://arcticdb_resample&quot;)<br>lib = arctic.get_library(&#39;resample&#39;, create_if_missing=True)</pre><h3>Create Some Data</h3><p>We will use a synthetic data set consisting of 12,000,000 rows of 1-second timeseries data with 3 columns containing an id (integer), a price (float) and a category (string) data. A small section of the data looks like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/440/1*m_vZwPV6QO_N0E-IYOc5BQ.png" /></figure><p>(the full code including this data creation code is in the notebook, which is linked at the end of this article)</p><p>Write the data, which is in a dataframe mkt_data, into a symbol in the library</p><pre>sym = &#39;market_data&#39;<br>lib.write(sym, mkt_data)</pre><h3>Example 1: A Simple Resample</h3><ul><li>Downsample to 1-minute frequency</li><li>Use different aggregators</li><li>Resample can be thought of as a time-based groupby</li><li>The groups are all the rows within a time interval</li></ul><pre># frequency and aggregator params<br>freq1 = &#39;1min&#39;<br>aggs1 = {&#39;id&#39;: &#39;max&#39;, &#39;price&#39;: &#39;last&#39;, &#39;category&#39;: &#39;count&#39;}<br># create the resample query and apply it on the read<br>q1 = adb.QueryBuilder().resample(freq1).agg(aggs1)<br>market_data_1min_df = lib.read(sym, query_builder=q1).data</pre><p>The last 5 rows of market_data_1min_df look like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*ydSwwQadPLagOBLX6Mbdvw.png" /></figure><p>The <a href="https://arcticdb.io/">ArcticDB </a>resample runs more than 4x faster than reading the full data set and resampling in Pandas. Using the notebook linked at the end of the article on a Dell XPS 15 laptop with 14 cores, <a href="https://arcticdb.io/">ArcticDB </a>takes 171ms vs Pandas 750ms.</p><h3>Example 2: Multiple Aggregators per Column</h3><ul><li>Downsample to 5-minute frequency</li><li>Apply both max and last aggregators to the value2 column.</li><li>For multiple aggregators, the syntax is <br>output_column_name: (input_column_name, aggregator)</li></ul><pre>q2 = adb.QueryBuilder()<br>q2 = q2.resample(&#39;5min&#39;).agg({<br>    &#39;id&#39;: &#39;max&#39;,<br>    &#39;price_last&#39;: (&#39;price&#39; ,&#39;last&#39;),<br>    &#39;price_count&#39;: (&#39;price&#39; ,&#39;count&#39;),<br>    &#39;category&#39;: &#39;first&#39;<br>})<br>lib.read(sym, query_builder=q2).data</pre><p>The few and last few rows of the output look like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/1*t8L0ILQBajGXJJ53J2W0Tg.png" /></figure><h3>Example 3: Using the Processing Pipeline to Chain Operations</h3><ul><li>Downsample to 2-minutes and 30-seconds frequency</li><li>Group the resampled data by the string column category</li><li>Aggregate the category groups using mean</li></ul><pre>q3 = adb.QueryBuilder()<br>q3 = q3.resample(&#39;2min30s&#39;).<br>    agg({&#39;id&#39;: &#39;min&#39;, &#39;category&#39;: &#39;first&#39;}).<br>    groupby(&#39;category&#39;).agg({&#39;id&#39;: &#39;mean&#39;})<br>lib.read(sym, query_builder=q3).data</pre><p>The output looks like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/217/1*I_6YtM49qx5qIURH-0jvWQ.png" /></figure><h3>Example 4: OHLC (Open High Low Close) Bars</h3><ul><li>Downsample to 5-minute frequency</li><li>Use multiple aggregators on the value2 column</li><li>This is a simple example of how to convert tick data to OHLC bar data</li></ul><pre>freq_ohlc = &#39;5min&#39;<br>agg_ohlc = {<br>    &#39;open&#39;: (&#39;price&#39;, &#39;first&#39;),<br>    &#39;high&#39;: (&#39;price&#39;, &#39;max&#39;),<br>    &#39;low&#39;: (&#39;price&#39;, &#39;min&#39;),<br>    &#39;close&#39;: (&#39;price&#39;, &#39;last&#39;)<br>}<br>q_ohlc = adb.QueryBuilder().resample(freq_ohlc).agg(agg_ohlc)<br>ohlc_bars = lib.read(sym, query_builder=q_ohlc).data</pre><p>The first few lines of the output look like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*A7OWx10QxsYzXbVU0q5xBQ.png" /></figure><p>In a run of the same code with 500,000,000 rows of data, this bar generation took 2.6s on the same hardware setup described above. Pandas took 44s for the same calculation with the data already in memory. You can try this if you have enough memory on your machine (it may not run in the free Google colab environment).</p><h3>Conclusions</h3><ul><li>We have shown the capabilities of the new <a href="https://arcticdb.io/">ArcticDB </a>resample feature, in particular</li><li>It is very easy to use, especially if you already know Pandas</li><li>It performs well, giving a 4x speed boost in our simple example vs reading the data and resampling in Pandas</li><li>It can be combined with other <a href="https://arcticdb.io/">ArcticDB </a>query features to create processing pipelines</li><li>It can be used to generate timeseries bar data</li></ul><p>Also, we have plans to add more resample and query features and further improve performance going forward.</p><h3>Follow Ups</h3><p>We hope you have enjoyed this article. Here are some follow-ups if you would like the try this yourself.</p><p>The full notebook for these examples is available on our docs website here <a href="https://docs.arcticdb.io/latest/notebooks/ArcticDB_demo_resample/">https://docs.arcticdb.io/latest/notebooks/ArcticDB_demo_resample/</a> and can be run on Google colab with one click and no additional setup.</p><p>The documentation for ArcticDB Querybuilder, including resample, is <a href="https://docs.arcticdb.io/latest/api/query_builder/">https://docs.arcticdb.io/latest/api/query_builder/</a>.</p><p>Get in touch with us on via our website <a href="https://arcticdb.io/">https://arcticdb.io/</a> if you would like to know more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87e40a5dc200" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arcticdb/fast-resampling-of-timeseries-with-arcticdb-87e40a5dc200">Fast Resampling of Timeseries with ArcticDB</a> was originally published in <a href="https://medium.com/arcticdb">ArcticDB</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Picking the Ultimate Fantasy Premier League Team with ArcticDB]]></title>
            <link>https://medium.com/arcticdb/picking-the-ultimate-fantasy-premier-league-team-with-arcticdb-4ae31ff5d817?source=rss----73571f8f9e6a---4</link>
            <guid isPermaLink="false">https://medium.com/p/4ae31ff5d817</guid>
            <category><![CDATA[quant]]></category>
            <category><![CDATA[football]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Matthew Simpson]]></dc:creator>
            <pubDate>Thu, 15 Aug 2024 07:21:09 GMT</pubDate>
            <atom:updated>2024-08-15T16:22:58.450Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zvXOX31gLyupWpCDuFPj3A.jpeg" /></figure><p>Want to Pick the Ultimate Fantasy Football Team? In this blog we are going to use <a href="https://arcticdb.io/">ArcticDB</a> to manage and help analyse raw player statistics with past game week fantasy football team data. Then by ingesting, processing, and simulating team selection, we can uncover top-performing fantasy football teams using data-driven insights.</p><p><strong>Project Breakdown:</strong></p><ol><li>Ingesting player data and storing it in <a href="https://arcticdb.io/">ArcticDB</a>.</li><li>Merging player data into a single DataFrame with key statistics.</li><li>Analysing <a href="https://github.com/vaastav/Fantasy-Premier-League">FPL (Fantasy Premier League)</a> player data and running a Monte Carlo simulation to select the optimal team based on predefined constraints.</li></ol><p>Disclaimer: <strong>It is not a guarantee or promise that ArcticDB will pick the best performing future fantasy premier team as past performance is not indicative of future results</strong>.<strong> </strong>This project is for fun and not to be taken or used seriously.</p><h3>Data Ingestion</h3><p>First, we clone the Fantasy Premier League data repository as shown below and use Python libraries such as ArcticDB and Pandas to handle the data.</p><pre>git clone https://github.com/vaastav/Fantasy-Premier-League.git</pre><p>Using pandas we read CSV files containing player data and update the ArcticDB library. This library serves as the backbone for all subsequent data operations. Player data, including game week statistics and raw player attributes, is ingested into ArcticDB. We normalise player names to remove non-ASCII characters, so the primary ID of each dataframe is easy to type.</p><p>Each player’s data is stored as a separate symbol within the database, identified by a normalized name and then player ID you can see an example of KDB’s (Kevin De Bruyne) game week player data below. We will then ingest a file called players_raw.csv . This holds the player position (element_type), team, and player ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*MAwv2yba71LDCUu3K0aB9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*lQOLHiPiKwbfGovstr6Z1g.png" /></figure><p>Saving data to ArcticDB offers several advantages over reading CSV files:</p><ol><li><strong>Faster Data Retrieval</strong>: Essential for large datasets, helpful on smaller ones like the Fantasy Premier League analysis.</li><li><strong>Efficient Data Access</strong>: Eliminates the need to read from many different CSV files repeatedly for the different player data.</li><li><strong>Seamless Data Updates</strong>: Supports appending and updating data in one place.</li><li><strong>Simplified Data Management</strong>: Reduces the need to manage multiple CSV files, minimizing errors.</li><li><strong>Robust Querying</strong>: Enables complex queries and aggregations efficiently.</li><li><strong>Optimized for Time-Series Data</strong>: Ideal for tracking player performance over time, providing a structured and scalable solution.</li></ol><p>Find out more about ArcticDB Vs CSV files here <a href="https://medium.com/arcticdb/why-you-should-use-arcticdb-instead-of-csv-to-save-your-pandas-dataframes-ac4d06e55724">Why you should use ArcticDB instead of CSV to save your Pandas DataFrames | by Matthew Simpson | ArcticDB | Medium</a></p><p>In the code snippet below, you can see an example of how we are setting up ArcticDB and a library, then the process of ingesting data into ArcticDB from the CSV files using the write function in ArcticDB.</p><pre>import os<br>import pandas as pd<br>import unicodedata<br>import arcticdb as adb<br> <br>def normalize_name(name):<br>    &quot;&quot;&quot;Normalize the name to remove non-ASCII characters.&quot;&quot;&quot;<br>    return unicodedata.normalize(&#39;NFKD&#39;, name).encode(&#39;ASCII&#39;, &#39;ignore&#39;).decode(&#39;ASCII&#39;)<br> <br> <br>def ingest_player_data(players_dir, lib):<br>    &quot;&quot;&quot;Ingest player game week data into ArcticDB.&quot;&quot;&quot;<br>    for player_folder in os.scandir(players_dir):<br>        if player_folder.is_dir():<br>            player_name, player_id = player_folder.name.rsplit(&#39;_&#39;, 1)<br>            csv_file_path = os.path.join(player_folder, &#39;gw.csv&#39;)<br>            symbol_name = f&quot;{normalize_name(player_name)}_{player_id}&quot;<br>            lib.write(symbol_name, pd.read_csv(csv_file_path))<br> <br># Constants<br>PLAYERS_DIR = &#39;./Fantasy-Premier-League/data/2023-24/players/&#39;<br>RAW_DATA_PATH = &#39;./Fantasy-Premier-League/data/2023-24/players_raw.csv&#39;<br>GAME_WEEK = 38<br>MAX_PLAYERS_PER_TEAM = 4<br>MAX_SPEND = 1000<br>RUNS = 100000<br> <br># Connect to ArcticDB<br>arctic = adb.Arctic(&quot;lmdb://fantasy_football&quot;)<br>library = arctic.get_library(&#39;players&#39;, create_if_missing=True)<br> <br># Main execution<br>ingest_player_data(PLAYERS_DIR, library)<br>library.write(&#39;players_raw&#39;, pd.read_csv(RAW_DATA_PATH))</pre><h3>Data Transform</h3><p>Next, we merge raw player statistics with player game week data to create a comprehensive dataset. In this DataFrame we will only hold the data we need to run our simulation so for example ‘element_type’, ‘team’, ‘second_name’, ‘first_name’, ‘id’, ‘total_points’, ‘value’ and ‘DateTime’, you can see an example of this below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/627/1*8vdNMZJ1czSSz7wFlfX8Lg.png" /></figure><p>We want to find a way to represent recent form for every player. To do this, we will use the last 5 game weeks and calculate the mean value of each player’s points over that 5-game-week period.</p><p>To do this, we begin by creating a query using ArcticDB’s QueryBuilder to perform a group-by aggregation. This groups player data by their ID and calculates the average points over the last 5 game weeks to represent player form. The resulting data is read from the ArcticDB library and reset to a standard index. Another query is created to filter the player data for a specific game week. The filtered data is then merged with the average total points data. The merged DataFrame updates the total points with the calculated mean values where applicable, drops unnecessary columns, and writes the updated data back to the ArcticDB library under a new symbol called `game_week_filter`. You can see an example of the output DataFrame below and a code snippet that performs the group-by and aggregations in ArcticDB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*0wX7zdCDk7PEiZJOTXjs_Q.png" /></figure><pre>def merge_player_data(lib):<br>    &quot;&quot;&quot;Read raw player stats and merge with game week data.&quot;&quot;&quot;<br>    raw_stats_df = lib.read(&#39;players_raw&#39;, columns=[&#39;element_type&#39;, &#39;team&#39;, &#39;second_name&#39;, &#39;first_name&#39;, &#39;id&#39;]).data<br> <br>    df = pd.DataFrame()<br>    for _, row in raw_stats_df.iterrows():<br>        player_id = row[&#39;id&#39;]<br>        player_name = f&quot;{row[&#39;first_name&#39;]}_{row[&#39;second_name&#39;]}_{player_id}&quot;<br>        symbol_name = normalize_name(player_name)<br>        player_gw_data = lib.read(symbol_name, columns=[&#39;total_points&#39;, &#39;value&#39;]).data<br>        player_gw_data.reset_index(inplace=True)<br>        player_gw_data[&#39;id&#39;] = player_id<br>        for col in row.index:<br>            player_gw_data[col] = row[col]<br>        df = pd.concat([df, player_gw_data], ignore_index=True)<br> <br>    df = df[[&#39;element_type&#39;, &#39;team&#39;, &#39;second_name&#39;, &#39;first_name&#39;, &#39;id&#39;, &#39;total_points&#39;, &#39;value&#39;, &#39;index&#39;]]<br>    df = df.rename(columns={&#39;index&#39;: &#39;Game_Week&#39;})<br>    df[&quot;element_type&quot;] = df[&quot;element_type&quot;].map({1: &#39;GK&#39;, 2: &#39;DEF&#39;, 3: &#39;MID&#39;, 4: &#39;FWD&#39;})<br>    return df<br> <br>library.write(&#39;all_data&#39;, merge_player_data(library))<br> <br># Get data grouped by player ID and calculate the mean of total points<br>q2 = adb.QueryBuilder()<br>q2 = q2[(q2[&quot;Game_Week&quot;] &gt;= GAME_WEEK - 5)].groupby(&quot;id&quot;).agg({&quot;total_points&quot;: &quot;mean&quot;})<br>new_total_points = library.read(&quot;all_data&quot;, query_builder=q2).data.reset_index()<br> <br># Get data filtered for the previous game week<br>q3 = adb.QueryBuilder()<br>q3 = q3[(q3[&quot;Game_Week&quot;] == GAME_WEEK - 1)]<br>game_week_filter = library.read(&quot;all_data&quot;, query_builder=q3).data<br> <br># Merge the filtered game week data with the new total points data based on player ID<br>merged_df = game_week_filter.merge(new_total_points, on=&#39;id&#39;, how=&#39;left&#39;, suffixes=(&#39;&#39;, &#39;_new&#39;))<br> <br># Fill missing total point values with the original total points and create a new column for average total points<br>merged_df[&#39;average_total_points&#39;] = merged_df[&#39;total_points_new&#39;].fillna(merged_df[&#39;total_points&#39;])<br> <br># Drop the temporary column used for merging<br>merged_df = merged_df.drop(columns=[&#39;total_points_new&#39;])<br> <br># Write the merged DataFrame back to the ArcticDB library<br>library.write(&#39;game_week_filter&#39;, merged_df)</pre><h3>Team sections</h3><p>The core of the project is the player selection process, designed to build a fantasy football team. The selection is based on player positions, with constraints on the maximum number of players per team and the total budget. Using ArcticDB’s QueryBuilder, we filter players and randomly choose from the available pool while ensuring the constraints are met. Players are rated based on their past performance. For example, if we were looking at the player KDB, the script would take KDB&#39;s past 5 game weeks&#39; fantasy points and calculate the mean value from them. This is how we will evaluate form points. This process is repeated until the team is complete. The code snippet below is an example of how a single team is selected.</p><pre>import random<br>from collections import Counter<br> <br>def select_position(position, count, max_players_per_team, max_spend, lib, current_players, current_spend, current_teams):<br>    &quot;&quot;&quot;Select players for a specific position until the required count is reached.&quot;&quot;&quot;<br>    q = adb.QueryBuilder()<br>    q = q[(q[&quot;element_type&quot;] == position)]<br>    players_df = lib.read(&#39;game_week_filter&#39;, query_builder=q).data<br>    current_player_ids = [player[&#39;id&#39;] for player in current_players]<br>    current_teams = current_teams.copy()<br> <br>    selected_players = []<br>    if players_df.empty:<br>        return selected_players<br> <br>    while count &gt; 0:<br>        player = players_df.sample().iloc[0]<br>        team_id = player[&#39;team&#39;]<br>        player_value = player[&#39;value&#39;]<br> <br>        # if we haven&#39;t selected player already<br>        # and we haven&#39;t selected our max from each team<br>        # and we haven&#39;t spent too much<br>        if (player[&#39;id&#39;] not in current_player_ids) and \<br>           (current_teams.get(team_id, 0) &lt; max_players_per_team) and \<br>           (current_spend + player_value &lt;= max_spend):<br>            # then add to roster<br>            selected_players.append(player)<br>            current_spend += player_value<br>            current_teams[team_id] += 1<br>            current_player_ids.append(player[&#39;id&#39;])<br>            count -= 1<br> <br>    return selected_players<br> <br> <br> <br>def select_random_team(team_structure, max_players_per_team, max_spend, lib):<br>    &quot;&quot;&quot;Select a random team of players based on position, budget, and team constraints.&quot;&quot;&quot;<br>    total_spend = 0<br>    team_counts = Counter()<br>    selected_players = []<br>    keys = list(team_structure.keys())<br>    random.shuffle(keys)<br>    randomized_team_structure = {key: team_structure[key] for key in keys}<br>   <br>    for position, count in randomized_team_structure.items():<br>        players = select_position(position, count, max_players_per_team, max_spend, lib, selected_players, total_spend, team_counts)<br>        for player in players:<br>            total_spend+=player[&#39;value&#39;]<br>            team_counts[player[&#39;team&#39;]] += 1<br>            selected_players.append(player)<br>   <br>    return pd.DataFrame(selected_players) # Define the team structure with required player counts for each position<br> <br> <br># Team Selection Simulation<br>team_structure = {&#39;GK&#39;: 2, &#39;DEF&#39;: 5, &#39;MID&#39;: 5, &#39;FWD&#39;: 3}<br>all_teams = []<br> <br>for run_id in range(RUNS):<br>    team_df = select_random_team(team_structure, MAX_PLAYERS_PER_TEAM, MAX_SPEND, library)<br>    team_df[&#39;run_ID&#39;] = run_id<br>    all_teams.append(team_df)</pre><p>To find the best possible team configuration, the above code runs 100,000 iterations, essentially performing a Monte Carlo simulation. Each iteration involves the following:</p><ul><li>Assembling a team based on predefined structures (e.g., 2 Goalkeepers, 5 Defenders, etc.).</li><li>Selecting a player at complete random from the data set.</li><li>Calculating the total points and spend for the team: The total points for the team section is based on the players’ form over the last five games of the season. This is done by taking the mean of the points from the five game weeks. Then the price is based on the last price available for the player.</li></ul><p>After running the simulation, the best team is identified based on the highest total points scored. This team is then displayed, showcasing the selected players, their positions, and the total points. As the number of iterations increases, the total points of the best team improve significantly as seen in the graph below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*n_BVsjt5Vo53WSgKxzLfvQ.png" /></figure><p>Please note, there is room for potential improvements on this project:</p><ul><li>Back testing: Implementing back testing to evaluate strategies over past seasons.</li><li>Keep some data out-of-sample, so that we can do a final test for over-fitting of our strategy</li><li>Optimization Algorithms: Utilizing optimization algorithms for more efficient team selection.</li><li>User Interface: Developing a user-friendly interface for better interaction with the data.</li></ul><p>While this project is intended for fun, this notebook demonstrates the versatility of ArcticDB for quantitative analysis, suitable for both individual users and large-scale production systems at organizations like Man Group. The basic steps in the code are universally applicable.</p><p>A key strength of this code is its adaptability. Although it is currently used for selecting a fantasy team, the same data can be effortlessly repurposed for future projects. Retrieving this data would only require one line of code, thanks to its storage in an easily accessible format. This approach is not limited to fantasy data; it could be tick data on a central storage bucket, accessible to anyone in the organization with a single line of code. Imagine the productivity gains this could bring!</p><p>Please find the full code below.</p><pre>import os<br>import pandas as pd<br>import unicodedata<br>import arcticdb as adb<br>import random<br>from collections import Counter<br>from tabulate import tabulate<br><br>def normalize_name(name):<br>    &quot;&quot;&quot;Normalize the name to remove non-ASCII characters.&quot;&quot;&quot;<br>    return unicodedata.normalize(&#39;NFKD&#39;, name).encode(&#39;ASCII&#39;, &#39;ignore&#39;).decode(&#39;ASCII&#39;)<br> <br>def ingest_player_data(players_dir, lib):<br>    &quot;&quot;&quot;Ingest player game week data into ArcticDB.&quot;&quot;&quot;<br>    for player_folder in os.scandir(players_dir):<br>        if player_folder.is_dir():<br>            player_name, player_id = player_folder.name.rsplit(&#39;_&#39;, 1)<br>            csv_file_path = os.path.join(player_folder, &#39;gw.csv&#39;)<br>            symbol_name = f&quot;{normalize_name(player_name)}_{player_id}&quot;<br>            lib.write(symbol_name, pd.read_csv(csv_file_path))<br><br>def merge_player_data(lib):<br>    &quot;&quot;&quot;Read raw player stats and merge with game week data.&quot;&quot;&quot;<br>    raw_stats_df = lib.read(&#39;players_raw&#39;, columns=[&#39;element_type&#39;, &#39;team&#39;, &#39;second_name&#39;, &#39;first_name&#39;, &#39;id&#39;]).data<br> <br>    df = pd.DataFrame()<br>    for _, row in raw_stats_df.iterrows():<br>        player_id = row[&#39;id&#39;]<br>        player_name = f&quot;{row[&#39;first_name&#39;]}_{row[&#39;second_name&#39;]}_{player_id}&quot;<br>        symbol_name = normalize_name(player_name)<br>        player_gw_data = lib.read(symbol_name, columns=[&#39;total_points&#39;, &#39;value&#39;]).data<br>        player_gw_data.reset_index(inplace=True)<br>        player_gw_data[&#39;id&#39;] = player_id<br>        for col in row.index:<br>            player_gw_data[col] = row[col]<br>        df = pd.concat([df, player_gw_data], ignore_index=True)<br> <br>    df = df[[&#39;element_type&#39;, &#39;team&#39;, &#39;second_name&#39;, &#39;first_name&#39;, &#39;id&#39;, &#39;total_points&#39;, &#39;value&#39;, &#39;index&#39;]]<br>    df = df.rename(columns={&#39;index&#39;: &#39;Game_Week&#39;})<br>    df[&quot;element_type&quot;] = df[&quot;element_type&quot;].map({1: &#39;GK&#39;, 2: &#39;DEF&#39;, 3: &#39;MID&#39;, 4: &#39;FWD&#39;})<br>    return df<br><br>def select_position(position, count, max_players_per_team, max_spend, lib, current_players, current_spend, current_teams):<br>    &quot;&quot;&quot;Select players for a specific position until the required count is reached.&quot;&quot;&quot;<br>    q = adb.QueryBuilder()<br>    q = q[(q[&quot;element_type&quot;] == position)]<br>    players_df = lib.read(&#39;game_week_filter&#39;, query_builder=q).data<br>    current_player_ids = [player[&#39;id&#39;] for player in current_players]<br>    current_teams = current_teams.copy()<br> <br>    selected_players = []<br>    if players_df.empty:<br>        return selected_players<br> <br>    while count &gt; 0:<br>        player = players_df.sample().iloc[0]<br>        team_id = player[&#39;team&#39;]<br>        player_value = player[&#39;value&#39;]<br> <br>        # if we haven&#39;t selected player already<br>        # and we haven&#39;t selected our max from each team<br>        # and we haven&#39;t spent too much<br>        if (player[&#39;id&#39;] not in current_player_ids) and \<br>           (current_teams.get(team_id, 0) &lt; max_players_per_team) and \<br>           (current_spend + player_value &lt;= max_spend):<br>            # then add to roster<br>            selected_players.append(player)<br>            current_spend += player_value<br>            current_teams[team_id] += 1<br>            current_player_ids.append(player[&#39;id&#39;])<br>            count -= 1<br> <br>    return selected_players<br> <br>def select_random_team(team_structure, max_players_per_team, max_spend, lib):<br>    &quot;&quot;&quot;Select a random team of players based on position, budget, and team constraints.&quot;&quot;&quot;<br>    total_spend = 0<br>    team_counts = Counter()<br>    selected_players = []<br>    keys = list(team_structure.keys())<br>    random.shuffle(keys)<br>    randomized_team_structure = {key: team_structure[key] for key in keys}<br>   <br>    for position, count in randomized_team_structure.items():<br>        players = select_position(position, count, max_players_per_team, max_spend, lib, selected_players, total_spend, team_counts)<br>        for player in players:<br>            total_spend+=player[&#39;value&#39;]<br>            team_counts[player[&#39;team&#39;]] += 1<br>            selected_players.append(player)<br>   <br>    return pd.DataFrame(selected_players) # Define the team structure with required player counts for each position<br><br><br># Constants<br>PLAYERS_DIR = &#39;./Fantasy-Premier-League/data/2023-24/players/&#39;<br>RAW_DATA_PATH = &#39;./Fantasy-Premier-League/data/2023-24/players_raw.csv&#39;<br>GAME_WEEK = 38<br>MAX_PLAYERS_PER_TEAM = 4<br>MAX_SPEND = 1000<br>RUNS = 100000<br> <br># Connect to ArcticDB<br>arctic = adb.Arctic(&quot;lmdb://fantasy_football&quot;)<br>library = arctic.get_library(&#39;players&#39;, create_if_missing=True)<br> <br># Main execution<br>ingest_player_data(PLAYERS_DIR, library)<br>library.write(&#39;players_raw&#39;, pd.read_csv(RAW_DATA_PATH))<br><br>library.write(&#39;all_data&#39;, merge_player_data(library))<br> <br># Get data grouped by player ID and calculate the mean of total points<br>q2 = adb.QueryBuilder()<br>q2 = q2[(q2[&quot;Game_Week&quot;] &gt;= GAME_WEEK - 5)].groupby(&quot;id&quot;).agg({&quot;total_points&quot;: &quot;mean&quot;})<br>new_total_points = library.read(&quot;all_data&quot;, query_builder=q2).data.reset_index()<br> <br># Get data filtered for the previous game week<br>q3 = adb.QueryBuilder()<br>q3 = q3[(q3[&quot;Game_Week&quot;] == GAME_WEEK - 1)]<br>game_week_filter = library.read(&quot;all_data&quot;, query_builder=q3).data<br> <br># Merge the filtered game week data with the new total points data based on player ID<br>merged_df = game_week_filter.merge(new_total_points, on=&#39;id&#39;, how=&#39;left&#39;, suffixes=(&#39;&#39;, &#39;_new&#39;))<br> <br># Fill missing total point values with the original total points and create a new column for average total points<br>merged_df[&#39;average_total_points&#39;] = merged_df[&#39;total_points_new&#39;].fillna(merged_df[&#39;total_points&#39;])<br> <br># Drop the temporary column used for merging<br>merged_df = merged_df.drop(columns=[&#39;total_points_new&#39;])<br> <br># Write the merged DataFrame back to the ArcticDB library<br>library.write(&#39;game_week_filter&#39;, merged_df)<br><br> <br># Team Selection Simulation<br>team_structure = {&#39;GK&#39;: 2, &#39;DEF&#39;: 5, &#39;MID&#39;: 5, &#39;FWD&#39;: 3}<br>all_teams = []<br> <br>for run_id in range(RUNS):<br>    team_df = select_random_team(team_structure, MAX_PLAYERS_PER_TEAM, MAX_SPEND, library)<br>    team_df[&#39;run_ID&#39;] = run_id<br>    all_teams.append(team_df)<br><br>all_teams_df = pd.concat(all_teams, ignore_index=True)<br>total_points_per_run = all_teams_df.groupby(&#39;run_ID&#39;)[&#39;average_total_points&#39;].sum()<br>best_run_id = total_points_per_run.idxmax()<br>best_team_df = all_teams_df[all_teams_df[&#39;run_ID&#39;] == best_run_id]<br>total_spend_best_team = best_team_df[&#39;value&#39;].sum()<br> <br># Display the best team<br>print(&quot;\nBest Team (Run ID with highest total points):&quot;)<br>print(tabulate(best_team_df, headers=&#39;keys&#39;, tablefmt=&#39;fancy_grid&#39;))<br>print(&quot;\nTotal Points of Best Team:&quot;, best_team_df[&#39;average_total_points&#39;].sum())<br>print(&quot;Total Spend on Best Team:&quot;, total_spend_best_team)</pre><p>We hope you have enjoyed this article and that it helps you find your perfect fantasy team. Enjoy the season!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ae31ff5d817" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arcticdb/picking-the-ultimate-fantasy-premier-league-team-with-arcticdb-4ae31ff5d817">Picking the Ultimate Fantasy Premier League Team with ArcticDB</a> was originally published in <a href="https://medium.com/arcticdb">ArcticDB</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Benchmarking ArcticDB]]></title>
            <link>https://medium.com/arcticdb/benchmarking-arcticdb-c2364ed7e841?source=rss----73571f8f9e6a---4</link>
            <guid isPermaLink="false">https://medium.com/p/c2364ed7e841</guid>
            <category><![CDATA[quant-finance]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[benchmarking]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Georgi Petrov]]></dc:creator>
            <pubDate>Wed, 31 Jul 2024 16:21:53 GMT</pubDate>
            <atom:updated>2024-07-31T16:21:53.654Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x2NR-8GleCW5SjyjmNo5jw.jpeg" /><figcaption>Air Speed Velocity</figcaption></figure><p><a href="https://arcticdb.io/">ArcticDB </a>thrives on continuous improvement and rigorously tested updates. This article looks at the benchmarking process we’ve adopted, a process that is important for ensuring each change not only integrates seamlessly but also improves the overall performance of ArcticDB. We’ll look into our benchmarking strategy, the specific requirements driving our choices, and discuss the role these benchmarks play in the development and maintenance of ArcticDB.</p><h4>What is ASV, and How Do We Use It?</h4><p><a href="https://github.com/airspeed-velocity/asv/">Air Speed Velocity (ASV)</a> is an indispensable benchmarking tool used widely among Python developers to maintain high-performance standards over time. It’s used in high-profile projects like Numpy, Arrow, and SciPy. ASV automates the tedious process of benchmarking different library versions, allowing developers to compare performance metrics across various updates and releases systematically.</p><p>At ArcticDB, we run our ASV benchmarks in 2 ways:</p><ol><li><strong>Nightly Runs on Main Branch</strong>: ASV runs benchmarks on the main branch each night, updating performance graphs that provide ongoing insights into our library’s efficiency and speed.</li><li><strong>On-Demand Benchmarking for Pull Requests</strong>: ASV proactively benchmarks any changes pushed to branches with open PRs against the main branch. If a performance regression exceeding 15% is detected, it triggers a benchmark failure. This proactive mechanism ensures that performance dips are caught and addressed swiftly, which helps us to strike a balance between continuous improvement and reliability</li></ol><p>Additionally, ASV allows for the creation and export of performance graphs, which we openly host on <a href="https://man-group.github.io/ArcticDB/">GitHub pages for ArcticDB</a>. This set up enables developers and users to get a sense of any performance changes visually and in real-time.</p><h3><strong>Adding and Managing Benchmarks in ArcticDB</strong></h3><h4>Structure of Benchmarking Code</h4><p>In ArcticDB, we have categorized the benchmarks based on the type of functionality they assess, ensuring that the process evaluates each aspect of the database and its functionality. Here’s how these benchmarks are structured:</p><ul><li><strong>Basic Functions</strong>: This category benchmarks fundamental operations such as read, write, append, and update. We benchmark these operations against local storage to ensure efficiency and reliability in everyday database interactions</li><li><strong>List Functions</strong>: Benchmarks in this group focus on the performance of listing operations, crucial for database management tasks such as retrieving symbols or browsing different versions stored within the database</li><li><strong>Local Query Builder (QB)</strong>: This set helps in assessing the speed and resource management of query builder operations, in general</li><li><strong>Persistent Query Builder</strong>: Designed to evaluate query builders against persistent storage solutions like AWS S3, this category is vital for testing the scalability and performance of ArcticDB when handling larger datasets, which are typical in production environments</li></ul><p>By maintaining a clear and comprehensive benchmarking strategy, ArcticDB ensures that each component performs optimally under varied conditions, maintaining the database’s integrity and performance.</p><h4>Importance of Choosing How to Benchmark ArcticDB</h4><p>ArcticDB stands out for its ease of use and high performance, but does need to deal with a range of performance in storage, from low-latency memory-mapped files through to high-latency cloud storage like like AWS S3. Cloud operations involve additional costs and so benchmarking can be expensive. We must balance our benchmarking strategies between local environments and cloud-based storage.</p><p>To optimize our approach, we categorize benchmarks based on the primary bottlenecks affecting different operations:</p><ul><li><strong>CPU/Memory Intensive Benchmarks</strong>: These are typically run locally using LMDB. This setup allows us to test the processing capabilities and memory usage of ArcticDB without incurring the costs associated with cloud storage.</li><li><strong>I/O Intensive Benchmarks</strong>: These benchmarks focus on operations involving significant input/output operations, which are crucial when using networked storage solutions like AWS S3. These tests ensure that ArcticDB can handle high data throughput efficiently, which is a typical scenario in production environments.</li></ul><p>This split allows us to maintain a balance between performance testing and cost management. By selectively choosing when and how to deploy these benchmarks, we can make sure that ArcticDB remains both fast and economical for our users.</p><h3>The effects of using ASV</h3><p>The benchmarks developed using ASV help us ensure that changes to ArcticDB do not degrade its performance. Here are a couple of examples:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Ohmp9z9rkswms-XQuUIwQ.png" /></figure><p>1. <strong>Identifying and Resolving Regressions</strong>: The benchmarks run on every pull-request and this helps us in preventing regressions from entering the main branch. But as we add more benchmarks over time, we can also identify regressions that were introduced in the past. In one instance, a significant regression was detected in one of our core features — iterating over the ‘version-chain’ and reading older versions. The ASV benchmarks helped highlight this issue, allowing us to address it promptly. This helped us improve the user experience.</p><p>2. <strong>Validating Performance Improvements</strong>: In another case, we implemented a fix intended to improve performance. Using our ASV benchmarks, we checked the change improved the method’s efficiency. This not only confirmed the fix worked but also demonstrated the benchmarks’ value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AF5iilGLCsMOa5zuh4UqBQ.png" /></figure><h3>Conclusion</h3><p>The careful and strategic benchmarking of ArcticDB is not just about maintaining its performance — it’s about understanding and optimizing how the database interacts with different storage environments, particularly cloud-based solutions. By implementing a balanced benchmarking strategy that differentiates between CPU/memory-intensive and I/O-intensive operations, we ensure that ArcticDB remains efficient and cost-effective.</p><p>This approach allows us to continuously refine our technology, making changes without degrading performance. ArcticDB demonstrates how performance tracking and optimization can substantially improve software development.</p><p>Ultimately, the insights gained from the benchmarking guide our development efforts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c2364ed7e841" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arcticdb/benchmarking-arcticdb-c2364ed7e841">Benchmarking ArcticDB</a> was originally published in <a href="https://medium.com/arcticdb">ArcticDB</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why ArcticDB Works So Well for Quant Research and Data Science]]></title>
            <link>https://medium.com/arcticdb/why-arcticdb-works-so-well-for-quant-research-and-data-science-98362ac712f0?source=rss----73571f8f9e6a---4</link>
            <guid isPermaLink="false">https://medium.com/p/98362ac712f0</guid>
            <category><![CDATA[quant]]></category>
            <category><![CDATA[timeseries]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[asset-management]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Nick  Clarke]]></dc:creator>
            <pubDate>Fri, 12 Jul 2024 13:09:13 GMT</pubDate>
            <atom:updated>2024-08-15T16:24:32.267Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ngLwhuL5OlYoK6oNfKBxSw.jpeg" /></figure><h3>Introduction</h3><p>If you are reading this you are probably expecting an article that explains how the performance, feature set and cost of <a href="https://arcticdb.io/">ArcticDB</a> make it a compelling choice for you. Whilst that is all true, there is a much more important reason why you should be using <a href="https://arcticdb.io/">ArcticDB</a> for your research and data science. Read on to find out more.</p><h3>How I Started Using ArcticDB</h3><p>The time was 2016 and I was working as a risk quant — my team was mostly creating models to risk manage the complex products we traded. This was interesting and challenging; the models were mostly for calculating price and risk of complex securities given a set of market data. The portfolio risk was measured by applying lots of market scenarios on top of the pricing models.</p><p>At around this time, the risk team and portfolio managers had started asking for statistical models. We were good at measuring the result when the market does something specific, but people also wanted to know what the most likely scenarios are, based on the recent history.</p><p>We started to build statistical models based of various analyses of historic market data. We quickly realized that:</p><ul><li>Testing statistical models is very data intensive.</li><li>Model strengths and flaws are only revealed by thorough testing.</li><li>Addressing the flaws requires changing the models and re-testing.</li><li>Soon a whole family of different models emerged.</li><li>A few of those models became useful but there was no clear winner.</li><li>So we needed to run a collection of different models on an ongoing basis.</li></ul><p>At this point my process that was working well for the pricing models was struggling to cope when applied to the statistical models. The problems were:</p><ul><li>Using files for the data had become chaotic and error prone. The multiple model versions made this worse.</li><li>The target production database was SQL. I was starting to question that choice for models that would continue to evolve over time because experience had taught me that schema changes were difficult and expensive using SQL.</li></ul><p>We needed a new approach.</p><p>Fortunately, I knew that the testing process was similar to that for quant trading models so I talked to researchers working in that area about their workflow. They gave me lots of great advice and the common theme that emerged was that they were all using Arctic — the predecessor of ArcticDB — and they loved it.</p><h3>Research in ArcticDB</h3><p>Moving my data into Arctic was very straightforward — there is very little to learn if you already know Pandas and Python. The performance was good (now great in ArcticDB) and the API was easy to learn and use. I immediately became a huge fan.</p><p>After the Arctic refactor was complete and I continued model development I noticed some other fantastic benefits:</p><ul><li>When I needed to change the layout of my data as models and requirements changed over time, I could do so easily and without needing help from DBAs (Database Administrators).</li><li>Having a development queue of new models was easy to support in ArcticDB using different environments. New models could be thoroughly tested for an extended time period in a test database, then promoted painlessly to production.</li><li>Building data pipelines around DataFrames as the unit of storage is a great template for research.</li></ul><h3>Fast Forward to the Present</h3><p>The reason why I joined the ArcticDB team and recommend it for research is simple — it hugely improved my productivity for building, testing and deploying models and I wanted to help other researchers and data scientists improve their productivity.</p><p>I had learned to use Arctic in a fraction of the time it had taken me to learn SQL. And I still needed help from experts with SQL when things got complicated. We also found that others in the team were able to learn and become productive using Arctic in almost no time. In fact, we recently collected feedback from our ArcticDB users and by far the most common theme was that ArcticDB had an almost zero learning curve for new joiners — they were able to be productive from day one.</p><p>In one sentence: ArcticDB gets out of your way so that you can focus on your data and models — your effort and thinking are concentrated on where they most count.</p><p>Thank you for reading my blog post. If my story has struck a chord with you, you can try ArcticDB for free and with no setup right now. Click the notebook link below to be running ArcticDB in seconds. If ArcticDB helped my research productivity maybe it could help yours too?</p><p>Notebooks: <a href="https://docs.arcticdb.io/latest/notebooks/ArcticDB_demo_lmdb/">https://docs.arcticdb.io/latest/notebooks/ArcticDB_demo_lmdb/</a></p><p>Docs: <a href="https://docs.arcticdb.io/latest/">https://docs.arcticdb.io/latest/</a></p><p>Website: <a href="https://arcticdb.io/">https://arcticdb.io/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=98362ac712f0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arcticdb/why-arcticdb-works-so-well-for-quant-research-and-data-science-98362ac712f0">Why ArcticDB Works So Well for Quant Research and Data Science</a> was originally published in <a href="https://medium.com/arcticdb">ArcticDB</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why you should use ArcticDB instead of CSV to save your Pandas DataFrames]]></title>
            <link>https://medium.com/arcticdb/why-you-should-use-arcticdb-instead-of-csv-to-save-your-pandas-dataframes-ac4d06e55724?source=rss----73571f8f9e6a---4</link>
            <guid isPermaLink="false">https://medium.com/p/ac4d06e55724</guid>
            <category><![CDATA[csv]]></category>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Matthew Simpson]]></dc:creator>
            <pubDate>Fri, 07 Jun 2024 12:36:46 GMT</pubDate>
            <atom:updated>2024-08-15T16:25:28.147Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FUYWtpY3MqcNtvYfLsihig.jpeg" /></figure><p>Storing time series data in Python? Forget CSVs, <a href="https://arcticdb.io/">ArcticDB</a> is the smarter choice. It’s designed for large datasets and offers incredible efficiency. Consider a DataFrame that has 1,000 columns, named `c0` to `c999`, each containing 100,000 rows of time series data incremented in seconds, with random floats between 0 and 1 as the values, as shown in the examples below: saving that to a CSV would be cumbersome and require 1.93GB of storage, but <a href="https://arcticdb.io/">ArcticDB</a> is sleek at just 0.8GB.</p><p>Writing speed? On a Jupyter notebook with 2 cores and 8GB of memory, ArcticDB saves the data in an average of 5 seconds over 5 runs to local storage, while saving CSVs lags behind at 180 seconds on average using a pyarrow engine. Reading speeds are also fast with ArcticDB, taking only 1.2 seconds on average over 5 runs, compared to the CSVs’ 53.5 second average.</p><p>Also with ArcticDB you can query that data set in storage so for example you could select a time range you would like to read where as with CSV you would need to read the entire file back and to a query locally.</p><p>ArcticDB works anywhere — from your local PC to cloud storage like S3 or Azure Blob Storage — and simplifies sharing, eliminating the hassle of file transfers. It’s optimized for Pandas dataframes, enabling direct storage and retrieval without complications. With its efficient columnar storage, ArcticDB reduces size and accelerates access. Moreover, its built-in versioning provides a transparent history of your data modifications, an advantage that CSVs lack.</p><p>Below is some template code to help you get started. For more information see the ArcticDB API guide here <a href="https://docs.arcticdb.io/latest/api/">Introduction — ArcticDB</a></p><pre>import numpy as np<br>import pandas as pd<br>import arcticdb as adb<br>   <br># Connect to Arctic database using the specified URL<br>arctic = adb.Arctic(&quot;lmdb://arcticdb_demo&quot;)<br> <br># Get or create a library for storing data<br>lib = arctic.get_library(&#39;test_adb_vscsv&#39;, create_if_missing=True)<br> <br># Define the size of the DataFrame to be 100,000 x 1000<br>rows = 100000<br>cols = 1000<br>large = pd.DataFrame(np.random.rand(rows, cols), columns=[f&#39;c{i}&#39; for i in range(cols)], index=pd.date_range(&#39;1/2/2020&#39;, periods=rows, freq=&quot;H&quot;))<br> <br># Write the DataFrame to the Arctic library<br>write_record = lib.write(&quot;large&quot;, large)<br> <br># Display the write result<br>write_record<br> <br># Read the DataFrame back from the Arctic library<br>read_record = lib.read(&quot;large&quot;)<br> <br># Display the read result<br>read_record<br> <br># Print the data from the read operation<br>print(read_record.data)</pre><p>Did you read this mini-blog and think to yourself, “I have a lot of CSV files and I could benefit from switching to ArcticDB?” If so, there is an example below of how to import data from CSV files to ArcticDB. The `csv_to_ADB` function can be used to automate the process of importing this data into ArcticDB. You could loop through each CSV file a folder and call `csv_to_ADB` for each one, using the CSV filename as the symbol name or providing a new symbol name if needed. This is particularly useful for batch processing large volumes of data. Please find a few examples of using this function at the bottom of the code snippet.</p><p>For best practices:</p><ul><li>Ensure consistent formatting across all CSV files, particularly the `DateTime` column, to avoid index errors.</li><li>Use the `pyarrow` engine for faster reading of CSV files, especially for large datasets.</li><li>Handle exceptions such as file read errors or write conflicts to ArcticDB gracefully to ensure the process does not stop abruptly.</li><li>Consider parallel processing if the number of files is large and system resources allow for it, to speed up the entire operation.</li><li>Maintain a log that records the success or failure of each file processed for audit and troubleshooting purposes.</li></ul><pre># install pandas, arcticdb, pyarrow<br>import os<br>import numpy as np <br>import pandas as pd<br>import arcticdb as adb<br> <br>   <br>def csv_to_ADB(csv_path, lib, index_name=&#39;DateTime&#39;, symbol_name=None, engine=&quot;pyarrow&quot;):<br>    &quot;&quot;&quot;<br>    The function `csv_to_ADB` takes a CSV file, converts it into a pandas DataFrame,<br>    and writes the DataFrame to an ArcticDB chunksize rows at a time.<br>  <br>    Parameters<br>    ----------<br>    csv_name: string<br>        The name/path of the CSV file to be read.<br>  <br>    lib: Arctic Library<br>        Where the data will be stored.<br>      <br>    index_name: string<br>        The column in the CSV to be used as the DataFrame index (defaults to &#39;DateTime&#39;).<br>  <br>    symbol_name: string<br>        Optional new name for the symbol when stored in the Arctic library.<br>        The function uses the CSV file basename as the symbol name if symbol_name is not provided. <br>  <br>    engine: string<br>        The parser engine to use for reading the CSV (defaults to &#39;pyarrow&#39; for performance).<br>    &quot;&quot;&quot;<br>    if not symbol_name:<br>        symbol_name = os.path.splitext(csv_path)[0]<br>   <br>    df = pd.read_csv(csv_path, engine=engine)<br>    df.set_index(index_name, inplace=True)<br>    lib.update(symbol_name, df, upsert=True)<br>  <br># Connect to a local Arctic database and get or create a library<br>arctic = adb.Arctic(&quot;lmdb://arcticdb_demo&quot;)<br>lib = arctic.get_library(&#39;test_adb_vscsv&#39;, create_if_missing=True)<br>    <br># Here are some examples of using this function. First, what we will do is:<br># Make random second data from the 1/1/2020, then save that to ArcticDB from CSV using the CSV file name as the symbol.<br>rows = 100000<br>cols = 1000<br>data1 = pd.DataFrame(np.random.rand(rows, cols), columns=[f&#39;c{i}&#39; for i in range(cols)], index=pd.date_range(&#39;1/1/2020&#39;, periods=rows, freq=&quot;s&quot;))<br> <br>data1.index.name = &#39;DateTime&#39;<br>data1.to_csv(&#39;test_data_1.csv&#39;, index=True)<br>csv_to_ADB(&#39;test_data_1.csv&#39;,lib)<br>print(lib.read(&#39;test_data_1&#39;).data.tail())<br> <br># Make random second data from 2020-01-02 03:46:40, then save that to ArcticDB from CSV using the CSV file name as the symbol.<br>data2 = pd.DataFrame(np.random.rand(rows, cols), columns=[f&#39;c{i}&#39; for i in range(cols)], index=pd.date_range(&#39;2020-01-02 03:46:40&#39;, periods=rows, freq=&quot;s&quot;))<br>data2.index.name = &#39;DateTime&#39;<br>data2.to_csv(&#39;test_data_2.csv&#39;, index=True)<br>csv_to_ADB(&#39;test_data_2.csv&#39;,lib)<br>print(lib.read(&#39;test_data_2&#39;).data)<br>   <br># Use the CSV file for 1/1/2020 and write that to ArcticDB with a different symbol name called made_up_data_1.<br>csv_to_ADB(&#39;test_data_1.csv&#39;,lib, symbol_name=&#39;made_up_data_1&#39;)<br>print(lib.read(&#39;made_up_data_1&#39;).data)<br>   <br># Use the CSV file for 2/1/2020 and write that to ArcticDB with a different symbol name called made_up_data_2.<br>csv_to_ADB(&#39;test_data_2.csv&#39;,lib, symbol_name=&#39;made_up_data_2&#39;)<br>print(lib.read(&#39;made_up_data_1&#39;).data)<br>   <br>   <br># Update made_up_data_1 with the data from 2/1/2020 so that made_up_data_1 will have the data for both 1/1/2020 and 2/1/2020.<br>csv_to_ADB(&#39;test_data_2.csv&#39;,lib, symbol_name=&#39;made_up_data_1&#39;)<br>print(lib.read(&#39;made_up_data_1&#39;).data)<br>   <br> <br># Rewrite data to test_data_1.csv with the data from 2020-01-02 03:46:40 and write that new data to ArcticDB.<br>data2 = pd.DataFrame(np.random.rand(rows, cols), columns=[f&#39;c{i}&#39; for i in range(cols)], index=pd.date_range(&#39;2020-01-02 03:46:40&#39;, periods=rows, freq=&quot;s&quot;))<br>data2.index.name = &#39;DateTime&#39;<br>data2.to_csv(&#39;test_data_1.csv&#39;, index=True)<br>csv_to_ADB(&#39;test_data_1.csv&#39;,lib)<br>print(lib.read(&#39;test_data_1&#39;).data)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac4d06e55724" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arcticdb/why-you-should-use-arcticdb-instead-of-csv-to-save-your-pandas-dataframes-ac4d06e55724">Why you should use ArcticDB instead of CSV to save your Pandas DataFrames</a> was originally published in <a href="https://medium.com/arcticdb">ArcticDB</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Time travel in ArcticDB]]></title>
            <link>https://medium.com/arcticdb/time-travel-in-arcticdb-1403fbf00611?source=rss----73571f8f9e6a---4</link>
            <guid isPermaLink="false">https://medium.com/p/1403fbf00611</guid>
            <category><![CDATA[quantitative-finance]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[pandas]]></category>
            <dc:creator><![CDATA[Alex Owens]]></dc:creator>
            <pubDate>Fri, 12 Apr 2024 08:34:15 GMT</pubDate>
            <atom:updated>2024-08-15T16:26:14.710Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rk58eP1JjQdfRVFJWIKHsw.jpeg" /></figure><p>Previous <a href="https://medium.com/arcticdb/our-journey-creating-arcticdb-solving-the-challenge-of-dataframes-at-scale-62d58d908900">blog posts</a> have talked about the immutability of data stored in <a href="https://arcticdb.io/">ArcticDB</a> as a means of optimising performance, improving horizontal scalability, and preventing data corruption. Another consequence of this immutability is the option to “time travel” back to earlier versions of a symbol. This is also known as “bitemporality” in the use case where the symbol being stored has a datetime index, as you can retrieve data not only for a specific date-range in the latest version of the symbol, but also from an older version as it looked at a particular point in time.</p><p>So why is this useful? Let’s work through a toy example of a real life use case to demonstrate what makes this feature so powerful.</p><p>Let’s say you are ingesting data from a data vendor, and each day they provide CSV files containing the open, close, high, low, volume, and trades data for every minute of live trading for a universe of securities for that trading day:</p><pre>with open(&quot;AAPL_2024-01-01.csv&quot;, &quot;r&quot;) as f:<br>    daily_df = pandas.read_csv(f, index_col=&quot;datetime&quot;)<br>lib.append(&quot;AAPL&quot;, daily_df)<br>print(lib.read(&quot;AAPL&quot;).data)</pre><pre>                         open     close       low      high    volume  trades<br>datetime                                                                     <br>2024-01-01 08:00:00  0.758089  0.339878  0.781040  0.098037  0.134402     346<br>2024-01-01 16:29:00  0.221275  0.773076  0.321803  0.586879  0.250758     201</pre><p>where I have just included the first and last minutes of the day here to keep the size of data involved down, and the values are randomly generated. The general flow each day will look like the above for each security in the universe. However, the data vendor may also sometimes restate data for earlier time periods to correct errors in the original data provided. Let’s assume that we have standard daily data for the first 3 days of 2024:</p><pre>                         open     close       low      high    volume  trades<br>datetime                                                                     <br>2024-01-01 08:00:00  0.758089  0.339878  0.781040  0.098037  0.134402     346<br>2024-01-01 16:29:00  0.221275  0.773076  0.321803  0.586879  0.250758     201<br>2024-01-02 08:00:00  0.543514  0.121713  0.908510  0.859530  0.673515     810<br>2024-01-02 16:29:00  0.363511  0.506118  0.445974  0.031269  0.743444     665<br>2024-01-03 08:00:00  0.054882  0.319868  0.520630  0.986617  0.812310     847<br>2024-01-03 16:29:00  0.237748  0.932168  0.990305  0.026718  0.109527     527</pre><p>Then on the fourth day, the vendor provides both the usual daily data, and restates the data for 2024–01–02. Writing the data to <a href="https://arcticdb.io/">ArcticDB</a> will now include code such as:</p><pre>with open(&quot;AAPL_2024-01-02_restatement.csv&quot;, &quot;r&quot;) as f:<br>    restated_df = pandas.read_csv(f, index_col=&quot;datetime&quot;)<br>lib.update(&quot;AAPL&quot;,  restated_df)<br>print(lib.read(&quot;AAPL&quot;).data)</pre><pre>                         open     close       low      high    volume  trades<br>datetime                                                                     <br>2024-01-01 08:00:00  0.758089  0.339878  0.781040  0.098037  0.134402     346<br>2024-01-01 16:29:00  0.221275  0.773076  0.321803  0.586879  0.250758     201<br>2024-01-02 08:00:00  0.726245  0.209358  0.382218  0.652552  0.060542     452<br>2024-01-02 16:29:00  0.912180  0.317210  0.460713  0.581922  0.330218     642<br>2024-01-03 08:00:00  0.054882  0.319868  0.520630  0.986617  0.812310     847<br>2024-01-03 16:29:00  0.237748  0.932168  0.990305  0.026718  0.109527     527<br>2024-01-04 08:00:00  0.813585  0.571894  0.813374  0.598003  0.542102     184<br>2024-01-04 16:29:00  0.808495  0.375533  0.665888  0.847430  0.885961     245</pre><p>where the third and fourth rows are now different than they were before. We now have a problem. Let’s say we decided to make a trade on 2024–01–03, based on the information available to us at the time. If we could only read the latest version of the symbol AAPL , then the price data from 2024-01-02 would not match the data as it was when we made the decision. This is where time-travel comes to the rescue. The as_of parameter to read can be used to specify that we want to read an earlier version, not just the latest. In this example:</p><pre>print(lib.read(&quot;AAPL&quot;, as_of=2).data)</pre><pre>                         open     close       low      high    volume  trades<br>datetime                                                                     <br>2024-01-01 08:00:00  0.758089  0.339878  0.781040  0.098037  0.134402     346<br>2024-01-01 16:29:00  0.221275  0.773076  0.321803  0.586879  0.250758     201<br>2024-01-02 08:00:00  0.543514  0.121713  0.908510  0.859530  0.673515     810<br>2024-01-02 16:29:00  0.363511  0.506118  0.445974  0.031269  0.743444     665<br>2024-01-03 08:00:00  0.054882  0.319868  0.520630  0.986617  0.812310     847<br>2024-01-03 16:29:00  0.237748  0.932168  0.990305  0.026718  0.109527     527</pre><p>will show us the data exactly as it looked immediately after the append on 2024–01–03. This then begs the question, how do we know which version to read?</p><p>There are three options. All modifying operations write/append/update return a <a href="https://docs.arcticdb.io/latest/api/library_types/#arcticdb.VersionedItem">VersionedItem object</a>. Amongst other things, this object has a version attribute telling you the version number of the symbol that was just created. This information can be stored, either in a separate symbol, or in another database entirely, depending on exact requirements.</p><p>Alternatively, a timestamp (in UTC) can be provided to as_of , which will retrieve the version that was the latest at the specified point in time. If, for example, the vendor provides the data at 5pm each day, and we always write it into ArcticDB by 6pm, then</p><pre>lib.read(&quot;AAPL&quot;, as_of=pandas.Timestamp(&quot;2024-01-03T18:00:00&quot;))</pre><p>will retrieve the same data as requesting version 2.</p><p>Finally, we can use <a href="https://docs.arcticdb.io/latest/api/library/#arcticdb.version_store.library.Library.snapshot">snapshots</a> to define a collection of symbol-version pairs exactly as they were at a point in time. The snapshot name can then be provided to the as_of argument to retrieve the version of a symbol referenced by that snapshot:</p><pre>lib.read(&quot;AAPL&quot;, as_of=&quot;snapshot-2024-01-03&quot;)</pre><p>In the trivial example given here, there is no benefit to using snapshots over timestamps. However, in the case where symbols are being modified continuously, and trading decisions are based on multiple symbols rather than just one, snapshots offer a way to refer to a set of symbol-version pairs exactly as they were, without having to worry about details such as clock-skew.</p><p>But what if you don’t need this functionality, and only ever care about the latest version? In this case, it would be wasteful of disk-space to keep around old data that will never be read again. In this case, all of the modifying operations have an argument prune_previous_versions that will delete older versions of the symbol as the new version is written, excepting any versions referenced by a snapshot.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1403fbf00611" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arcticdb/time-travel-in-arcticdb-1403fbf00611">Time travel in ArcticDB</a> was originally published in <a href="https://medium.com/arcticdb">ArcticDB</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why ArcticDB? Our answer to high-volume DataFrame processing in Quant Finance]]></title>
            <link>https://medium.com/arcticdb/why-arcticdb-our-answer-to-high-volume-dataframe-processing-in-quant-finance-fe2faf3577dc?source=rss----73571f8f9e6a---4</link>
            <guid isPermaLink="false">https://medium.com/p/fe2faf3577dc</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[quantitative-finance]]></category>
            <dc:creator><![CDATA[Abhi Thakur]]></dc:creator>
            <pubDate>Fri, 05 Jan 2024 15:24:02 GMT</pubDate>
            <atom:updated>2024-08-15T16:26:58.681Z</atom:updated>
            <content:encoded><![CDATA[<p>Finding value in data for quant and financial data analytics isn’t just about taking data from its raw form and transforming it into a usable format. In fact, in modern financial analytics those transformations are just a thin slice of the process, before the data science really starts.</p><p>British mathematician Clive Humby famously remarked back in 2006 that “data is the new oil”, and we think that holds true today. However, a contemporary interpretation is that data is more akin to a renewable commodity; in that it’s continually re-used, shared and renewed throughout the data value chain. The best performing systems today are the ones that optimise for the sharing, re-use and renewal of data between technologies and people.</p><p>Quant and financial data analytics practitioners can be likened to modern-day artisans; much like a watchmaker whose workshop is equipped with specialist implements for the creation of intricate timepieces, quant researchers and engineers need to carefully consider the tools at their disposal in order to build complex systems that bring together data, technology and people.</p><h4>Selecting the right toolkit to build quant systems:</h4><p>What are the most important factors to consider when building the toolkit?</p><p><strong>Select the right solution for the problem: </strong>A highly specialised problem likely needs a highly specialised solution. It’s possible to use a sledgehammer to crack an egg, but is it the best way?</p><p><strong>Choose interoperable:</strong> Tools need to be adaptable and equipped to move with the waves of change of organisations, methodologies and integrate with seamlessly with existing systems.</p><p><strong>Retain the ability to scale efficiently:</strong> In modern data science environments, tools should scale right through from individual users to production-heavy systems.</p><p><strong>Prize invisibility: </strong>The best tools are those that fit seamlessly into consciousness; there should be low barriers to learning and use.</p><p><strong>How we leverage Python and Open Source for financial data science</strong></p><p>We are a technology team that believes in open source. Several years ago, we decided to centre our front office analytics in Python. At that time, Python was emerging as a growing open-source language. Its readability and ease of integration with other technologies made it an ideal choice for the types of workflows we run; we use it everywhere from data onboarding through to implementation of complex algorithms trading the markets. We’re happy we made that choice as we’ve seen an explosion in Python since; its breadth, portability and ease of extension have meant that it’s become the lingua franca for anyone doing data science at scale. This, coupled with its open-source nature, has led to the emergence of collaborative and community-driven development of specialised tools for quant and financial data analytics.</p><p>Indeed, choosing Python means we’re able to leverage a rich ecosystem of tools built to solve problems for quantitative data science at scale. <br>One of the most popular tools at our disposal is Pandas, a powerful data manipulation library in Python. Pandas provides data structures and functions for efficiently handling and analysing structured data, making it a crucial instrument for quantitative researchers and engineers. With Pandas, users can easily clean, transform and analyse financial data, perform statistical calculations and create visualisations.</p><p>It’s also the tool that introduces an intuitive two-dimensional data structure, the DataFrame. The DataFrame is especially important as it is often the base unit of analysis in modern data science workflows.<br>Another important tool in this domain is NumPy. NumPy is a fundamental package for scientific computing in Python. It provides support for large, multi-dimensional arrays and matrices, along with a collection of mathematical functions to operate on these arrays. Quantitative researchers and engineers often use NumPy for numerical computations and mathematical modelling in finance.</p><p>Turning to other libraries, we would also highlight Scikit-learn, a machine learning library for Python which provides simple and efficient tools to enhance data analysis and modelling. It’s specialised for various machine learning algorithms, provides functionality for classification, regression, clustering and more. Users often employ its features for data preprocessing, feature selection and model evaluation.</p><p>Being rooted in the Python ecosystem means that all these tools have high degrees of interoperability, making it easy to build bespoke extensions and maintain. The system solves the problem of generating value from data in an efficient way. The substance that flows through the system is data — and the form it takes is DataFrame, we might think of it as the binding agent. <br>The problem faced by individuals, teams and organisations is how to scale DataFrames without losing any of the benefits of interoperability, invisible tooling and organisational efficiency.</p><h4>Scaling the DataFrame: <a href="https://arcticdb.io/">ArcticDB</a></h4><p>This is a problem we were faced with at Man Group and what led to us developing <a href="https://arcticdb.io/">ArcticDB </a>— quant finance database — designed with our principles of technology and people-powered systems in mind.</p><p><em>Solve the problem</em></p><p>The problem ArcticDB addresses is making data highly available, with near-zero footprint and minimal cognitive load.</p><p>In modern quantitative data science it’s crucial to have the ability to work with huge amounts of data: a typical dataset might be many hundreds of thousands of columns wide, and billions of rows deep. Frustratingly, a DataFrame without ArcticDB maxes out at a size which is orders of magnitude smaller than that. We’ve also built in smarts to optimise ArcticDB for the complexity of financial data.</p><p><em>Be interoperable</em></p><p>ArcticDB fits seamlessly into the Python data science ecosystem, expanding on the concept of the DataFrame as a common thread.</p><p>ArcticDB was designed to swiftly make data available in existing systems, without a complex refactoring of code</p><p><em>Scale efficiently</em></p><p>ArcticDB operates on the edge, it’s a client-side database and installable with one command. It’s truly serverless in the sense that end users can run it on their own machines (physical or virtual) without having to provision a dedicated database server. The C++ engine deals with all of complexities of retrieving data for users without them having to think about it, they just send the command in Python.</p><p>We designed ArcticDB to scale without the need for dedicated infrastructure or administration. It is also designed to be production-ready, it powers front office analytics at Man Group and is being used across other financial services organisations.</p><p><em>Invisible tooling</em></p><p>The most important factor we considered when designing ArcticDB was that it should be a tool that enables our people.</p><p>The first step in the design of the Python API and the other important element is minimising cognitive load. ArcticDB makes data highly available without the user having to switch context; it brings huge amounts of data back in format that’s instantly usable — the DataFrame. This means users can spend more time focussed on their data science — speeding up the time to value.</p><p>Nick Clarke head quant for ArcticDB:</p><blockquote>I’ve been working for years as a quant and have used lots of different database technologies. When I tried ArcticDB I immediately realised it was different. I am passionate about it, because it takes away the pain of dealing with the data. That leaves me free to focus on generating value with better models and ultimately, solving business problems.</blockquote><h4>Conclusion</h4><p>Effective systems in modern quantitative data science need to be mindful of both technology and people. When selecting the right toolkit for a system it’s important to consider all the factors outlined above: tackling the problem with the right solution, prizing interoperability, scaling efficiently and the invisibility of tools — combined, these make for technology that is an extension of a team, rather than an impediment.</p><p>Through the use of the Python Open Source ecosystem, it’s possible to build a system that goes some way in achieving that. But in order to truly achieve the flow state demanded in modern financial data workflows, we must pay attention to the re-use, sharing and renewal of data. The base unit of analysis to consider is the DataFrame and solving the challenge of scaling it for the huge volumes and complexity of data we use in addressing modern business problems.</p><p>ArcticDB is our answer to DataFrames-at-scale challenge — we’ve found it to be transformative in the way we do data science and we’re privileged to be able to share it with all.</p><p>More information:</p><p>You can get started for free here: <a href="https://github.com/man-group">github.com/man-group/arcticdb</a></p><p>Documentation, including some example notebooks: <a href="https://docs.arcticdb.io/latest/">https://docs.arcticdb.io/latest/</a></p><p>You can get in contact with us: arcticdb@man.com</p><p>Our website <a href="https://arcticdb.io/">arcticdb.io</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ibCObt-z4ucdUbGicO3VUg.png" /><figcaption>An ArcticDB DataFrame</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe2faf3577dc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arcticdb/why-arcticdb-our-answer-to-high-volume-dataframe-processing-in-quant-finance-fe2faf3577dc">Why ArcticDB? Our answer to high-volume DataFrame processing in Quant Finance</a> was originally published in <a href="https://medium.com/arcticdb">ArcticDB</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A match made in-memory ArcticDB ❤️ D-Tale]]></title>
            <link>https://medium.com/arcticdb/a-match-made-in-memory-arcticdb-%EF%B8%8F-d-tale-abd98f7b09b9?source=rss----73571f8f9e6a---4</link>
            <guid isPermaLink="false">https://medium.com/p/abd98f7b09b9</guid>
            <category><![CDATA[visualisation]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Andrew Schonfeld]]></dc:creator>
            <pubDate>Thu, 14 Sep 2023 07:48:40 GMT</pubDate>
            <atom:updated>2024-08-15T16:27:32.008Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s been almost 4 years since the original version of D-Tale was released as a way for Pandas users to navigate their DataFrames. There have been many new features added and lots of bugs fixed. One aspect of D-Tale’s construction that has consistently been a point of contention has been its need to work from DataFrames stored in memory. For small DataFrames, this is by far the best solution, but users are accustomed to using larger (billions of rows) and wider (sometimes are high as 400K columns) DataFrames. So displaying DataFrames of these dimensions proved to be unwieldy. Thankfully, a solution to this problem has come in the form of <a href="https://arcticdb.io/">ArcticDB</a>!</p><p>At long last! There is finally a solution for navigating the underlying data of your <a href="https://arcticdb.io/">ArcticDB</a> databases. Once again, the solution is D-Tale!</p><p>D-Tale backed by ArcticDB allows you to explore datasets that are much larger than what you can store in memory. As you scroll down, D-Tale will page in the additional required data in an on-demand fashion meaning that the data doesn’t all have to be stored in memory at the same time.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Ft-C_9Jw8tjI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dt-C_9Jw8tjI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Ft-C_9Jw8tjI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/689a44ad75f30dfc88f346f262736a6d/href">https://medium.com/media/689a44ad75f30dfc88f346f262736a6d/href</a></iframe><h3>Getting Started</h3><h4>Installation</h4><p>Run</p><pre>$ pip install dtale[arcticdb]</pre><p>This will install D-Tale and ArcticDB.</p><h4>Set up local database for testing</h4><pre>import pandas as pd<br>import numpy as np<br>from datetime import datetime<br>from arcticdb import Arctic<br><br>uri = &quot;lmdb:///tmp/dtale/arcticdb&quot;<br>conn = Arctic(uri)<br>conn.create_library(&#39;lib1&#39;)<br>lib1 = conn[&#39;lib1&#39;]<br>lib1.write(&#39;symbol1&#39;, pd.DataFrame([<br>    {&#39;col1&#39;: 1, &#39;col2&#39;: 1.1, &#39;col3&#39;: pd.Timestamp(&#39;20230101&#39;)}<br>]))<br>cols = [&#39;COL_%d&#39; % i for i in range(50)]<br>df = pd.DataFrame(np.random.randint(0, 50, size=(25, 50)), columns=cols)<br>df.index = pd.date_range(datetime(2000, 1, 1, 5), periods=25, freq=&quot;H&quot;)<br>lib1.write(&#39;symbol2&#39;, df)<br>lib1.write(&#39;symbol3&#39;, pd.DataFrame([<br>    {&#39;col1&#39;: 2, &#39;col2&#39;: 2.2, &#39;col3&#39;: pd.Timestamp(&#39;20230102&#39;)}<br>]))<br>conn.create_library(&#39;lib2&#39;)<br>lib2 = conn[&#39;lib2&#39;]<br>N_COLS = 1000<br>N_ROWS = 20_000<br>cols = [&#39;COL_%d&#39; % i for i in range(N_COLS)]<br>big_df = pd.DataFrame(np.random.normal(loc=10.0, scale=2.5, size=(N_ROWS, N_COLS)), columns=cols)<br>big_df.index = pd.date_range(datetime(2000, 1, 1, 5), periods=N_ROWS, freq=&quot;H&quot;)<br>lib2.write(&#39;symbol4&#39;, big_df)<br>conn.create_library(&#39;lib3&#39;)<br>lib3 = conn[&#39;lib3&#39;]<br>lib3.write(&#39;symbol5&#39;, pd.DataFrame(<br>    {&#39;col{}&#39;.format(i): list(range(1000)) for i in range(105)}<br>))</pre><h4>Spin up the D-Tale backend</h4><pre>import dtale.global_state as global_state<br>from dtale.app import build_app<br><br>uri = &quot;lmdb:///tmp/dtale/arcticdb&quot;<br>global_state.use_arcticdb_store(uri=uri)<br>app = build_app(reaper_on=False)<br>app.run(host=&quot;0.0.0.0&quot;, port=9207)</pre><h4>Connect D-Tale and navigate the data</h4><pre>&gt;&gt;&gt; import dtale<br>&gt;&gt;&gt; uri = &quot;lmdb:///tmp/dtale/arcticdb&quot;<br>&gt;&gt;&gt; dtale.show_arcticdb(uri=uri, use_store=True)<br>&lt;URL to access D-Tale UI&gt;</pre><p>use_store=True forces the mechanism D-Tale uses for storing/reading/writing data to be ArcticDB. This seems insignificant, but it actually provides a huge enhancement to D-Tale&#39;s infrastructure. You can now read DataFrames of any size without having any memory constraints. D-Tale will simply read the rows/columns of your DataFrame that need to be displayed in your browser, rather than the entire DataFrame into memory.</p><h4>Navigation</h4><p>To start you’ll be prompted with a screen where you’ll choose your library and symbol. For now, let’s just go with lib1 &amp; symbol1. Once you selected those you can click &quot;Load&quot;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*gZiW98X8gwDM2Y6o.png" /></figure><p>You’ll now see the standard D-Tale grid containing the data in your symbol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*S-aKwpdJhi80CqmC.png" /></figure><p>You’ll also notice a bar at the top of the screen showing that you’re using ArcticDB as well as the current URI, library and symbol. Clicking that will either bring you to a popup where you can choose a different library and symbol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*5f90xJfSg8rjWsWJ.png" /></figure><p>If your symbol is for a wide DataFrame (more than 100 columns) then you’ll also have an option to jump to a specific column. By default, any DataFrame with more than 100 columns any column after the 100th will be hidden for performance purposes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*i2JcN_OwYRIcLHY8.png" /></figure><p>The need for a popup dedicated to jumping to specific columns is so we can handle the scenario where your DataFrame contains over 100 columns. This becomes too taxing on the browser to render all of these columns. Not to mention, it would be too hard to scroll to the column you’re looking for. So now you’ll be able to type in the name of the column you’re looking for and select it. This will update the grid to display the contents of that column as well as any columns you previously had locked (by default the index columns are locked).</p><p><em>If you truly want to display all columns you still can using the “Describe” popup and checking all columns.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*hqjC6w-YURD0b0vi.png" /></figure><p>And now you’ll see only the columns you’ve had locked (we’ve locked no columns in this example) and the column you chose to jump to.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*uuw3LGZM-W1-QdbF.png" /></figure><h4>Going Further with ArcticDB</h4><p>See the ArcticDB <a href="https://docs.arcticdb.io/">docs</a> and <a href="https://arcticdb.io/">website</a> for more information about it. The LMDB backend for ArcticDB is recommended for local testing, but for real workloads we recommend using an S3 backend. You can simply point D-Tale at an S3 backed ArcticDB instance and browse the data being written by processes across your system.</p><h4>Differences in Functionality from the Original D-Tale</h4><p>There are some features which are not implemented yet when using the ArcticDB backend. Some of these are not going to work well when paging the data into the browser (like sorting). Some of these will come later, building on ArcticDB’s <a href="https://docs.arcticdb.io/api/query_builder">QueryBuilder</a> interface. Feature differences are noted below:</p><ul><li>Custom Filtering — the ability to specify custom pandas queries</li><li>Column Filters<br>– Numeric — range filters ([], ()) are no longer available<br>– String — startswith, endswith, contains, regex, length &amp; case-sensitivity</li><li>Sorting</li><li>Editing (this may eventually be available through a boolean configuration property)</li><li>Data Reshapers</li><li>Dataframe Functions</li></ul><p>Functionality that is still available, but for dataframes with less-than 1 million rows &amp; less-than-or-equal to 100 columns:</p><ul><li>Unique Count</li><li>Outliers &amp; Outlier Highlighting</li><li>Much of the “Describe” popup initial details</li></ul><p>If there is any functionality (which isn’t controlled by ArcticDB itself) you want added back in for ArcticDB please <a href="https://github.com/man-group/dtale">submit an issue on the D-Tale repo.</a></p><p>You can always fall back to the original D-Tale implementation and load entire ArcticDB symbols in to memory, the process for which is documented in the “Connect D-Tale” section above.</p><p>To work around these you can load entire ArcticDB symbols in to memory rather than following the code snippet in the “Connect D-Tale” section:</p><pre>&gt;&gt;&gt; import dtale<br>&gt;&gt;&gt; uri = &quot;lmdb:///tmp/dtale/arcticdb&quot;<br># show one symbol,<br>&gt;&gt;&gt; dtale.show_arcticdb(uri=uri, library=&quot;lib1&quot;, symbol=&quot;symbol1&quot;)<br># alternative method to show one symbol<br>&gt;&gt;&gt; lib = conn[&#39;lib1&#39;]<br>&gt;&gt;&gt; df = lib.read(&#39;symbol1&#39;).data<br>&gt;&gt;&gt; dtale.show(df)</pre><p>As described above there are serious advantages to paging the data in from ArcticDB, so only follow this alternative if you are hit by one of the “Differences in Functionality” documented here.</p><p>We’re looking at further integrations of ArcticDB across open source libraries if you have any suggestions please feel free to <a href="https://github.com/man-group/arcticdb">raise an issue on GitHub</a> or send us an email at arcticdb@man.com</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abd98f7b09b9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arcticdb/a-match-made-in-memory-arcticdb-%EF%B8%8F-d-tale-abd98f7b09b9">A match made in-memory ArcticDB ❤️ D-Tale</a> was originally published in <a href="https://medium.com/arcticdb">ArcticDB</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>