Login
You're viewing the code4lib.social public feed.

Replies

  • Nov 19, 2026, 2:25 PM

    @CodenameTim the racing() helper is a neat way to test it without threads. will the series cover drf too? its unique together validator runs the same check before the insert, so two concurrent posts can both pass it and one still ends in a 500 from the integrity error

    💬 1🔄 0⭐ 0
  • Nov 19, 2026, 3:02 PM

    @hemanth_g No, I wasn't planning on including DRF in the series. I suspect the same principles could be applied there. Perhaps even better since DRF serializers already support raising on error.

    💬 0🔄 0⭐ 0