mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 14:10:49 -05:00
SelectObjectContent loaded the whole object into a byte array and built the whole response before sending it, so an object over about 2 GiB failed with an internal error, and a large object or result could run the heap out of memory. The object is now opened as a stream, the snapshot GetObject uses. The Java evaluator parses the statement before reading anything, then reads CSV a line at a time and JSON a line or an array element at a time, stops once a LIMIT is reached, and writes the result as it goes, in Records events of whole records, then Stats and End. Queries floci-duck runs read the object themselves and no longer load it just to count BytesScanned.