[Answered ]-Django: Optimization using forms .has_changed in save method

1👍

this is a good idea and can reduce the database load. however, its important to evaluate the potential benefits of customizing forms in your specific case before implementing solutions.

While optimizing the database is important, it’s essential to be cautious when introducing customization and increasing the code’s complexity for that purpose. sometimes the cost you incur in terms of increased complexity may not explain the gains from optimizing a single query.

Leave a comment