Welcome to the new MongoDB Feedback Portal!
{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.
We’ve upgraded our feedback system to better capture, track, and act on your feedback. Here’s what you need to know:
|
What problem are you trying to solve? Focus on the what and why of the need you have, not the how you'd like it solved. |
A database with heavy writes and deletes becomes fragmented with lots of space taken by oplog becoming unusable. |
|
What would you like to see happen? Describe the desired outcome or enhancement. |
A compact option that includes oplog should be available as an option in the regular maintenance windows |
|
Why is this important to you or your team? Explain how the request adds value or solves a business need. |
In one instance we have 20GB of oplog that would likely compact to 3GB but we can't schedule it or even do it ourselves. |
What steps, if any, are you taking today to manage this problem? |
Will likely raise a support ticket and hope for the best. |
Thanks for sharing this feedback and the specific scenario — that context is really helpful. I want to make sure I fully understand how you would like this to work.
In your ideal world:
Would compact run on a set schedule as part of your regular maintenance window, or only when certain conditions are met (for example, when fragmentation or oplog size crosses a threshold)?
Should compact run automatically every time you have a maintenance window, or would you prefer it to be an optional step you can enable/disable per window?
Since compact can consume time and resources, how would you want us to handle the performance impact — for example, by setting time limits, resource limits?
Instead of automating, what if we provided a self-service control for this (for example, a button in the UI to trigger an ad hoc compact, or the ability to script it via an API) versus us handling it entirely as part of an automated maintenance policy?
Any additional details you can share on your preferred behavior or safeguards (timeouts, limits, notifications, etc.) will help us evaluate the feedback here.
In the meantime, you should always be able to trigger the compact() command on a database anytime yourself.