1. What is the issue? Please be detailed.
I created a follow up form that uses entities from two different forms and it also uploads images and files to this form. When editing one of them, the loading speed is very slow in Enketo.
In some cases the forms load but with no visibility of the photos and files
I´m using v2023.5.1 Central with a self physical server.
2. What steps can we take to reproduce this issue?
I can provide access to the form and the sheet structure form
3. What have you tried to fix the issue?
I deleted all the unnecessary entities and data from the form. Is important to mention that I´m using loops in some sections of the form.
4. Upload any forms or screenshots you can share publicly below.
I experience this a lot with forms that have a lot of media reference files, it can lead to the captured media never loading in Enketo when editing a submission as it is trying to load the reference media first.
Best I could recommend is publishing a form version that has no attachments, as edits with Enketo will always use the most recent definition, so only the submission media need to be loaded.
Downside is this is either only done at the end of field collection, or during field downtime, so your enumerators don't get the no attachment version (and their subsequent update with the attachments restored will now be a long sync to fetch them all)
Another question. We are using a physical server that storage the project, Do you think that if we increase the Ram size the loading speed improves?. Or migrate the project to the cloud.
@EduardoCM Enketo isn't very smart about how it downloads lots of attachments, so on a slow connection it can overwhelm the connection and slow things done.
Web Forms will be smarter (hopefully a lot smarter) about this. Until it's available, @ahblake's workaround is likely your best option.
You can use your browser's inspect mode to help answer that question. When you look at the network tab, you should be able to see how much time is spent by the server processing the request and how much time is spent on the transfer. Changing the server's characteristics will affect the processing part. Changing the server or client's connection type/speed will affect the transfer part.