亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

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

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

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

长治县| 务川| 綦江县| 秭归县| 天门市| 宜宾市| 昌邑市| 白水县| 六安市| 宁晋县| 贡嘎县| 红河县| 五莲县| 安龙县| 西吉县| 辽宁省| 瑞昌市| 济源市| 东安县| 兴安县| 凤翔县| 湟中县| 和硕县| 互助| 邹城市| 宁远县| 西昌市| 富顺县| 汝城县| 闵行区| 杭锦旗| 华宁县| 祁阳县| 深泽县| 宿迁市| 昌宁县| 瑞昌市| 通道| 武冈市| 元朗区| 余干县|