Over the last weeks, together with @Sarah_Esteve, we’ve been through a DB refacto exercise for one of our customers in order to optimize data loading, improve app performance & enhance end-user experience.
As part of this process, we moved a significant number of fields from one table to another, deleted those fields afterwards and optimized the app.
But guess what ? the deleted and optimized FIELDS STILL APPEAR in the brower…
I’ve checked bubble documentation and @petter (awesome !) books to try to understand what went wrong and if we were missing something but could not find anything.
So I’ve contacted bubble support and after many email exchanges, i received this answer :
" I do see that the documentation mentions something different, however there have been cases where data that is referenced earlier may not be fully deleted, since it is still being used in another part of the app. We understand this is a bit of a known behavior, but in general to fix this you would need to restore the app and relevant data type to before you deleted the data type. If it falls within your app’s retention period (20 days on a Team plan), you should be able to do this on your end, as we don’t have longer retention than this on our side."
Whaaaaaat
This is NOT a known behavior, I’ve just found one mention in a post by @rico.trevisan.
I believe bubble community should be made aware of this, and documentation updated accordginly as it could cause serious security issue (you lose control over privacy rules for those fields).
…Not to mention the impacts on WU consumption impacts and associated over invoicing…
CURRENT SOLUTION FOR NOT YET DELETED DATA : The only way to avoid this is to REALLY delete data (bulk) BEFORE deleting the fields, (yes… it costs WU)
SOLUTION FOR DELETED & OPTIMIZED DATA : NO KNOWN SOLUTION
Finally, Bubble support manually removed the list of fields we provided, but this is clearly not a sustainable approach. And we have still other fields deleted in other tables, but also other apps, other clients…
We also asked Bubble to provide a more comprehensive solution and, at the very least, update the documentation and inform the community, but we have not received any response.
Through this post, I hope that giving visibility to this issue will help to solve it !
Happy bubbling !
Sylvie
PS : In order to see data still loaded in the browser, you have to use the dev tool and look at your data