atlas-mcp-server
by cyanheads
Verified
vacuum_database
Optimize database storage and performance.
Performance Impact:
- Reclaims unused space
- Rebuilds indexes
- Updates statistics
- Optimizes query plans
- May take several minutes
When to Use:
- After bulk operations (creates/deletes)
- During maintenance windows
- When performance degrades
- After large deletions
- Before major operations
Best Practices:
- Run during low activity
- Monitor space usage
- Schedule regularly
- Backup before running
- Check performance impact
- Allow sufficient time
- Monitor system resources
Resource Usage:
- CPU: Moderate to high
- Memory: Temporary increase
- Disk I/O: Heavy
- Storage: Temporary spike
Example: { "analyze": true, "reasoning": "Running optimization after bulk task deletion to reclaim space and update query statistics for better performance." }
Input Schema
Name | Required | Description | Default |
---|---|---|---|
analyze | No | Whether to analyze after vacuum for query optimization. Note: This operation: - Reclaims unused space - Updates statistics - May take time for large datasets - Improves query performance | |
reasoning | No | Explanation for vacuum operation. Best practices: - Document performance issues - Note recent bulk operations - Record space reclamation goals - Track optimization results |