91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

elasticsearch 關聯查詢對比

發布時間:2020-04-10 20:46:11 來源:網絡 閱讀:1129 作者:大海之中 欄目:開發技術

兩種方式 嵌套和父子關聯


Nested

  • Nested docs are stored in the same Lucene block as each other, which helps read/query performance. Reading a nested doc is faster than the equivalent parent/child.

  • Updating a single field in a nested document (parent or nested children) forces ES to reindex the entire nested document. This can be very expensive for large nested docs

  • "Cross referencing" nested documents is impossible

  • Best suited for data that does not change frequently

Parent/Child

  • Children are stored separately from the parent, but are routed to the same shard. So parent/children are slightly less performance on read/query than nested

  • Parent/child mappings have a bit extra memory overhead, since ES maintains a "join" list in memory

  • Updating a child doc does not affect the parent or any other children, which can potentially save a lot of indexing on large docs

  • Sorting/scoring can be difficult with Parent/Child since the Has Child/Has Parent operations can be opaque at times


綜上所述,兩種方式均有利弊,官方建議,自己處理關聯關系,減輕ES的壓力。

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

溧阳市| 雷波县| 云和县| 博乐市| 讷河市| 台州市| 招远市| 玉田县| 叶城县| 卢氏县| 辽中县| 沙雅县| 泰州市| 平罗县| 榆树市| 孝感市| 全州县| 眉山市| 福贡县| 土默特左旗| 渭源县| 邢台市| 乌鲁木齐市| 来安县| 霍山县| 二连浩特市| 同江市| 农安县| 五台县| 浪卡子县| 囊谦县| 万源市| 社旗县| 福鼎市| 昌图县| 廊坊市| 和政县| 高清| 武胜县| 临汾市| 西丰县|