How reads work
A preview reads only what it shows. This page lists what each kind of file costs, and the limits you can change.
What each kind of file costs
| File | What a preview reads |
|---|---|
| Parquet in S3 | The footer (about 0.1% of the file), then one row group, over HTTP range requests. |
| Parquet in S3, under about 2 MiB | The whole object, once. The status line says so. |
| CSV and TSV in S3 | From the first byte, a page of rows at a time. A CSV cannot be range-read. |
Compressed CSV (.csv.gz, .tsv.zst) | The whole object, decompressed from its first byte. |
Text (.md, .txt, logs) | The first 128 KiB, in one ranged read. |
Gzip-wrapped Parquet (.parquet.gz) | Nothing. It cannot be read, and the window says why. |
| Local files | The same reads from disk, in about 0.01 s. |
Measured, not estimated
On yellow_tripdata_2024-01.parquet (47.6 MiB, 2,964,624 rows, three row groups of 15.9 MiB), with a byte-counting proxy in front:
- Pricing the file transferred 68 KB, 0.14% of the object, in 0.23 s.
- A 100-row preview of all 19 columns transferred 17.7 MB, about one row group, in 2.5 to 2.9 s.
Limits
Three numbers decide when a read stops and asks. Change them with Limits… in the status bar, or in ~/Library/Application Support/osprey-peek/settings.json:
{ "autoPreviewMiB": 25, "warnMiB": 50, "streamMaxMiB": 50 }
autoPreviewMiB: how big a read may be before it asks first. Default 25 MiB.warnMiB: where the status line starts calling out the size. Default 50 MiB.streamMaxMiB: the largest file read whole from its first byte (a file that cannot be range-read) without asking. Default 50 MiB.
One rule the numbers cannot change. The size is shown before an expensive read, and a file that cannot be range-read is never read whole without asking first.
Nothing is written
Osprey Peek is read-only by construction. There is no write path to S3 or to your files, and no command it suggests writes anything.