Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The database log file is too large to clean up (sqlserver) #6023

Closed
ourlang opened this issue Dec 13, 2023 · 6 comments
Closed

The database log file is too large to clean up (sqlserver) #6023

ourlang opened this issue Dec 13, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@ourlang
Copy link

ourlang commented Dec 13, 2023

1、Connect to the database and configure it as SQL Server
2、The validity period of the log is set to 2 days
image
3、There are three tables in the database that take up a lot of space and cannot be cleaned up
D_MC1 、D_MM1,D_M1
image
image
1702437873998

4、How to make scheduled cleaning of logs and database files effective

@ourlang ourlang added the bug Something isn't working label Dec 13, 2023
@pacmano1
Copy link
Collaborator

pacmano1 commented Dec 13, 2023

Most folks prune every hour. Your frequency likely can't keep up.

@ourlang
Copy link
Author

ourlang commented Dec 13, 2023

In addition to setting up here data prune , please Is there any other way to reduce the disk space occupied by large database files or to regularly clean up database files?

@ourlang
Copy link
Author

ourlang commented Dec 13, 2023

The database transaction files generated every day occupy 5G and require manual processing each time. Do you have any other configurations? Thank you

@pacmano1
Copy link
Collaborator

That is a SQL server exercise, not a Mirth question. Set recovery mode to simple. I assume you have a SQL job to automate all the SQL server stuff like truncating the log on backup. If not, you should use the maintenance solution at https://ola.hallengren.com/. Best stuff ever.

@pacmano1
Copy link
Collaborator

I suspect your channel may also be poorly designed and not use attachment handlers.

@pacmano1
Copy link
Collaborator

Please stop posting to issues unless there is a known bug or you have a feature request. I am converting this to a discussion.

@pacmano1 pacmano1 converted this issue into discussion #6024 Dec 13, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants