<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>waniji</author_name>
  <author_url>https://blog.hatena.ne.jp/waniji/</author_url>
  <blog_title>STORES Product Blog</blog_title>
  <blog_url>https://product.st.inc/</blog_url>
  <categories>
    <anon>STORES ネットショップ</anon>
    <anon>SRE</anon>
  </categories>
  <description>この記事はheyアドベントカレンダー2020の5日目の記事です。 STORESでECサービスのSREをしている@wanijiです。 STORESではメインとなるDBにMongoDBを採用しており、RDBと同様にインデックスを使ったパフォーマンス改善をします。その際に、インデックスを使用したクエリの中でも効率の良いCovered Queryにすることを検討するのですが、 null が条件に入ってはならないという制約があるため、使用出来ない事がよくあります。 今回は null 以外のデータを取得したい時に、どうやってCovered Queryにするかをご紹介します。 Covered Queryとは…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fproduct.st.inc%2Fentry%2F2020%2F12%2F05%2F122621&quot; title=&quot;MongoDBでnull以外を条件にデータを取得する時にCovered Queryにする方法 - STORES Product 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>2020-12-05 12:26:21</published>
  <title>MongoDBでnull以外を条件にデータを取得する時にCovered Queryにする方法</title>
  <type>rich</type>
  <url>https://product.st.inc/entry/2020/12/05/122621</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
