- Create
UNLOGGED
table. This reduces the amount of data written to persistent storage by up to 2x. - Set
WITH (autovacuum_enabled=false)
on the table. This saves CPU time and IO bandwidth on useless vacuuming of the table (since we neverDELETE
orUPDATE
the table). - Insert rows with
COPY FROM STDIN
. This is the fastest possible approach to insert rows into table. - Minimize the number of indexes in the table, since they slow down inserts. Usually an index
on
time timestamp with time zone
is enough. - Add
synchronous_commit = off
topostgresql.conf
. - Use table inheritance for fast removal of old data:
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
As configured in my dotfiles.
start new:
tmux
start new with session name:
The official and authoritative source for this document has moved. Please update your bookmarks.
You can still use the comments at the bottom of the page to register comments even for the new official location.
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
sudo cp -r /home/hudson/.ssh /root/; | |
sudo chown -R root:root /root/.ssh; | |
sudo service mysql stop; | |
sudo cp -pRL /var/lib/mysql /dev/shm/mysql; | |
sudo echo "[mysqld] | |
datadir = /dev/shm/mysql | |
" > /tmp/ramdisk.cnf; | |
sudo mv /tmp/ramdisk.cnf /etc/mysql/conf.d/ramdisk.cnf; | |
sudo echo " |