<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Wal on Bharath's Blog</title><link>https://bharathbhushan1.github.io/blog/tags/wal/</link><description>Recent content in Wal on Bharath's Blog</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 06 Apr 2014 12:00:00 +0000</lastBuildDate><atom:link href="https://bharathbhushan1.github.io/blog/tags/wal/index.xml" rel="self" type="application/rss+xml"/><item><title>Understanding Write Ahead Logging</title><link>https://bharathbhushan1.github.io/blog/posts/2014-04-06-understanding-wal/</link><pubDate>Sun, 06 Apr 2014 12:00:00 +0000</pubDate><guid>https://bharathbhushan1.github.io/blog/posts/2014-04-06-understanding-wal/</guid><description>&lt;p&gt;I am trying to understand WAL (Write Ahead Logging) from the perspective of
sqlite3, HBase etc. Below is a summary of my understanding. Refer to these
links for more information: &lt;a href="https://www.sqlite.org/wal.html"&gt;sqlite3&lt;/a&gt;, &lt;a href="http://www.postgresql.org/docs/current/static/wal.html"&gt;postgresql&lt;/a&gt;,
&lt;a href="http://www.devintersection.com/updates/Randal-SQL-Logging.pdf"&gt;sqlserver&lt;/a&gt;, &lt;a href="http://blog.cloudera.com/blog/2012/06/hbase-write-path/"&gt;hbase&lt;/a&gt;, &lt;a href="http://research.google.com/archive/bigtable.html"&gt;bigtable&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;###General stuff&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What is WAL&lt;/li&gt;
&lt;li&gt;Write new content of a write at end of a WAL file instead overwriting
content in the actual database file&lt;/li&gt;
&lt;li&gt;Advantages of WAL&lt;/li&gt;
&lt;li&gt;Writes and reads are faster&lt;/li&gt;
&lt;li&gt;Writes and reads can be concurrent (for a given data file)&lt;/li&gt;
&lt;li&gt;More sequential disk I/O&lt;/li&gt;
&lt;li&gt;Fewer &lt;code&gt;fsync()&lt;/code&gt; calls&lt;/li&gt;
&lt;li&gt;Allows crash recovery&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;###Sqlite3&lt;/p&gt;</description></item></channel></rss>