3 ms·
I don't understand how you would have a persistence layer or otherwise that can't be refactored without changing external code that depends on that layer. Batc
by hawleyal 12y ago
I don't understand how you would have a persistence layer or otherwise that can't be refactored without changing external code that depends on that layer.
Batch is hard of course. But it's conceivable to have a crappy implementation (just looping single statements) and then later refactor it to do it database side, or perhaps in parallel (looping single statements simultanously). All the while without modifying the dependent code.
No?
- AlisdairO 12y agoThat's exactly the approach I'm recommending :-). Basically, put thought into the api up front so that later, performance improvements are a master of improving local code, rather than architectural changes.