<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: craig-kerstiens</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/craig-kerstiens.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2021-02-03T07:32:33+00:00</updated><author><name>Simon Willison</name></author><entry><title>Cleaning Up Your Postgres Database</title><link href="https://simonwillison.net/2021/Feb/3/cleaning-your-postgres-database/#atom-tag" rel="alternate"/><published>2021-02-03T07:32:33+00:00</published><updated>2021-02-03T07:32:33+00:00</updated><id>https://simonwillison.net/2021/Feb/3/cleaning-your-postgres-database/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="https://info.crunchydata.com/blog/cleaning-up-your-postgres-database"&gt;Cleaning Up Your Postgres Database&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Craig Kerstiens provides some invaluable tips on running an initial check of the health of a PostgreSQL database, by using queries against the pg_statio_user_indexes table to find the memory cache hit ratio and the pg_stat_user_tables table to see what percentage of queries to your tables are using an index.

    &lt;p&gt;&lt;small&gt;&lt;/small&gt;Via &lt;a href="https://twitter.com/craigkerstiens/status/1356707553980284928"&gt;@craigkerstiens&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/databases"&gt;databases&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/performance"&gt;performance&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/postgresql"&gt;postgresql&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/craig-kerstiens"&gt;craig-kerstiens&lt;/a&gt;&lt;/p&gt;



</summary><category term="databases"/><category term="performance"/><category term="postgresql"/><category term="craig-kerstiens"/></entry><entry><title>How the Citus distributed database rebalances your data</title><link href="https://simonwillison.net/2018/Feb/1/citus/#atom-tag" rel="alternate"/><published>2018-02-01T22:50:00+00:00</published><updated>2018-02-01T22:50:00+00:00</updated><id>https://simonwillison.net/2018/Feb/1/citus/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="https://www.citusdata.com/blog/2018/02/01/how-citus-database-rebalances-your-data/"&gt;How the Citus distributed database rebalances your data&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Citus is a fascinating implementation of database sharding built on top of PostgreSQL primitives. PostgreSQL 10 introduced extremely flexible logical replication—in this post Craig Kerstiens explains how Citus use this new ability to re-balance shards (e.g. when you move from two to four physical PostgreSQL nodes) without downtime.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/architecture"&gt;architecture&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/postgresql"&gt;postgresql&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/sharding"&gt;sharding&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/zero-downtime"&gt;zero-downtime&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/craig-kerstiens"&gt;craig-kerstiens&lt;/a&gt;&lt;/p&gt;



</summary><category term="architecture"/><category term="postgresql"/><category term="sharding"/><category term="zero-downtime"/><category term="craig-kerstiens"/></entry></feed>