2 ms·
> in case we need to switch out the database down the road I would still kinda consider that. But the solution wouldn't be to create some massive abstraction.
by Double_a_92 7y ago
> in case we need to switch out the database down the road
I would still kinda consider that. But the solution wouldn't be to create some massive abstraction. Instead I'd try to separate logic from database access code. I.e. avoid reading data from the database while you are in the middle of some calculation, or in the GUI somewhere. If you need the data do it beforehand and pass it in a generic data format.