-
Notifications
You must be signed in to change notification settings - Fork 11
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
feat: Add performance rules for persistence layer #27
base: main
Are you sure you want to change the base?
Conversation
96b5cf5
to
d944232
Compare
d944232
to
c6badad
Compare
@baumeister25 thanks for your PR. It is nice to get performance guidance into the new java stack. IMHO if we declare something as rule, it should have the true character of a rule:
This is dead wrong: I have seen a use-case in a real project triggering a single SQL that always ended after 6 hours due to a TX timeout. It was written so bad and there were so many many records (multiple billion!!!) that the DB had no chance to ever complete the SQL. Apart from this extreme example I have also seen many other cases where a single bad SQL was killing the UC performance... What you are trying to archive could maybe stated as
And further
while this might be partially true, my rule is to never use Other rules I would see:
|
Hi @hohwille, Those rules where meant to be a very general reminder to think of what hibernate does. Therefore, I also like your sentence of put ORM away from thinking. For rule 1: I'll also take over the first sentence (Do not repeat ...) I think that's a good addition. The second sentence I would put into a TIPP-box. I think it's a very good hint to make people aware that the ORM should not replace thinking. I would keep the typical execution time (maybe in an info box) I still think it's valuable for developers to have at least a number in head of an SQL execution. Of course there are cases that exceed these numbers, but I think in general they're ok and that you can kill everything with long running SQLs should be clear I hope. For rule2: |
@hohwille I've updated the text and created a new issue. Can you re-check the proposed article and approve if fine. |
No description provided.