→ lbeeon: yes 08/02 01:31
資料庫名稱: mongodb
資料庫版本:
內容/問題描述:
請問一下各位大大,
如果資料存分別放在3個shard裡面的A資料庫B資料表,
該資料表分別存有 10, 20, 30個document,
這時透過mongos query A資料庫的B資料表( db.B.find() ),
而query 並未使用到shard key, 那此時回傳的結果,
是不是會把3個shard的A資料庫B資料表的document都回傳,
也就是 10 + 20 + 30 = 60個document的集合 ?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 114.34.181.227
※ 文章網址: https://www.ptt.cc/bbs/Database/M.1438265378.A.973.html
※ 編輯: tas72732002 (114.34.181.227), 07/30/2015 22:10:01
※ 編輯: tas72732002 (114.34.181.227), 07/31/2015 00:20:32