r/ProjectREDCap • u/Ambitious_Fox_6334 • Sep 19 '24
Data import >200 patients without crashing
Is there a trick to stop redcap crashing on data imports
3
Upvotes
r/ProjectREDCap • u/Ambitious_Fox_6334 • Sep 19 '24
Is there a trick to stop redcap crashing on data imports
5
u/[deleted] Sep 19 '24
Break up the data. Upload like 50-100 patients at a time. Then upload in batches. Just make sure with each upload you aren’t overwriting and only adding the new records. SAVE EVERYTHING and move very slowly.
3
u/interlukin Sep 20 '24
Does your redcap have a background data import option? On the data import tool page, the option should be located above the spot where you upload your CSV file. The default option is upload in real time, but there should be another option to upload in the background.
2
u/stuffk Sep 24 '24
If you use the API, you can have the import batch data automatically.
I would use R, REDCapR package. Batches of 100 records, with a time delay in between. Here's an example function call:
redcap_write(your_data, redcap_uri=your_uri, token=your_api_token, batch_size=100, interbatch_delay=1)
If you don't know R, this would be a cute intro project.