<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>donbulinux</author_name>
  <author_url>https://blog.hatena.ne.jp/donbulinux/</author_url>
  <blog_title>AR ホームベーカリー</blog_title>
  <blog_url>https://donbulinux.hatenablog.jp/</blog_url>
  <categories>
    <anon>MongoDB</anon>
  </categories>
  <description>stackoverflow.com countDocuments は n+1 でクッソ遅くなるから estimatedDocumentCount だろ！ と言っている兄貴と、 estimatedDocumentCount はメタデータを元に算出するから壊れる可能性があるので正確に測れる countDocuments でしょ、みたいな事書いててウムー、となっていた。 本番: countDocuments 正確な値がほしいので、遅くてもこちらを採用する 開発・結合・検証: estimatedDocumentCount おおよその値がわかればいい という感じで使うのがいいんですかねえ。 count …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdonbulinux.hatenablog.jp%2Fentry%2F2025%2F06%2F10%2F194251&quot; title=&quot;countDocuments と estimatedDocumentCount - AR ホームベーカリー&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>2025-06-10 19:42:51</published>
  <title>countDocuments と estimatedDocumentCount</title>
  <type>rich</type>
  <url>https://donbulinux.hatenablog.jp/entry/2025/06/10/194251</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
