Skip to content
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

Fragment log table #256

Closed
chriskapp opened this issue Aug 22, 2019 · 1 comment
Closed

Fragment log table #256

chriskapp opened this issue Aug 22, 2019 · 1 comment
Labels
Milestone

Comments

@chriskapp
Copy link
Member

chriskapp commented Aug 22, 2019

If the log table contains many entries this slows down the backend panel and also every incoming request, since we insert every request to the log table. This occurs if we have ~20000 requests per day. We should start to fragment the log table so that the log table contains only requests for i.e. a month. Maybe we should also add an option how many logs we should keep or a way to complete disable logging.

@chriskapp chriskapp added this to the 1.8.0 milestone Aug 30, 2019
@chriskapp
Copy link
Member Author

We have created a new command system:log_rotate which basically creates a new log archive table which copies all log data into this archive table and then truncates the log table. Through this a user could setup a cron which calls this command in arbitrary intervals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant