If you really know that you’ll only ever need a specific set of fields, you can tell the server to only send you those fields.
Note: This is new functionality in The Things Stack v3.11.
With the CLI that would look like this:
$ ttn-lw-cli applications storage get your-application-id \
--type uplink_message \ # only select uplink messages
--after-utc "2021-02-05 00:00:00" \
--before-utc "2021-02-05 08:00:00" \
--end-device-ids \ # you probably want device IDs
--received-at \ # you want to know when it was received
--up.uplink-message.f-port \ # you want the FPort
--up.uplink-message.frm-payload \ # maybe the raw payload
--up.uplink-message.decoded-payload # and otherwise the decoded payload
You can run
ttn-lw-cli applications storage get --help to see the full list of command-line flags you can use to filter data from the storage integration.
On the HTTP API it works in a similar way:
$ curl -G "https://eu1.cloud.thethings.network/api/v3/as/applications/your-application-id/packages/storage/uplink_message" \
-H "Accept: text/event-stream" \
-H "Authorization: Bearer $API_KEY" \
-d "after=2021-02-05T00:00:00Z" \
-d "before=2021-02-05T08:00:00Z" \