Just mock the repository which calls the db, and to test the queries themselves, use the real db as a docker container, or integration test with an existing db
I know it's not helping, and off-topic, but I cannot resist noting that the ecological niche in Hacker News comment threads, previously occupied by doctrinaire libertarians, have now been almost entirely re-stocked with doctrinaire Marxists. Nature is healing!
The middle class is the designation for the part of the population the owning class has duped into thinking they are temporarily embarrassed millionaires.
I’m not sure if you’ve seen housing prices lately but most of the middle class are technically millionaires now, just of the “land rich, cash poor” variety.
If you have a second machine, why not just put a Postgres read replica on it? Letting the WAL deal with replica consistency is much simpler than making the client responsible for keeping an external cache in sync, and you get the benefit of keeping everything in Postgres.
They were not indiscriminate in the murders. The leaders are always given a choice of paying tribute before hand. And they do stay true to their word if tributes were paid. It’s one of the major reasons why the mongol empire was so successful.
The idea that being forced to pay tribute or die is not murder is laughable. The idea that the Mongol empire was successful is also laughable. It could not even last 100 years before falling to infighting. And how do you even measure success? They killed 11% of the entire world population. Why would you want to remember anyone like that in a positive light?
Just curious -- have you personally confirmed this?
Not trying to cast doubt... just noting that I have exactly the same feelings (hopes?) but I have yet to personally confirm it, in large part because it's not yet fully GA so we haven't jumped in with our production workloads.