Skip to main content
Share Your Experience: Take the 2024 Developer Survey
59 votes
Accepted

What is the advantage of log file rotation?

"I have never had any issues with large files" is not synonymous with "there is never a problem with large files". Your lack of experience with problems does not prove that there ...
Flater's user avatar
  • 51.7k
29 votes

What is the advantage of log file rotation?

Log file rotation is not only related to technical issues with the file itself. It's also related with operational considerations, like: being able to incrementally backup the logs (especially in ...
Christophe's user avatar
  • 77.9k
15 votes

What is the advantage of log file rotation?

The other answers already provided very useful reasons, but there is one more I'm surprised I haven't seen outside of a comment yet: To be able to delete old log files to free disk space A very busy ...
Syndic's user avatar
  • 312
8 votes

What is the advantage of log file rotation?

never had any issues with large files and cannot think of reasons why we might set an arbitrary limit Every system I have ever ssh'd into has had limited budget and limited attached storage. If you ...
J_H's user avatar
  • 7,156
6 votes

What is the advantage of log file rotation?

I worked on a bug last year where an action in production was suddenly failing due to a timeout. Fast, near instantaneous in dev and QA, failing in production. Took weeks of on again off again work ...
jmoreno's user avatar
  • 11k
3 votes

What is the advantage of log file rotation?

Limit total amount of resources on system In addition to some of the other points mentioned, I would like to highlight that some systems take care to limit the total number of resources. Not only disk ...
thomastiger's user avatar
3 votes
Accepted

Referencing objects created during seeding by ID

I would say that a "Natural Key" (as you say, id = "total revenue") is the best solution here. However you still have to have some way of transmitting this list to consumer apps, ...
Ewan's user avatar
  • 76.4k
3 votes
Accepted

Designing a flexible and comprehensive restaurant menu database schema?

I look at it this way; your root item is your "Menu Item", and everything else is basically a "variation" of the menu item; from sizes, to add-ons, to options. I think there's ...
Darren Taylor's user avatar
2 votes

Dynamic web application hitting database on front page load to fetch profile image

The industry best practice is to never store images (and other big blobs) in database directly. And only store "references" to those images. The reason for that is that such images overload ...
freakish's user avatar
  • 973
2 votes

What is the advantage of log file rotation?

The original reason for using size as the rotation criteria almost certainly came from the limitations of 32-bit operating systems, where most applications (and maybe the OS itself) couldn't handle ...
Barmar's user avatar
  • 344
2 votes

How to handle complex logic, avoiding recalculation for performance reasons?

Group these by the relevant item, into product properties: product must have a enabled field set to true product name must be of length > 2 product price must be bigger than 5 Whenever you edit a ...
pjc50's user avatar
  • 13.5k
1 vote

How to handle complex logic, avoiding recalculation for performance reasons?

One can use events. If you change a product validation rule, then fire an event. Then some process picks up the event and says, I need to refresh the product catalog. One needs to be careful how ...
Jon Raynor's user avatar
  • 11.5k

Only top scored, non community-wiki answers of a minimum length are eligible