Skip to content

Instantly share code, notes, and snippets.

describe('database', () => {
describe('performance', () => {
it('has indexes on all foreign keys', async () => {
const query = `
WITH indexed_tables AS (
select
ns.nspname,
t.relname as table_name,
i.relname as index_name,
array_to_string(array_agg(a.attname), ', ') as column_names,
@cellis
cellis / varnish3.rb
Created January 10, 2018 20:25 — forked from brianlow/varnish3.rb
Install Varnish-3.0.7 on OSX with homebrew
##
# Install Varnish 3.0.7 on OSX with the following Brew command:
# $> brew install https://gist.github.com/brianlow/674897ef935c2aae2f6cdae41c17766f/raw/varnish.rb
#
# You also might have to run:
# $> sudo brew link varnish3
# To symlink the install.
##
require 'formula'