Skip to content

Instantly share code, notes, and snippets.

View fortuneteller's full-sized avatar
🎯
Focusing

Andrey Konstantinov fortuneteller

🎯
Focusing
  • Andrey Konstantinov
  • Moscow, Russia
View GitHub Profile
@fortuneteller
fortuneteller / mysql-large-db-import
Last active June 12, 2018 12:51 — forked from molotovbliss/mysql-large-db-import
Importing Large DB faster MySQL Settings
Source: https://dba.stackexchange.com/questions/83125/mysql-any-way-to-import-a-huge-32-gb-sql-dump-faster
innodb_buffer_pool_size = 4G
innodb_log_buffer_size = 256M
innodb_log_file_size = 1G
innodb_write_io_threads = 16
innodb_flush_log_at_trx_commit = 0
Why these settings ?
innodb_buffer_pool_size will cache frequently read data
@malclocke
malclocke / gist:943565
Created April 27, 2011 01:31 — forked from schacon/gist:942899
delete all remote branches that have already been merged into master
$ git branch -r --merged |
awk -F'/' '/^ *origin/{if(!match($0, /(>|master)/)){print $2}}' |
xargs git push origin --delete