Closed dubdabasoduba closed 1 year ago
try increasing the cursor window? https://stackoverflow.com/questions/51959944/sqliteblobtoobigexception-row-too-big-to-fit-into-cursorwindow-requiredpos-0-t/66215674#66215674
This makes sense but we have to set the max size we want for the window. In case we set a high number that the device can't handle the app might end up being closed by the OS
We got this because of the large measures data set we are fetching all at once when we move the measure references to the Composition Resource.
I think we can update how we query the resources referenced on the Composition resources. We could probably batch them i.e if we have 19 Measures we need to fetch them in batches of 4 or so instead of all at once.
So probably combine the 2 options to make sure we don't increase the cursor window too much but also account for a situation the size might be exceeded.
This may have been fixed by adding the resources to the Composition resource and tested on the current implementation on the gateway CC @dubdabasoduba
To Reproduce Steps to reproduce the behaviour:
sync_config.json
on this branchExpected behaviour
Additional context
NB: - Do not these configs to the eCBIS preview server since this is being used by clients to test the app.