Adding to List Consumes 15 WU

I cannot understand how adding one thing to a list of things is costing me 15 work units. I checked and I don’t have any database triggers running on this data type. Please help!

FYI:

  • User Extended is my satellite datatype that is linked to each User to store extra data. This datatype has a field which is a list of Interest Lists.
  • Interest List is a data type with about 10 fields of mainly structured data except for the description which is rich text.
  • Other parts of my app are doing similar operations but incur about 1/10th this many WUs.

This is an image of the workflow action.

This is the server log.

I am also charged about the same amount when removing the item from the list. If this is normal, that’s fine and I’ll just re-work my app to not use lists.

Hi @chuckyte,

How many things are being added as a list?

According to the workload activity types it costs 0.5 WU for each thing written to or modified in the database

According to the logs he show, seems just one. You should fill a bug report (and let us know)

What is strange is 15ms to run this

2 Likes

Yeah… that is odd

The problem is how Bubble work with a field that is list of thing. I’m not sure, But I guess Bubble may retrieve all items in the list to add (or remove) one item (based on the racing issue with SAWOL and how this work). This could explain a higher WU usage than expected. This is the kind of improvment Bubble need to work on. However, 15 seem very high…

1 Like

@fede.bubble who is in charge of wu usage in the team please ?

It used to be @laura.oppenheimer, but it doesn’t look like she’s at Bubble anymore :frowning:

Laura left too? I just became aware that Alan left recently.

@chuckyte its likely pulling all user information and all of the user extended information. Thanks for posting this, we need more users highlighting these types of issues as even if it pulled all information, the 15WU is excessive and likely due to a bug on top of inefficient code by bubble.

1 Like

Yeah! I saw that Laura’s forum account is no longer active and that she left Bubble in August via LinkedIn

I found out Allen left shortly after he posted it on LinkedIn :frowning:

1 Like

Two department heads leaving in 2 months is not good

1 Like

@chuckyte if you haven’t already I would suggest opening a ticket with support they can look into your app. Just follow the chatbot instructions: Bubble Support Center

3 Likes

The crazy part of this is that this is happening on my test version which usually has nothing in the field (list of Interest Lists), so retrieving the list before adding should not incur much WU since there is nothing in the list to begin with.

If it is this or isn’t this… I don’t know that I can do anything about it. I’ll send a support ticket.

1 Like

Thanks to everyone on this thread. I’ll post this as a ticket and let you all know the result. Hopefully this is just a simple error on my part (which is usually the case), but we’ll see…

3 Likes

I’m in communication with someone from the support team. Meanwhile, I’ve got other workflows that have not been touching in a long time that are now also completely out of whack. Like an API workflow to send an email-- 36 WUs! This is crazy –

How much WU did it cost before?

Less than one WU, usually about .5 IIRC.

I think I’ve found the issue.

Inside User Extended datatype, there was a field that was a list of images. For certain power users this list will getting to be 10-20 images.

So what I didn’t realize, was that by adding something to a list in another filed within that datatype, it seemed to be pulling the list of images in another field (that field is is not referenced in the action) in that datatype.

I haven’t fully wrapped my head around the implications of this realization.

Unless protected by privacy rules fields will get loaded. It’s one of the reasons I stopped storing images as lists and store their URLS (as text) instead.

2 Likes