<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sql on Occasionally consistent</title><link>https://blog.pjam.me/tags/sql/</link><description>Recent content in Sql on Occasionally consistent</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 13 Jan 2023 14:01:26 -0500</lastBuildDate><atom:link href="https://blog.pjam.me/tags/sql/index.xml" rel="self" type="application/rss+xml"/><item><title>ActiveRecord caches generated queries for find_by queries</title><link>https://blog.pjam.me/posts/active-record-statement-cache/</link><pubDate>Sat, 11 Dec 2021 00:00:00 +0000</pubDate><guid>https://blog.pjam.me/posts/active-record-statement-cache/</guid><description>Active Record caches generated queries, when using &lt;code>find_by&lt;/code> and &lt;code>find&lt;/code></description></item><item><title>Atomic Increment/Decrement operations in SQL and fun with locks</title><link>https://blog.pjam.me/posts/atomic-operations-in-sql/</link><pubDate>Tue, 27 Jun 2017 15:07:38 -0400</pubDate><guid>https://blog.pjam.me/posts/atomic-operations-in-sql/</guid><description>&lt;p>&lt;img src="https://blog.pjam.me/images/atomic.jpg" alt="A zipper with red &amp;amp; blue sides">&lt;/p>
&lt;h5 id="previously-published-on-mediumhttpsmediumcomharrys-engineeringatomic-increment-decrement-operations-in-sql-and-fun-with-locks-f7b124d37873">Previously published on &lt;a href="https://medium.com/harrys-engineering/atomic-increment-decrement-operations-in-sql-and-fun-with-locks-f7b124d37873">Medium&lt;/a>&lt;/h5>
&lt;p>We recently rewrote our inventory management system and managed to improve the performance while reducing the operational complexity by taking advantage of native SQL increment &amp;amp; decrement operations. In this post we’ll dive into the details and common gotchas of these operations and we’ll compare our new implementation with the previous one to highlight the benefits.&lt;/p></description></item><item><title>Mysql Utf8</title><link>https://blog.pjam.me/posts/mysql-utf8/</link><pubDate>Sat, 17 Aug 2013 15:07:47 -0400</pubDate><guid>https://blog.pjam.me/posts/mysql-utf8/</guid><description>The limitation of MySQL&amp;rsquo;s default utf8 encoding and how to use a better one</description></item></channel></rss>