motcha mot@mastodon.motcha.tech

これだけは言わしてくれ

motcha mot@mastodon.motcha.tech

問題があるとすれば、自分がめっちゃ真面目に働いてる顔して遊んでるところくらいですかね…

motcha mot@mastodon.motcha.tech

特に問題なさそうですね

motcha mot@mastodon.motcha.tech

新バージョンが公開されてから良い頃合いの土日なんで、500を返してる鯖は一旦放置で…

motcha mot@mastodon.motcha.tech

なんていうの?霊界送りみたいな…そういう儀式だよね…

motcha mot@mastodon.motcha.tech

あとは…死んでる鯖の掃除か…

motcha mot@mastodon.motcha.tech

まぁ、この程度の連投であれば無理なく消化してくれますね

motcha mot@mastodon.motcha.tech

テスト

motcha mot@mastodon.motcha.tech

してみる

motcha mot@mastodon.motcha.tech

連投

motcha mot@mastodon.motcha.tech

ちょっと

motcha mot@mastodon.motcha.tech

えらい棒やめたので、若干リソースあまりがち?かな?

motcha mot@mastodon.motcha.tech

一応ちょろりとログ☑

motcha mot@mastodon.motcha.tech

わけわかめだけど動いてっからええか

motcha mot@mastodon.motcha.tech

あ?なんかめっちゃ重くなったな

motcha motcha reblogged at 7 years ago

tateisu​:r_9a:​:force: tateisu@mastodon.juggler.jp

postgresqlのlog_statementをいじって確認したんですけど、Railsってクエリ中の定数パラメータ(where visiblity=3 みたいなの) を prepared statement のためにbind parameter 化するんですよ。そしてPostgreSQLはbind parameterに関しては部分インデクスの利用を行ってくれないのです。.env.production に PREPARED_STATEMENTS=false って書いとけばこの現象は起きません。pgbouncer導入してる人は既にこうなってるはず。

motcha mot@mastodon.motcha.tech

あくまでオマケ、追加機能やろ!という思い切り

motcha mot@mastodon.motcha.tech

機能としてあるのに、うちのタンスにはねぇってのは…よそに劣る点になるから、やや避けたいんだが…

motcha mot@mastodon.motcha.tech

リソース不足は間違いねぇのよ

motcha mot@mastodon.motcha.tech

えらい棒…なぁ…