|
|
|
|
|
by stephenr
922 days ago
|
|
For selects I'd have though having views would be a better solution here. But it sounds like a lot of overhead to maintain, presuming it's one insert/update/delete proc per table. IMO stored procedures help where you want to make some reasonably complex logic easier to call into from the application, OR where you want to trigger said reasonably complex logic from multiple DB events. |
|
If that’s the case, you don’t want to allow stakeholders to make arbitrary queries, as those could run fine from their perspective, but would be disastrous from that of the other stakeholders.
Team A could be fine having the database be excruciatingly slow for an hour while they run their monthly reporting queries or while they run a huge import or whole they do a select that forces a table scan on a huge table, but teams B, C, etc might not.
That’s why such a database has a separate team “DBA” whose job it is to know the full picture.