MongoDB - Creating a MongoDB replica set in single Docker container

透過 Docker 去起 MongoDB replica set,多半網路上的做法都是用多個容器去做,這邊筆者考量測試與開發上的便利性,試著用一個容器去起 MongoDB replica set。 ...

January 28, 2021 · 1 min · 292 words · Larry Nung

MongoDB - Creating a MongoDB replica set using Docker

要用 Docker 測試 MongoDB replica set 我們要先建立 Docker network。 ...

December 30, 2020 · 1 min · 314 words · Larry Nung

MongoDB Compass - Install with Homebrew

要使用 Homebrew 安裝 MongoDB Compass,可以調用如下命令: ...

November 4, 2019 · 1 min · 52 words · Larry Nung

MongoDB - Clear system.profile collection

在做 MongoDB 的 Profiling 時,有時我們會需要清除 system.profile collection 內的資料。 ...

September 21, 2019 · 1 min · 99 words · Larry Nung

MongoDB - Check profiling level and status

MongoDB 在設定好 Profiler 後,可用 db.getProfilingLevel 查驗設定的 Profiling 層級。 ...

September 17, 2019 · 1 min · 34 words · Larry Nung

MongoDB - Enable and configure database pofiling

要設定或啟用 MongoDB Profiler 功能去能監控較慢的運行,可先進入 MongoDB。 ...

September 16, 2019 · 1 min · 241 words · Larry Nung