Closed sentry-io[bot] closed 4 years ago
max_allowed_packet
is now 128MB. I don't want to go too large and slow the database from responding to other requests.
100MB might be too big due to the time it takes to process it so that the request times out.
Sweet. Thanks for updating that. I'll poke it and try to get it tuned and add some reasonable responses.
We should update
max_allowed_packet
to reflect whatever maximum size we choose and implement some checking. @wholmgren suggested 100MB in https://github.com/SolarArbiter/solarforecastarbiter-dashboard/issues/254 . We should also return an error message that gives the hard limit on file size and a suggestion of approximately how many datapoints would fit in a file of that size. This might vary between json/csv so maybe leaving out the latter would suffice but the primary issue appears to be the size of the data after we've converted it to format for sql insertion. So, we should base our estimates on the size of the data as passed to the procedures. We'll also need to verify that timeouts are adjusted to properly to allow time for inserting larger datasets.Sentry Issue: API-47