<?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[Stories by Fabio Sato on Medium]]></title>
        <description><![CDATA[Stories by Fabio Sato on Medium]]></description>
        <link>https://medium.com/@fabiosato?source=rss-b77c3da1781e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*8w0h79r7TVYAMOpM.jpg</url>
            <title>Stories by Fabio Sato on Medium</title>
            <link>https://medium.com/@fabiosato?source=rss-b77c3da1781e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 22:50:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fabiosato/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Development of Machine Learning Models using Apache Spark]]></title>
            <link>https://medium.com/@fabiosato/development-of-machine-learning-models-using-apache-spark-25aca2034021?source=rss-b77c3da1781e------2</link>
            <guid isPermaLink="false">https://medium.com/p/25aca2034021</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[spark]]></category>
            <dc:creator><![CDATA[Fabio Sato]]></dc:creator>
            <pubDate>Sun, 13 Aug 2017 13:28:38 GMT</pubDate>
            <atom:updated>2017-08-13T13:28:49.612Z</atom:updated>
            <content:encoded><![CDATA[<p>Apache Spark (<a href="https://spark.apache.org/">https://spark.apache.org/</a>) is known for providing real time in memory data processing for large amounts of data using distributed computing technology over commodity hardware.</p><p>Lately, Spark has also been adopted for machine learning problems through the application of MLLib (<a href="https://spark.apache.org/mllib/">https://spark.apache.org/mllib/</a>), that enables the utilization of the parallel processing of a Spark cluster to speed up data analysis and development of predictive models for classification and regression.</p><p>In this series of weekly posts I will try to explain step by step an example for the development of a regression model, showcasing the benefits of using Spark to speed up cross validation and hyper parameters search for the development of optimal models.</p><p>The posts will also introduce the reader to some basic building blocks of Apache Spark (RDD and DataFrames) and PySpark, the Python interface for Spark.</p><p>Stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=25aca2034021" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Databases for 2017: MongoDB]]></title>
            <link>https://medium.com/@fabiosato/databases-for-2017-mongodb-56ba97792ac3?source=rss-b77c3da1781e------2</link>
            <guid isPermaLink="false">https://medium.com/p/56ba97792ac3</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[mongodb]]></category>
            <dc:creator><![CDATA[Fabio Sato]]></dc:creator>
            <pubDate>Sat, 31 Dec 2016 12:49:08 GMT</pubDate>
            <atom:updated>2016-12-31T12:53:54.526Z</atom:updated>
            <content:encoded><![CDATA[<p>Databases for 2017: MongoDB</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*ZxhIrCLwJxXWLhbVqwF2QQ.png" /></figure><p>As 2017 is just around the corner I have been investigating some new technologies that could be interesting to invest my time to adopt in new projects.</p><p>I&#39;ve recently have spent some time using MongoDB with Python Notebooks for data science and really enjoyed the experience. I was quite skeptical about using Mongo for long living projects since I have read many articles in the past discussing data loss and corrupted databases due Mongo&#39;s architectural flaws. I just didn&#39;t see any benefits of using it instead of a good SQL database such as PostgreSQL.</p><p>Last time I checked Mongo&#39;s user documentation there was nothing in it that I couldn&#39;t do with a decent relational database. It just looked to me like a toy database for cool kids that didn&#39;t bother to learn SQL.</p><p>I accidentally took MongoDB for a quick spin just because I needed to store nested JSON documents and was lazy to convert them to a relational model. Yes, I could have used JSONB in PostgreSQL but it was so simple to install MongoDB and everything was just working a couple of minutes after I downloaded the installer. I may have also been influenced by some MongoChef ads (<a href="http://3t.io/mongochef/">http://3t.io/mongochef/</a>) that showed up in my twitter timeline these days.</p><p>To my surprise, I found out during my little data exercise that important things have changed in Mongo since version 3 that I was completely unaware of. My opinions are based on the latest stable version available (3.4).</p><p>The most important change is that Mongo now has a pluggable storage engine. The default one is called WiredTiger and is a complete redesign. Many of the past limitations and problems seem to have been properly addressed now. It looks to me that the company behind Mongo invested money and time to overcome their technical debts and brought it up-to-date against NoSQL rivals.</p><p>I consider MongoDB to be a real distributed database now. I still have to play around with this feature and build a better notion of how it works but I really liked what I&#39;ve read so far. Horizontal scaling is a requirement that makes me consider adopting a NoSQL database instead of a relational one for a project.</p><p>MongoDB data aggregation framework was a nice surprise. I needed to perform some data aggregation on attributes of nested documents and I had to learn the new query capabilities and syntax to perform this. At first, the syntax looked weird to me until I realized that MongoDB has a builtin powerful map-reduce capability that can be combined with Spark for real big data stuff.</p><p>Finally, the last good news for me was the set of spatial query functions available. I&#39;m not sure if they were added in version 3 but I though that MongoDB supported only point-based distance functions. Mongo in fact has powerful spatial query functions that can be used with points, lines and polygons required for the development of GIS applications.</p><p>My conclusion after spending some time with MongoDB is that it can not be considered a kid&#39;s toy anymore. It may still look hipster from the outside but it has advanced features not available or difficult to be replicated with relational databases.</p><p>Adoption of MongoDB has grown consistently over the years and the ecosystem around it is huge and diverse. During my experiment I easily found discussions at Stack Overflow addressing my doubts and it was really easy and fast to overcome my lack of knowledge of the tool.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=56ba97792ac3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Rise of Time Series Databases]]></title>
            <link>https://medium.com/@fabiosato/the-rise-of-time-series-databases-6fb93966938b?source=rss-b77c3da1781e------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fb93966938b</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[timeseries]]></category>
            <category><![CDATA[cassandra]]></category>
            <dc:creator><![CDATA[Fabio Sato]]></dc:creator>
            <pubDate>Sat, 12 Mar 2016 22:14:44 GMT</pubDate>
            <atom:updated>2016-03-12T22:24:44.033Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>The Rise of Time Series Databases</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*qOTmstTtDyFyFm1i-4cPFA.jpeg" /></figure><p>I have been probably working with time series data for about more than 15 years now (I prefer to not count the exact number of years) and have been really intrigued by the rise of Time Series databases in last years.</p><p>During my professional career I have been working with SQL databases and a couple of different data models strategies and I believe that for the problems dealing with a fixed set of variables/metrics and maximum time resolutions around 5 to 10 minutes you&#39;ll be just fine using your well known and reliable SQL database.</p><p>However, when you need to deal with different metrics and finer grained time resolutions things start getting complicated in SQL world. Consider gathering 10 different metrics every one second from 10 different sources. To accomplish this, you&#39;d probably come up with a table with columns similar to this list:</p><ul><li>Date and time</li><li>Data source</li><li>Metric</li><li>Value</li></ul><p>So what could be wrong with that? Just do the math. In one year of data (if it&#39;s not a leap year) you&#39;d have 3,153,600,000 rows. Yes, that&#39;s it, ~3 billion rows for just one year. Now, imagine having to scan over these rows to every time you need to perform data aggregation. With such a simple database schema your SQL database performance will degrade over the time and table indexes and SSDs will only alleviate but won&#39;t solve the problem.</p><p>If you&#39;re lucky enough and don&#39;t need to keep this data around for too long you can probably get around it. I&#39;m considering the cases where you need to keep data for a long time (in my case I cannot delete data) and medium to larger software development projects dealing with hundreds to thousands of different data sources with more than just ten metrics. In those scenarios it will not take too much time until you are tweaking and squeezing your database schema and parameters to try to keep performance at acceptable levels.</p><p>At some point you&#39;ll start, like I did, playing around with partitioning/sharding and not so obvious table schemas like RRD (Round Robin Databases) and may ask yourself the questions I&#39;ve been trying to answer lately: &quot;Is a SQL database the right tool for high frequency time series data?&quot;, &quot;are there other reliable solutions available?&quot;.</p><p>I&#39;m still working on this but, yes, it looks like there&#39;s good alternatives. Some interesting technological innovations are happening in this field to address such kind of problems driven mostly by the &quot;Internet of Things&quot; thing. Many open source Time Series databases have been proposed lately and I&#39;m evaluating them for my projects.</p><p>If you are interested in this subject, stayed tuned for posts with evaluations of some of the promising databases for time series data such as Cassandra, MongoDB, InfluxDB and not so popular ones that I&#39;m coming across during this research.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fb93966938b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>