3 ms·
For instance PostgreSQL's performance might be very different depending on the size of data query has to operate. Also if you deal with something like search re
by _kblcuk_ 6y ago
For instance PostgreSQL's performance might be very different depending on the size of data query has to operate.
Also if you deal with something like search results, it gets pretty annoying to deal with "well, I don't have enough data locally for this particular thing I develop".
Again, talking here about the "run the world and click on things" approach vs developing against tests / API schemas / whatnot.
- pydry 6y agoIve had pretty good results with scaling down real world data and using it to run tests against it. Postgres performance will be different to prod, yes. That's all part of the realism - cost trade off. All models are wrong, some are useful. The point is that diving headfirst into making matchstick model unit tests is dumb when you could build something to test against at reasonable cost which is a lot more representative of reality. IMO this is an obvious point if you adopt a cost/benefit approach to development but it's often impossible to see for the dogmatists.
- _kblcuk_ 6y agoI think we're talking about slightly different things here. Running service that I need to develop right now with a lot of local data (or even read-only connection to production mega-db) is one thing. But needing to run that service with a lot of data only to be able to develop some other part of the system (that is not even related to that particular service, but "nothing works" without it) is a pretty annoying development experience.
- kevinmgranger 6y agoLoad / performance testing isn't always feasible in a local environment, sure. Everything else, though? It ought to be.