|
|
|
|
|
by dingaling
27 days ago
|
|
This is a great example of AI tech-debt and fragility. An eight-join query is going to be nigh on unmaintainable should the requirements change, leading to a change-break-change-break spiral as your preferred coding agent tries to fix its previous fixes. Maybe the wise way to use AI would be to sort out the schema. |
|
A highly normalized DB can easily end up with 8 joins required for some function. That's really not out of the question. "Sorting out" the schema then would be... denormalization, which is a thing, but you need to know why you're doing it. And I think 8 joins isn't enough of a reason.