<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: optimization</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/optimization.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2022-01-18T20:53:01+00:00</updated><author><name>Simon Willison</name></author><entry><title>Tricking Postgres into using an insane – but 200x faster – query plan</title><link href="https://simonwillison.net/2022/Jan/18/tricking-postgres/#atom-tag" rel="alternate"/><published>2022-01-18T20:53:01+00:00</published><updated>2022-01-18T20:53:01+00:00</updated><id>https://simonwillison.net/2022/Jan/18/tricking-postgres/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="https://spacelift.io/blog/tricking-postgres-into-using-query-plan"&gt;Tricking Postgres into using an insane – but 200x faster – query plan&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Jacob Martin talks through a PostgreSQL query optimization they implemented at Spacelift, showing in detail how to interpret the results of EXPLAIN (FORMAT JSON, ANALYZE) using the explain.dalibo.com visualization tool.


    &lt;p&gt;Tags: &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/optimization"&gt;optimization&lt;/a&gt;&lt;/p&gt;



</summary><category term="performance"/><category term="postgresql"/><category term="optimization"/></entry><entry><title>Getting from point A to B (the right way)</title><link href="https://simonwillison.net/2007/Oct/11/getting-from-point-a-to/#atom-tag" rel="alternate"/><published>2007-10-11T14:30:00+00:00</published><updated>2007-10-11T14:30:00+00:00</updated><id>https://simonwillison.net/2007/Oct/11/getting-from-point-a-to/#atom-tag</id><summary type="html">
    &lt;p&gt;&lt;em&gt;My answer to &lt;a href="http://ask.metafilter.com/73617/Getting-from-point-A-to-B-the-right-way#1095266"&gt;Getting from point A to B (the right way)&lt;/a&gt; on Ask MetaFilter&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;If your laptop is relatively recent it might have hardware support for virtualization (Intel Core Duo chips do, for example). If so, it's worth looking in to using VMWare or Parallels to run a virtual linux server locally on your machine. You'll need a fair amount of RAM for this as well - 2 GB minimum probably.&lt;/p&gt;
&lt;p&gt;I do this and it's fantastic as a development tool. I've got an Ubuntu virtual server which means I can install pretty much anything I want to with an apt-get - then I mount it to my &amp;quot;real&amp;quot; laptop over Samba so I can edit files with a local text editor. Best of both worlds.&lt;/p&gt;
&lt;p&gt;I can't recommend using source control enough - it's not that tricky to get started with and it means you'll never be afraid of changing code again (since you can always roll back). I'd go for Subversion - newer systems are more trendy, but for a single person getting started with version control subversion will probably be easiest to pick up. This book should help: http://www.pragprog.com/titles/svn2&lt;/p&gt;
    
        &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/ask-metafilter"&gt;ask-metafilter&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/development"&gt;development&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/mysql"&gt;mysql&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/php"&gt;php&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/platform"&gt;platform&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/web"&gt;web&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/workflow"&gt;workflow&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/work"&gt;work&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/efficiency"&gt;efficiency&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/optimization"&gt;optimization&lt;/a&gt;&lt;/p&gt;
    

</summary><category term="ask-metafilter"/><category term="development"/><category term="mysql"/><category term="php"/><category term="platform"/><category term="web"/><category term="workflow"/><category term="work"/><category term="efficiency"/><category term="optimization"/></entry></feed>