{"url":"https://obel.hatenablog.jp/entry/20240223/1708637400","blog_url":"https://obel.hatenablog.jp/","provider_url":"https://hatena.blog","version":"1.0","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/459657/1568741889764668","author_name":"gregminster","width":"100%","height":"190","type":"rich","description":"Activerecord-Import \u3068\u306f github.com \u7d50\u8ad6\uff08\u3069\u3046\u3059\u308b\u304b\uff09 \u30a4\u30f3\u30dd\u30fc\u30c8\u6642\u306b batch_size \u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u3084\u308b\u3002 \u5177\u4f53\u4f8b User.import!(users, batch_size: 10000) PostgreSQL \u304c\u843d\u3061\u305f\u3068\u304d\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8 PQconsumeInput() SSL SYSCALL error: EOF detected (ActiveRecord::ConnectionFailed) \u53c2\u8003 https://webcache.googleusercontent.com/search?q=cache:jdX4uXcvCb4J:h\u2026","categories":["\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0 -> Ruby on Rails","\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u958b\u767a"],"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/gregminster/","published":"2024-02-23 06:30:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fobel.hatenablog.jp%2Fentry%2F20240223%2F1708637400\" title=\"Activerecord-Import \u3067\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u30d0\u30eb\u30af\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3088\u3046\u3068\u3059\u308b\u3068 PostgreSQL \u304c\u843d\u3061\u308b - \u7d04\u675f\u306e\u5730\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"Activerecord-Import \u3067\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u30d0\u30eb\u30af\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u3088\u3046\u3068\u3059\u308b\u3068 PostgreSQL \u304c\u843d\u3061\u308b","blog_title":"\u7d04\u675f\u306e\u5730"}