# Very strange database behavior

**URL:** <https://forum.bubble.io/t/very-strange-database-behavior/38506>\
**Category:** Bugs\
**Created:** [September 22, 2018, 10:34pm UTC](https://forum.bubble.io/t/very-strange-database-behavior/38506 "2018-09-22T22:34:03Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![laurence](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/laurence/32/24296_2.png) [@laurence](https://forum.bubble.io/u/laurence)\
**Post date:** [September 24, 2018, 3:54am UTC](https://forum.bubble.io/t/very-strange-database-behavior/38506/9 "2018-09-24T03:54:08Z")

</div>

This may get off-topic, so I’d suggest searching the forum for discussions of timing. Here’s just one example of the kind of thing I’ve experienced:

> [@Simple workflow does not work as written](http://forum.bubble.io/t/simple-workflow-does-not-work-as-written/38510):
>
> Here’s a relatively simple page: [image] The page has a workflow triggered by the calender-x icon being clicked. The first two steps of the workflow are simple. 1. Set the value of a custom state to empty. [image] Trigger a workflow in which the first step is Make changes to a thing.Among other fields updated is DateDue which is set to the value (empty) of the custom state set in step 1. [image] After execution: the custom state is empty, as it should be, the Action thing still conta…

JohnMark touches on timing above.

> [@JohnMark](#):
>
> Keep in mind, Bubble is NodeJS. It mean, process is done in parallel most of the time and it’s not synchronized as expected in many results.  
> What you think it will be one by one is in fact simultaneous.

Frequently, people suggesting adding a pause to help with timing, but there is no reliable rule for how long a pause should be for consistent results. Here’s another take on that:

> [@Pausing Makes Things Faster and More Reliable. Huh?](http://forum.bubble.io/t/pausing-makes-things-faster-and-more-reliable-huh/38474):
>
> Here’s the question: Why would adding a pause to the Page is Loaded workflow result in two improvements? The page loads noticeably faster. An action that is otherwise skipped is executed as it should be. Why does a pause speed things up and make them work as they should??? The app has a page that loads an Action thing (think "To Do") along with some other associated things. One "trick" in the app is to set a page-level custom state, "isDirty", to indicate when any element on the page has …

Doing something about timing is clearly an issue for Bubble, according to the roadmap, [https://bubble.io/roadmap:](https://bubble.io/roadmap:)  
" Now

App performance

Systematically optimize most data-intensive queries

Monitor and reduce JS / JSON size

Apps bug-free at scale

Workflow consistency guarantees"

Perhaps I’m misinterpreting, but “Workflow consistency guarantees” sounds to me like workflows running as expected every time, i.e. timing and sequencing.

---

_[View the full topic](https://forum.bubble.io/t/very-strange-database-behavior/38506)._
