booooop [any]@hexbear.nettoC Sharp@programming.dev•Is preloading/caching data before the actual method call an (anti)pattern?English
2·
10 months agoIf testing this properly is your problem you should invest time in integration testing, running them on an in-memory database is an option as well. I think retrieving all the data and “caching” it like you call it has some negative consequences, for example what if the validation for some action fails and you didn’t need to load whatever you preloaded? Waste of a call to the db
I have some Finish friends who thought this was just a symbolic position. I think a lot of the EU democracies are in risk to be falling over to the right without the checks and balances working like the average person expects them to, scary shit if you’d ask me