「MySQLしか使ったことないけど、SQLiteって実用的なの?」 「レプリケーションやバックアップってどうするんだろう?」
私もかつてはそう感じていました。しかし、近年ではSQLiteを本番環境で活用することが増え、その実力に度肝を抜かれました。この記事では、私の現場経験から導き出した、SQLiteを本番環境で最大活用するための具体的なノウハウをお伝えします。
- MySQLやPostgreSQLは使用経験があるけれど、SQLiteにはまだ手を出していない方。
「MySQLしか使ったことないけど、SQLiteって実用的なの?」 「レプリケーションやバックアップってどうするんだろう?」
私もかつてはそう感じていました。しかし、近年ではSQLiteを本番環境で活用することが増え、その実力に度肝を抜かれました。この記事では、私の現場経験から導き出した、SQLiteを本番環境で最大活用するための具体的なノウハウをお伝えします。
エンジニアの皆さん、普段の開発でMySQLやPostgreSQLを使いこなしていることと思います。「SQLite?それってモバイルアプリや小規模なプロジェクト向けのデータベースでしょ?」と感じている方も多いのではないでしょうか。
しかし、最近の技術の進歩により、SQLiteはプロダクション環境でも十分に活用できるデータベースとして再評価されています。実際に、SQLiteを使ったモダンなアプリケーションやサービスが増えてきています。
本記事では、SQLiteの最新の使い方や、その特徴をMySQLやPostgreSQLと比較しながら、プロダクション環境でどのように活用できるのかを詳しく解説します。
class GroovyBook { | |
String title | |
static main( args ){ | |
Date now = new Date() | |
100000.times { | |
new GroovyBook( title: "title${it}") | |
} | |
println new Date().time - now.time |
# users generic .zshrc file for zsh(1) | |
## Environment variable configuration | |
# | |
# LANG | |
# | |
export LANG=ja_JP.UTF-8 | |
## Default shell configuration | |
# |
syntax on | |
set expandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=0 | |
set number | |
set smartindent | |
set incsearch | |
set hlsearch |
# $Id: screen-keys.conf,v 1.7 2010-07-31 11:39:13 nicm Exp $ | |
# | |
# By Nicholas Marriott. Public domain. | |
# | |
# This configuration file binds many of the common GNU screen key bindings to | |
# appropriate tmux key bindings. Note that for some key bindings there is no | |
# tmux analogue and also that this set omits binding some commands available in | |
# tmux but not in screen. | |
# | |
# Note this is only a selection of key bindings and they are in addition to the |
# /etc/default/h2 | |
# defaults for h2 database server | |
# pulled in from the init script; makes things easier. | |
NAME=h2 | |
# location of java | |
JAVA=/usr/bin/java | |
# arguments to pass to java |
diff --git a/Library/Formula/emacs.rb b/Library/Formula/emacs.rb | |
index 856a34a..e46a312 100644 | |
--- a/Library/Formula/emacs.rb | |
+++ b/Library/Formula/emacs.rb | |
@@ -28,7 +28,7 @@ class Emacs < Formula | |
def patches | |
p = [] | |
- | |
+ p0 = [] |
# via http://naleid.com/blog/2011/09/26/smart-bash-zsh-aliases-to-run-appropriate-grails-version/ | |
GRAILS_CMD=$1 | |
shift | |
if [ -f application.properties ]; then | |
export GRAILS_VERSION=`grep app.grails.version application.properties | sed -E 's/.*=(.*)/\1/'` | |
export GRAILS_HOME="/Users/ohneda/opt/grails-$GRAILS_VERSION" | |
echo "application.properties found, using \$GRAILS_HOME of $GRAILS_HOME" | |
else | |
echo "application.properties NOT found, leaving \$GRAILS_HOME as $GRAILS_HOME" |