Hi guys, I need an expert’s help here…
I somehow figured out my problem on another topic which I’ve posted the other day. However, the duration of displaying the data is unforgivably slow.
I’m getting the data using unique id of [Order Record] and this Order Record is also referencing another database type called [Order Details] and this also holds another database type called [Item ID] and there is an image I want to import and display on the page.
Its currently taking 10-15 sec to download the image on the page .
If you remove the image from the page does it solve the speed issue? If so, then you only need to focus on the image as the problem. And if it’s the image causing the issue, some potential issues are:
a) image size
b) something funky with how you have uploaded images
c) a data or search structure that needs to be fixed
BTW are you using a template you purchased, or did you build it yourself?
Thanks for your help ed727, I have built this app myself.
Ok so, the texts directly on [Order Record] can be displayed much quicker, but when the reference gets deeper, e.g. [Order Record ] > [Order Details] > [Item ID], its significantly taking more time, and the image size seems not the issue as I’m compressing them and using the thumbs.
I have tried the same method but this time is directly referencing the unique id of [Item ID] and its much quicker now, but I need to use the unique id of [Order Record] in order to get the lists of ordered contents.
BTW, when I go to the App Data in the edit view on Bubble and try to display the items which contains images in the database also takes really long time to display the contents even if there is only few items. Does this happen to your App Data as well?
Nested searches take longer, but popping to 10-15 seconds sounds like a long time. Are all of your searches happening within the “Do a search for” box (which is server side = fast), or are you doing any filters or advanced filters (which is client side = slow).
I’m guessing your setup is… Customer places an order and you create [Order Record]. Details on that order are saved on [Order Details]. In [Order Record] you have a field linking to the relevant [Order Details] record. And in [Order Details] you have a list field referencing [Item ID], which is a bunch of items that the customer ordered. If this is a correct description of your setup, then question is why do you have the [Order Record] datatype – why not just put all the info in [Order Details] and remove a layer?
In the editor, I have one datatype that contains pictures. It isn’t slow, but I wouldn’t expect it to be. The pictures aren’t saved in Bubble – they are links to AWS where the actual pictures are saved. Are your pictures uploaded and saved in this way, or are the actual picture files saved into your Datatype?
One thing I’d try is doing a test where instead of pulling the picture from the [Item ID], pull a text field and see if the speed is any different. That may help narrow the issue.
It wasn’t the database issue! I took out some of the actions, {delete user} and {make changes to the current user}, from the workflow and it went smoothly. However, I have encountered another issue here, I cannot put any actions related to making the changes to the account like {delete account}, this will slow down dramatically even if I use {schedule api} to send the action in the backend, the result is the same…