Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私の MongoDB には、プロセスのアクティブ化/非アクティブ化を追跡するログ エントリを含むテーブルがあります。
user_id, time, event
イベントは「開始」または「停止」のいずれかです。このテーブルから生成したいのは、時間、日、週、月ごとに集計された実行中の (アクティブな) プロセスの統計を提供する集計ビューです。