-
|
Most importantly: thanks for building, sharing, and maintaining such an awesome project! I've recently been working on minimizing database traffic in my application. While profiling, I found that the Each time a model emits an event defined by If I understand correctly, Invoking the The Of course, the My goal is mainly to identify this issue and start a discussion about possible optimizations. Would it be feasible to prevent unnecessary database trips by specifying only updated relations when invoking thanks for reading! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hey, thanks for your kind words and very descriptive issue! 🙏 The
That's a very good idea/solution! We have a clear attribute/key pattern that identifies attributes to be logged as relation attributes. So it should be possible to match these, collect the relations, unify them and pass them to the Would you be willing/available to work on it? As you already have the database query count setup in place you could check if it has the wanted result. |
Beta Was this translation helpful? Give feedback.
Hey,
thanks for your kind words and very descriptive issue! 🙏
The
fresh()method is also in place for database default values - so dropping is not an option.That's a very good idea/solution! We have a clear attribute/key pattern that identifies attributes to be logged as relation attributes. So it should be possible to match these, collect the relations, unify them and pass them to the
fresh()method call.Would you be willing/available to work on it? As you already have the database query cou…