This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# 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' |