I have a somewhat random question for this group. Our application has a requirement for an "estimate" API - basically, we need to be able to say "if you assembled this particular order with these variants at these prices, what would the total price look like?". It seems like we could achieve this by creating the Orders on the fly and saving them, but then at that point we end up churning the database more than we might otherwise need to.
I guess I'm questioning whether it is at all a reasonable thing to attempt to create an Order in memory without saving it. Looking through some of the code, I kind of get the suspicion that there are too many callbacks/etc that will make that an impractical idea - but I'm curious if there's other suggestions. (Alternately, we could potentially explore making the changes persistent but in a transaction which is intentionally rolled back after we get what we need, but even that feels ... perilous)