<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ledsun</author_name>
  <author_url>https://blog.hatena.ne.jp/ledsun/</author_url>
  <blog_title>@ledsun blog</blog_title>
  <blog_url>https://ledsun.hatenablog.com/</blog_url>
  <categories>
    <anon>ActiveRecord</anon>
    <anon>技</anon>
    <anon>データベース</anon>
  </categories>
  <description>速度を計測する簡単なスクリプトが手に入りました。 計測しやすくするために、よりシンプルに変更します。 class User &lt; ApplicationRecord class &lt;&lt; self def benchmark_bulk_insert # create data instances = [] 1_000.times { instances &lt;&lt; new(name: 'name', created_at: Time.current, updated_at: Time.current) } hashes = [] 1_000.times { hashes &lt;&lt; { name: 'name'…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fledsun.hatenablog.com%2Fentry%2F2022%2F07%2F25%2F235626&quot; title=&quot;activerecord-importを速くつかう - @ledsun blog&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-07-25 23:56:26</published>
  <title>activerecord-importを速くつかう</title>
  <type>rich</type>
  <url>https://ledsun.hatenablog.com/entry/2022/07/25/235626</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
