# Race Conditions: Beware of Using List Fields in Objects If You Plan To Scale

**URL:** <https://forum.bubble.io/t/race-conditions-beware-of-using-list-fields-in-objects-if-you-plan-to-scale/285879>\
**Category:** Bugs\
**Created:** [September 28, 2023, 9:46pm UTC](https://forum.bubble.io/t/race-conditions-beware-of-using-list-fields-in-objects-if-you-plan-to-scale/285879 "2023-09-28T21:46:35Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![sudsy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/sudsy/32/114637_2.png) [@sudsy](https://forum.bubble.io/u/sudsy)\
**Post date:** [September 29, 2023, 6:49pm UTC](https://forum.bubble.io/t/race-conditions-beware-of-using-list-fields-in-objects-if-you-plan-to-scale/285879/12 "2023-09-29T18:49:03Z")

</div>

> [@gf\_wolfer](#):
>
> My most recent solution for this specific event worked […] (searches and then double checking searches for timestamps)

Interesting.

> [@gf\_wolfer](#):
>
> I don’t know if there is a simple solution to this unless Bubble works on something for us as it’s just not structured for a high demand app like this

Yeah, Emmanuel seems to have said as much in [that 5-year-old post](http://forum.bubble.io/t/handling-concurrent-database-writes/27747/4).

That said, something did just occur to me, which seems plausible at first blush (but maybe not “fair”)…

If the core issue is timing-related, perhaps one way to address it is by injecting some randomness at the appropriate times. So for example, once the registration reaches some threshold - let’s say 85% of capacity - during a high-demand period, then start randomizing the workflow executions within a span of several seconds in an attempt to “spread out” the DB writes associated with [nearly] concurrent incoming requests.

Yes, it means the last few “slots” might not be filled in exactly the order they were requested (and someone who actually pressed their enter key before someone else might miss out), but maybe that’s acceptable in some situations.

And of course, the user might be waiting for a few seconds, but just display a busy message:

##### &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Demand is high. Checking availability…

…along with maybe a slot machine animation. 😄

I’m sure it still wouldn’t guarantee no race conditions, but I wonder if it would be an improvement. 🤔

---

_[View the full topic](https://forum.bubble.io/t/race-conditions-beware-of-using-list-fields-in-objects-if-you-plan-to-scale/285879)._
