mongoDB 内にレコードの膨大なコレクション (約 300000) があります。指定された時間 (crontab) に実行される bash スクリプトがあり、サードパーティのサーバーから収集して内部のレコードを更新/挿入します。
レコードの挿入/更新中にエラーがないことがわかります(エラーが見つからなかったため、 grep を Exception として tail コマンドを使用して)
このスクリプトは通常よりも時間がかかっています。私の質問は、現在どのシンボルが更新または挿入されているかを知ることは可能ですか??
前もって感謝します 。
私の db.currentOp() コマンド操作の結果。
Updated Part
db.currentOp()
{
"inprog" : [
{
"opid" : 2981398,
"active" : true,
"lockType" : "read",
"waitingForLock" : true,
"secs_running" : 1,
"op" : "query",
"ns" : "ubsc.symbols",
"query" : {
"unique_symbol" : "JBHTN221465.00"
},
"client" : "12.55.124.208:44958",
"desc" : "conn"
},
{
"opid" : 2981335,
"active" : true,
"lockType" : "read",
"waitingForLock" : true,
"secs_running" : 6,
"op" : "query",
"ns" : "ubsc.symbols",
"query" : {
"unique_symbol" : "MAING201330.00"
},
"client" : "12.55.124.208:44964",
"desc" : "conn"
},
{
"opid" : 2981364,
"active" : true,
"lockType" : "read",
"waitingForLock" : true,
"secs_running" : 4,
"op" : "query",
"ns" : "ubsc.symbols",
"query" : {
"symbol" : "WAG"
},
"client" : "12.55.124.208:44939",
"desc" : "conn"
},
{
"opid" : 2981390,
"active" : true,
"lockType" : "read",
"waitingForLock" : true,
"secs_running" : 3,
"op" : "query",
"ns" : "ubsc.symbols",
"query" : {
"unique_symbol" : "QDELX211330.00"
},
"client" : "12.55.124.208:44928",
"desc" : "conn"
},
{
"opid" : 2981425,
"active" : true,
"lockType" : "read",
"waitingForLock" : true,
"secs_running" : 0,
"op" : "query",
"ns" : "ubsc.symbols",
"query" : {
"unique_symbol" : "UAS201375.00"
},
"client" : "12.55.124.208:44940",
"desc" : "conn"
},
{
"opid" : 2981428,
"active" : true,
"lockType" : "read",
"waitingForLock" : true,
"secs_running" : 0,
"op" : "query",
"ns" : "ubsc.symbols",
"query" : {
"symbol" : "CAG"
},
"client" : "12.55.124.208:44943",
"desc" : "conn"
},
{
"opid" : 2981370,
"active" : true,
"lockType" : "read",
"waitingForLock" : true,
"secs_running" : 4,
"op" : "query",
"ns" : "ubsc.symbols",
"query" : {
"unique_symbol" : "GASXX211322.00"
},
"client" : "12.55.124.208:44929",
"desc" : "conn"
},
{
"opid" : 2981379,
"active" : true,
"lockType" : "read",
"waitingForLock" : true,
"secs_running" : 3,
"op" : "query",
"ns" : "ubsc.symbols",
"query" : {
"unique_symbol" : "SAFTS201350.00"
},
"client" : "12.55.124.208:44972",
"desc" : "conn"
},
{
"opid" : 2981421,
"active" : true,
"lockType" : "read",
"waitingForLock" : true,
"secs_running" : 0,
"op" : "query",
"ns" : "ubsc.symbols",
"query" : {
"symbol" : "YCS"
},
"client" : "12.55.124.208:44934",
"desc" : "conn"
},
{
"opid" : 2981424,
"active" : true,
"lockType" : "read",
"waitingForLock" : true,
"secs_running" : 0,
"op" : "query",
"ns" : "ubsc.symbols",
"query" : {
"symbol" : "DAR"
},
"client" : "12.55.124.208:44960",
"desc" : "conn"
},
{
"opid" : 2981377,
"active" : true,
"lockType" : "read",
"waitingForLock" : true,
"secs_running" : 3,
"op" : "query",
"ns" : "ubsc.symbols",
"query" : {
"unique_symbol" : "VARN221490.00"
},
"client" : "12.55.124.208:44968",
"desc" : "conn"
}
]
}
>