19 lines
327 B
Plaintext
19 lines
327 B
Plaintext
|
use digimon_order;
|
||
|
|
||
|
db.order.createIndex({
|
||
|
"uid": 1,
|
||
|
"order_type": 1,
|
||
|
"order_status": 1,
|
||
|
"create_time": 1,
|
||
|
})
|
||
|
|
||
|
db.order.createIndex({
|
||
|
"business_id": 1,
|
||
|
})
|
||
|
|
||
|
// 查詢時全部要 1&2 有幾個類用幾個累才會中索引
|
||
|
db.order.createIndex({
|
||
|
"uid": 1,
|
||
|
"direction_type": 1,
|
||
|
"crypto_type": 1
|
||
|
})
|