-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration/Clone events may be slow #16
Comments
Unfortunately the slowness seems to be due to the core I did some profiling using the same XML stated in the start of this issue, which has 1649 fields across 38 forms. I believe this function scales with a combination of these 2 factors (a quick and dirty calculation supports O( Timing just after this step: move_data_to_other_event/ExternalModule.php Line 100 in 24fdef6
It takes about 25 seconds to complete this line: move_data_to_other_event/ExternalModule.php Line 105 in 24fdef6
Which is due to redcap core. The recursive array walk takes about half a millisecond: move_data_to_other_event/ExternalModule.php Lines 107 to 108 in 24fdef6
After which t takes an additional 28.5 seconds to complete this line: move_data_to_other_event/ExternalModule.php Line 114 in 24fdef6
|
Migrated UI changes to issue #18. |
Using the XML from #14 I noticed that trying to migrate/clone the "Bai" data collection instrument was very slow.
After clicking either option there was no indication that anything was happening. I was able to try to cancel the dialog box which resulted in the form's complete status not migrating! We should add a little spinner to the selection and maybe disable the buttons after clicking.Hook the AJAX call here:move_data_to_other_event/js/mdoe.js
Line 194 in 24fdef6
If you need to add any parameters to the response, they can be included in thedelete_response
array returned bymoveEvent
:move_data_to_other_event/ExternalModule.php
Line 145 in 24fdef6
UI updated in PR #17, I am leaving this issue open as a reminder to look for ways to optimize performance where possible.
Additionally I should probably optimize, I suspect I can save some speed here with by checking for edocs:
move_data_to_other_event/ExternalModule.php
Line 117 in 24fdef6
The text was updated successfully, but these errors were encountered: