私はmongodb-shellについて学ぼうとして遊んでいますが、コレクションの数がによって示されているものより1つ多いことにmongodb気づきましたdb.stats()db.getCollectionNames()
次に例を示します。
> db.stats();
{
"db" : "learn",
"collections" : 6,
"objects" : 47,
...
...
"ok" : 1
}
> db.getCollectionNames();
[ "hit_stats", "hits", "system.indexes", "system.profile", "unicorns" ]
つまり、 6つのコレクションがあり、asは5つのコレクション名のみをリストしdb.statsていると言います。なぜこの不一致?db.getCollectionNames