r/programming • • Feb 17 '16

Stack Overflow: The Architecture - 2016 Edition

http://nickcraver.com/blog/2016/02/17/stack-overflow-the-architecture-2016-edition/
1.7k Upvotes

461 comments sorted by

View all comments

Show parent comment

3

u/nickcraver Feb 18 '16

We deploy many times a day at a minimum, so even change control across hundreds of databases would be extremely noisy (compared to migrations currently being only schema changes). Given that most of the time you're changing code and the stored procedure, there's just no win. It's more work to debug, tune, and fix. By having no stored procedures, I can easily see everywhere a table is accesses by simply grepping my code base. As an example, if there's another black-box type place elsewhere (inside a stored procedure) simple bits like that become much more time consuming.

There are plenty of situations and use cases where Stored Procedures are awesome. For example, if you're doing native compilation, etc. they can also be performance boosting. They're just not for us.

1

u/thesystemx Feb 18 '16

+1 we use the exact same logic

1

u/eaglex Mar 22 '16

How do you handle (breaking) schema changes?

I'm assuming you roll out new code progressively, what do you do when your code depends on a schema change so as not to affect the currently running code?