株式会社コロプラ『GKE と Cloud Spanner が躍動するドラゴンクエストウォーク』第 9 回 Google Cloud INSIDE Game...
なぜ SQL_CALC_FOUND_ROWS や LIMIT OFFSET のページングが良く無いのか ここ最近の大規模サービス関連したデータページング考です。 mysql 5.5.34 で試して記事書いてます。 bigdata テーブルは id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY (id) なカラムがある前提です。もちろん InnoDB です。 2014年なんだからCOUNT(*)とかSQL_CALC_FOUND_ROWSとかLIMIT OFFSETのページングはやめようぜ - Togetterまとめが発端にみえるけど、わりと昔から話されてる事なんだけど、「nippondanji SQL_CALC_FOUND_ROWS」でググっても有用な情報ないし文書化されてないからしとく。 ページング処理で使われがちな機能です。 S
Blog Search when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${entry.path} [in template "__entry.ftlh" at line 3, column 25] - Reached through: #include "__entry.ftlh" [in template "entry.ftlh" at
Twitterのステータス情報などをpythonのurllib2やらで取得し、MySQLに登録するときに起きる日本語の文字化けを修正するテクニック。 SQLAlchemyを使った場合、MySQLにデータを挿入またはデータを更新する場合に、日本語が文字化けするときがある。その場合にとる方法は次の通り データベース接続の設定 接続パラメータに文字コード(charset)をUTF8に指定する。 sqlalchemy.url = mysql://username:password@host:port/database?charset=utf8 テーブルをセットするときにutf8等にセットすることも有効 参照:crazy()for(;;)you(); これが一番大事! その他 他に考えられるのは次のようなもの。 SQLAlchemy:create_engine インスタンス作成時にエンコーディングを
The FromDual Performance Monitor is a good alternative to the MySQL Enterprise Monitor from MySQL which is only available for paying Oracle/MySQL customers. With the FromDual Performance Monitor you can monitor your MariaDB, Galera Cluster, Percona Server, MySQL and even PostgreSQL databases and also your database hosts (machines). The FromDual Performance Monitor works on Linux and should also wo
Update: Here's the video of the talk. Erick Pickup, lead developer at YouPorn.com, presented their architecture in a talk titled Building a Website To Scale given at the ConFoo conference. As you might expect, YouPorn is a beast, streaming three full DVDs of video every second, handing 300K queries every second, and generating up to 15GBs of log data per hour. Unfortunately, all we have are the s
最近のウェブ系スタートアップが採用しているプログラミング言語やフレームワークまとめ とちょうど同じくらいの時期に High Scalability に Tumblr Architecture - 15 Billion Page Views A Month And Harder To Scale Than Twitter という記事がでていた。 まとめだと Tumblr は PHP を使っていることになっているけど、いま現在の Tumblr は PHP ですべてを書くのを止めて、Scala も使っているらしい。 Scala と Finagle Tumblr はもともと LAMP (Linux + Apache + MySQL + PHP) で出来ていた。スケールさせるために memcached や HAProxy でキャッシュしてみたり、MySQL を sharding してみたり、バックエ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く
{{#tags}}- {{label}}
{{/tags}}