immersivecognition / unity-experiment-framework

UXF - Framework for creating human behaviour experiments in Unity
https://immersivecognition.github.io/unity-experiment-framework/
MIT License
215 stars 41 forks source link

Trial results are only saved to AWS when <= 25 trials #55

Closed ischtz closed 3 years ago

ischtz commented 3 years ago

I noticed that trial results for longer experiments didn't get saved to DynamoDB, and learned that BatchWriteItem is limited to 25 items at a time. Data for experiments with <= 25 trials is saved fine, but for >25 the BatchWriteItem call fails and nothing is stored to the TrialResults table (just confirmed this with 2.1.0 on Unity 2019.4.16f1 LTS).

My quick and dirty solution was to submit the data in batches of 25, which has been working fine in a running experiment so far. Let me know if a PR would be helpful!

jackbrookes commented 3 years ago

Thanks! I am shocked I didn't encounter this during testing. I will take a look.

jackbrookes commented 3 years ago

Released a fix.