High workflow units to set the value of a SLUG

I’m struggling to understand the reason for the relatively high cost associated with setting a things slug. I’ve noticed in one app setting a things slug consumed 1.72. In other tests I have done consume even high number of WU’s (1.92 & 2.23), and in these tests the data type only has 2 fields and less than 10 records.

Can others let me know what your consumption looks like for setting a slug. It would also be good to get a better understanding from @bubble itself on how WU related to slugs are calculated so that we can optimise appropriately.

2 Likes

Good observation, and another example of the ridiculousness of this whole WU thing…

Setting a thing’s slug should only cost the same as any other ‘make changes to a thing action’ (precisely 0.5 WU).

I just ran some tests and confirmed that this is the case - but only when doing a search for the thing to change directly in the workflow.

i.e. the workflow has a single action to set a thing’s slug - the thing in question being a search for Users: random item.

It consistently costs 0.8 WU to do this, which is exactly what is expected (0.3 WU for the search, and 0.5 WU to change the thing)

I wanted to test this another way, so I then loaded the User onto the page first in a group (datasource, search for Users random item), and then in the workflow changed to to set the things slug , that thing being the Group’s User.

I expected to see that the workflow now only cost 0.5 WU (for the set slug action) as no additional search is needed (the User is already loaded into the group), so you would expect a reduction in WU cost.

But in fact, the workflow now costs now costs 0.93 WU to run - so significantly more when it should cost less. That makes no sense at all. And that’s on top of the search and data retrieval for the User on the page in the first place - so effectively getting charged for the same

I’ve observed in many instances that we’re getting charged multiple times for the same data, especially when it’s relating to data that should already be on the page - I’m not sure if Bubble are doing this type of thing deliberately to increase revenue, or (more likely in my opinion) they just don’t understand how WUs are being calculated themselves (which definitely seems to be the case, based on some discussions I’ve had with their support).

In any case, it’s completely inconsistent with what you would expect from reading the docs, or following any kind of logic.

The only real way to make any sense of it is just to test everything and trust your own observations, rather than taking anything as given from the Bubble docs.

The conclusion here is to never refer to existing data, but always use a new search expression wherever you need to deal with data - which is completely the opposite of what you would think logically, but the data is very clear on this for anyone to check.

12 Likes

I am now convinced that Adam knows more about how WU works (or at least how to figure it out and sniff out these anomalies/inconsistencies) than anyone at Bubble, and if they don’t start using him as some sort of WU consultant, they are doing it wrong.

Thanks for your efforts and for sharing this stuff with the community, @adamhholmes… the information/knowledge is huge in the brave new world of WU.

11 Likes

@nick.carroll This sounds like a bug. Is the dev team looking into this?

Yeah, kudos to @paterson.damian for identifying this issue and to @adamhholmes for creating a nice isolated test case.

Hopefully, a bug report was submitted, as it’s the best way to ensure the issue gets in front of an engineer. It wouldn’t surprise me at all if there are some kinks (edge cases, oversights, and the like) to work out of the WU system.

1 Like

@adamhholmes thanks again for deep testing of another one WU consumption blackhole…

We are looking into it. basically the extra cost is coming from a search we do to ensure the slug is unique

8 Likes

Thanks @adamhholmes and @nick.carroll. I haven’t as yet submitted a bug report as I wasn’t sure it wasn’t something I was doing or isolated to my builds. Do I still need to submit a bug report or is this on the radar now?

This topic was automatically closed after 14 days. New replies are no longer allowed.