1
ReactiveMongo是否有一種方法來強制查詢發生在從站上?ReactiveMongo強制查詢在從站上執行
目前我正在使用slaveOk,但它不能保證查詢在從站上運行。
collection.find(query).options(QueryOpts().slaveOk)
爲slaveOk的文檔:
/** Toggles SlaveOk: The query is might be run on a secondary. */