ctsit / redcap_chart_field

Other
2 stars 6 forks source link

Chart field and branching logic slow down the instruments page loading #26

Open ThomasVermes opened 2 years ago

ThomasVermes commented 2 years ago

We are using your EM Field Chart and probably a bit too much =) We have an instrument with 53 fields showing charts (chart.js). All of these fields have branching logic on them. Having our project about 3800 records, 7 events and 38 instruments, the loading of any other instrument took about 10 seconds or more.

We realized that the slow down of the loading was caused by the combination of branching logic and the Field annotations with js: With empty field annotation (but with branching logic) or without branching logic (but with all the 53 charts showed), the whole system performed well.

Have you ever encountered this problem?

image

many thanks Thomas

pbchase commented 2 years ago

Thomas, no we've not seen that one.

If you'd like us to try to fix this, it would be a great help if you could provide a small example project that reproduces the problem. Perhaps a pared-down version of your project exported as a project XML file with some test data?

ThomasVermes commented 2 years ago

Dear Philip, thank you for help, I would try to share with you the project in form of an xml file, but I cannot upload it here. I did not find your email, could you sent it to me? thomas.vermes@usb.ch