Returns true if the key exists in the map, and false otherwise. Compared with the previous approach, this reduces latency significantly. The application crashes if the user submits the form twice in quick succession. This solution scales better than the alternative under heavy load. The slowdown was due to a missing index on the orders table. The tests are passing locally, and I have opened a pull request for review.
Click to start typing