<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>trench</author_name>
  <author_url>https://blog.hatena.ne.jp/trench/</author_url>
  <blog_title>Lazy Technology</blog_title>
  <blog_url>https://trench.hatenadiary.org/</blog_url>
  <categories>
    <anon>rails</anon>
    <anon>activerecord</anon>
  </categories>
  <description>ユニットテストがしたくなったのでとりあえずar_fixturesとyaml_wamlをインストールして動かしてみて10分ほど放置。だがまったく終わらない。 インタラプトしてカウンタを仕込んで目検してみるに、どうも秒間5〜6件程度しか処理できていない気がする。 対象テーブルのテストデータは2万件…そりゃ終わるわけないだろ。。。常識的に考えて。。。 とりあえずの対処法 そもそもテストデータ二万件もいらねーだろ、って事でまず第一の対処法は、作成するテストデータの数を制限する事。 ruby script/runner &quot;Model.to_fixture(5)&quot; こんな感じにto_fixtureメソッド…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftrench.hatenadiary.org%2Fentry%2F20070502%2F1178074491&quot; title=&quot;ar_fixturesが遅い - Lazy Technology&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>2007-05-02 11:54:51</published>
  <title>ar_fixturesが遅い</title>
  <type>rich</type>
  <url>https://trench.hatenadiary.org/entry/20070502/1178074491</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
