This is the kind of good, simple advice I always love to see. Keep things simple, have each part of your code do as little as possible, make sure everything is as easy to informally reason about as possible.<p>I also like the part about setting reasonable limits on records returned early on. That’s the kind of simple early optimization that makes sense. You can always increase limits later but it can be harder to reduce them, especially if customers have started building with your product.