over 3 years ago

## 遇到 mongo DB 的雷

### 問題尋找

db.xxx_log_msa_summary_2014_10.getIndexes()

### 搜尋記錄

Order of $lt and$gt in MongoDB range query

The short answer is a multikey index is used ("player" is an array), and the index cannot be constrained on both upper and lower bounds.